Skip to content
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Resolves #133.
  • Loading branch information
nwellnhof committed Mar 8, 2020
1 parent 2a7b668 commit 20c6088
Show file tree
Hide file tree
Showing 95 changed files with 380 additions and 380 deletions.
214 changes: 107 additions & 107 deletions ChangeLog

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions HTMLparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static void htmlParseComment(htmlParserCtxtPtr ctxt);
/**
* htmlErrMemory:
* @ctxt: an HTML parser context
* @extra: extra informations
* @extra: extra information
*
* Handle a redefinition of attribute error
*/
Expand Down Expand Up @@ -5482,7 +5482,7 @@ htmlParseTryOrFinish(htmlParserCtxtPtr ctxt, int terminate) {
if (avail < 1)
goto done;
/*
* not enouth chars in buffer
* not enough chars in buffer
*/
if (avail < 2) {
if (!terminate)
Expand Down Expand Up @@ -5648,7 +5648,7 @@ htmlParseTryOrFinish(htmlParserCtxtPtr ctxt, int terminate) {
if (avail < 1)
goto done;
/*
* not enouth chars in buffer
* not enough chars in buffer
*/
if (avail < 2) {
if (!terminate)
Expand Down
6 changes: 3 additions & 3 deletions HTMLtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ htmlSetMetaEncoding(htmlDocPtr doc, const xmlChar *encoding) {
found_meta:
/*
* Search and update all the remaining the meta elements carrying
* encoding informations
* encoding information
*/
while (cur != NULL) {
if ((cur->type == XML_ELEMENT_NODE) && (cur->name != NULL)) {
Expand Down Expand Up @@ -345,7 +345,7 @@ xmlAllocOutputBufferInternal(xmlCharEncodingHandlerPtr encoder);
************************************************************************/
/**
* htmlSaveErrMemory:
* @extra: extra informations
* @extra: extra information
*
* Handle an out of memory condition
*/
Expand All @@ -359,7 +359,7 @@ htmlSaveErrMemory(const char *extra)
* htmlSaveErr:
* @code: the error number
* @node: the location of the error.
* @extra: extra informations
* @extra: extra information
*
* Handle an out of memory condition
*/
Expand Down
2 changes: 1 addition & 1 deletion INSTALL.libxml2
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Compilation
At that point you may have to rerun ldconfig or similar utility to
update your list of installed shared libs.

At this point you can check that the library is properly functionning
At this point you can check that the library is properly functioning
by running

make tests
Expand Down
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ Regexptests: testRegexp$(EXEEXT)

# Disabled for now
Exptests: testRegexp$(EXEEXT)
@echo "## Formal expresssions regression tests"
@echo "## Formal expressions regression tests"
-@(for i in $(srcdir)/test/expr/* ; do \
name=`basename $$i`; \
if [ ! -d $$i ] ; then \
Expand Down
2 changes: 1 addition & 1 deletion Makefile.tests
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# You may have to ajust to call the right compiler, or other oprions
# You may have to adjust to call the right compiler, or other options
# for compiling and linking
#

Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ To assert build quality:
There is 3 standalone tools runtest.c runsuite.c testapi.c, which
should compile as part of the build or as any application would.
Launch them from this directory to get results, runtest checks
the proper functionning of libxml2 main APIs while testapi does
the proper functioning of libxml2 main APIs while testapi does
a full coverage check. Report failures to the list.

To report bugs, follow the instructions at:
Expand Down
4 changes: 2 additions & 2 deletions SAX2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2173,7 +2173,7 @@ xmlSAX2AttributeNs(xmlParserCtxtPtr ctxt,
* attribute values.
*
* SAX2 callback when an element start has been detected by the parser.
* It provides the namespace informations for the element, as well as
* It provides the namespace information for the element, as well as
* the new namespace declarations on the element.
*/
void
Expand Down Expand Up @@ -2426,7 +2426,7 @@ xmlSAX2StartElementNs(void *ctx,
* @URI: the element namespace name if available
*
* SAX2 callback when an element end has been detected by the parser.
* It provides the namespace informations for the element.
* It provides the namespace information for the element.
*/
void
xmlSAX2EndElementNs(void *ctx,
Expand Down
8 changes: 4 additions & 4 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ Done:
by the XML parser, UTF-8 should be checked when there is no "encoding"
declared !
- Support for UTF-8 and UTF-16 encoding
=> added some convertion routines provided by Martin Durst
=> added some conversion routines provided by Martin Durst
patched them, got fixes from @@@
I plan to keep everything internally as UTF-8 (or ISO-Latin-X)
this is slightly more costly but more compact, and recent processors
Expand All @@ -212,7 +212,7 @@ Done:
is enabled, tested the ISO->UTF-8 stuff
- External entities loading:
- allow override by client code
- make sure it is alled for all external entities referenced
- make sure it is called for all external entities referenced
Done, client code should use xmlSetExternalEntityLoader() to set
the default loading routine. It will be called each time an external
entity entity resolution is triggered.
Expand Down Expand Up @@ -245,8 +245,8 @@ Done:
most cases !

- progressive reading. The entity support is a first step toward
asbtraction of an input stream. A large part of the context is still
located on the stack, moving to a state machine and putting everyting
abstraction of an input stream. A large part of the context is still
located on the stack, moving to a state machine and putting everything
in the parsing context should provide an adequate solution.
=> Rather than progressive parsing, give more power to the SAX-like
interface. Currently the DOM-like representation is built but
Expand Down
2 changes: 1 addition & 1 deletion bakefile/Readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
The template files used to generate all makefiles are only two:
- libxml2.bkl (the main one)
- Bakefiles.bkgen
All the other files can be dinamically regenerated.
All the other files can be dynamically regenerated.



Expand Down
4 changes: 2 additions & 2 deletions buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ struct _xmlBuf {

/**
* xmlBufMemoryError:
* @extra: extra informations
* @extra: extra information
*
* Handle an out of memory condition
* To be improved...
Expand All @@ -98,7 +98,7 @@ xmlBufMemoryError(xmlBufPtr buf, const char *extra)

/**
* xmlBufOverflowError:
* @extra: extra informations
* @extra: extra information
*
* Handle a buffer overflow error
* To be improved...
Expand Down
14 changes: 7 additions & 7 deletions c14n.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static xmlChar *xmlC11NNormalizeString(const xmlChar * input,

/**
* xmlC14NErrMemory:
* @extra: extra informations
* @extra: extra information
*
* Handle a redefinition of memory error
*/
Expand All @@ -147,7 +147,7 @@ xmlC14NErrMemory(const char *extra)

/**
* xmlC14NErrParam:
* @extra: extra informations
* @extra: extra information
*
* Handle a redefinition of param error
*/
Expand All @@ -162,7 +162,7 @@ xmlC14NErrParam(const char *extra)

/**
* xmlC14NErrInternal:
* @extra: extra informations
* @extra: extra information
*
* Handle a redefinition of internal error
*/
Expand All @@ -177,7 +177,7 @@ xmlC14NErrInternal(const char *extra)

/**
* xmlC14NErrInvalidNode:
* @extra: extra informations
* @extra: extra information
*
* Handle a redefinition of invalid node error
*/
Expand All @@ -192,7 +192,7 @@ xmlC14NErrInvalidNode(const char *node_type, const char *extra)

/**
* xmlC14NErrUnknownNode:
* @extra: extra informations
* @extra: extra information
*
* Handle a redefinition of unknown node error
*/
Expand All @@ -207,7 +207,7 @@ xmlC14NErrUnknownNode(int node_type, const char *extra)

/**
* xmlC14NErrRelativeNamespace:
* @extra: extra informations
* @extra: extra information
*
* Handle a redefinition of relative namespace error
*/
Expand All @@ -228,7 +228,7 @@ xmlC14NErrRelativeNamespace(const char *ns_uri)
* @node: the context node
* @error: the error code
* @msg: the message
* @extra: extra informations
* @extra: extra information
*
* Handle a redefinition of attribute error
*/
Expand Down
4 changes: 2 additions & 2 deletions catalog.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ static int xmlCatalogInitialized = 0;

/**
* xmlCatalogErrMemory:
* @extra: extra informations
* @extra: extra information
*
* Handle an out of memory condition
*/
Expand All @@ -234,7 +234,7 @@ xmlCatalogErrMemory(const char *extra)
* @catal: the Catalog entry
* @node: the context node
* @msg: the error message
* @extra: extra informations
* @extra: extra information
*
* Handle a catalog error
*/
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ else

# warnings we'd like to see
EXTRA_CFLAGS="${EXTRA_CFLAGS} -pedantic -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls"
# warnings we'd like to supress
# warnings we'd like to suppress
EXTRA_CFLAGS="${EXTRA_CFLAGS} -Wno-long-long -Wno-format-extra-args"
case "${host}" in
alpha*-*-linux* )
Expand Down Expand Up @@ -1655,7 +1655,7 @@ dnl http://sourceforge.net/project/shownotes.php?release_id=24832
dnl
dnl Also *win32*config.h files redefine them for various MSC compilers.
dnl
dnl So do not redefine {v}snprintf to _{v}snprintf like follwing:
dnl So do not redefine {v}snprintf to _{v}snprintf like following:
dnl AC_DEFINE([snprintf],[_snprintf],[Win32 Std C name mangling work-around])
dnl AC_DEFINE([vsnprintf],[_vsnprintf],[Win32 Std C name mangling work-around])
dnl and do not redefine those functions is C-source files.
Expand Down
10 changes: 5 additions & 5 deletions debugXML.c
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@ xmlCtxtDumpDTD(xmlDebugCtxtPtr ctxt, xmlDtdPtr dtd)
* @output: the FILE * for the output
* @str: the string
*
* Dumps informations about the string, shorten it if necessary
* Dumps information about the string, shorten it if necessary
*/
void
xmlDebugDumpString(FILE * output, const xmlChar * str)
Expand Down Expand Up @@ -2190,7 +2190,7 @@ xmlShellRegisterRootNamespaces(xmlShellCtxtPtr ctxt, char *arg ATTRIBUTE_UNUSED,
* @node2: unused
*
* Implements the XML shell function "grep"
* dumps informations about the node (namespace, attributes, content).
* dumps information about the node (namespace, attributes, content).
*
* Returns 0
*/
Expand Down Expand Up @@ -2268,7 +2268,7 @@ xmlShellGrep(xmlShellCtxtPtr ctxt ATTRIBUTE_UNUSED,
* @node2: unused
*
* Implements the XML shell function "dir"
* dumps informations about the node (namespace, attributes, content).
* dumps information about the node (namespace, attributes, content).
*
* Returns 0
*/
Expand Down Expand Up @@ -2302,7 +2302,7 @@ xmlShellDir(xmlShellCtxtPtr ctxt ATTRIBUTE_UNUSED,
* @node2: unused
*
* Implements the XML shell function "dir"
* dumps informations about the node (namespace, attributes, content).
* dumps information about the node (namespace, attributes, content).
*
* Returns 0
*/
Expand Down Expand Up @@ -2900,7 +2900,7 @@ xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,
fprintf(ctxt->output, "\tbye leave shell\n");
fprintf(ctxt->output, "\tcat [node] display node or current node\n");
fprintf(ctxt->output, "\tcd [path] change directory to path or to root\n");
fprintf(ctxt->output, "\tdir [path] dumps informations about the node (namespace, attributes, content)\n");
fprintf(ctxt->output, "\tdir [path] dumps information about the node (namespace, attributes, content)\n");
fprintf(ctxt->output, "\tdu [path] show the structure of the subtree under path or the current node\n");
fprintf(ctxt->output, "\texit leave shell\n");
fprintf(ctxt->output, "\thelp display this help\n");
Expand Down
2 changes: 1 addition & 1 deletion dict.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS AND
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS AND
* CONTRIBUTORS ACCEPT NO RESPONSIBILITY IN ANY CONCEIVABLE MANNER.
*
* Author: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion doc/apibuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ def parseMacroComment(self, name, quiet = 0):
return((args, desc))

#
# Parse a comment block and merge the informations found in the
# Parse a comment block and merge the information found in the
# parameters descriptions, finally returns a block as complete
# as possible
#
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/examples.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
</example>
<example filename='reader1.c'>
<synopsis>Parse an XML file with an xmlReader</synopsis>
<purpose>Demonstrate the use of xmlReaderForFile() to parse an XML file and dump the informations about the nodes found in the process. (Note that the XMLReader functions require libxml2 version later than 2.6.)</purpose>
<purpose>Demonstrate the use of xmlReaderForFile() to parse an XML file and dump the information about the nodes found in the process. (Note that the XMLReader functions require libxml2 version later than 2.6.)</purpose>
<usage>reader1 &lt;filename&gt;</usage>
<test>reader1 test2.xml &gt; reader1.tmp &amp;&amp; diff reader1.tmp $(srcdir)/reader1.res</test>
<author>Daniel Veillard</author>
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/reader1.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* section: xmlReader
* synopsis: Parse an XML file with an xmlReader
* purpose: Demonstrate the use of xmlReaderForFile() to parse an XML file
* and dump the informations about the nodes found in the process.
* and dump the information about the nodes found in the process.
* (Note that the XMLReader functions require libxml2 version later
* than 2.6.)
* usage: reader1 <filename>
Expand Down
6 changes: 3 additions & 3 deletions doc/examples/testWriter.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ testXmlwriterFilename(const char *uri)
return;
}

/* Start an element named "EXAMPLE". Since thist is the first
/* Start an element named "EXAMPLE". Since this is the first
* element, this will be the root element of the document. */
rc = xmlTextWriterStartElement(writer, BAD_CAST "EXAMPLE");
if (rc < 0) {
Expand Down Expand Up @@ -368,7 +368,7 @@ testXmlwriterMemory(const char *file)
return;
}

/* Start an element named "EXAMPLE". Since thist is the first
/* Start an element named "EXAMPLE". Since this is the first
* element, this will be the root element of the document. */
rc = xmlTextWriterStartElement(writer, BAD_CAST "EXAMPLE");
if (rc < 0) {
Expand Down Expand Up @@ -644,7 +644,7 @@ testXmlwriterDoc(const char *file)
return;
}

/* Start an element named "EXAMPLE". Since thist is the first
/* Start an element named "EXAMPLE". Since this is the first
* element, this will be the root element of the document. */
rc = xmlTextWriterStartElement(writer, BAD_CAST "EXAMPLE");
if (rc < 0) {
Expand Down
2 changes: 1 addition & 1 deletion doc/guidelines.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h3>DTD rules:</h3>
<li>use significant words for the element and attributes names.</li>
<li>do not use attributes for general textual content, attributes
will be modified by the parser before reaching the application,
spaces and line informations will be modified.</li>
spaces and line information will be modified.</li>
<li>use single elements for every string that might be subject to
localization. The canonical way to localize XML content is to use
siblings element carrying different xml:lang attributes like in the
Expand Down
4 changes: 2 additions & 2 deletions doc/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# Bye
#
# Then run the script in the doc subdir, it will create the symbols and
# word tables and populate them with informations extracted from
# word tables and populate them with information extracted from
# the libxml2-api.xml API description, and make them accessible read-only
# by nobody@loaclhost the user expected to be Apache's one
#
Expand Down Expand Up @@ -1177,7 +1177,7 @@ def analyzeAPITop():
try:
doc = loadAPI(API)
ret = analyzeAPI(doc)
print "Analyzed %d blocs" % (ret)
print "Analyzed %d blocks" % (ret)
doc.freeDoc()
except:
print "Failed to parse and analyze %s" % (API)
Expand Down
Loading

0 comments on commit 20c6088

Please sign in to comment.