Commit 2a350ee9 authored by Jared Yanovich's avatar Jared Yanovich Committed by Nick Wellnhofer

Large batch of typo fixes

Closes #109.
parent 80b110a9
This diff is collapsed.
...@@ -317,7 +317,7 @@ htmlNodeInfoPop(htmlParserCtxtPtr ctxt) ...@@ -317,7 +317,7 @@ htmlNodeInfoPop(htmlParserCtxtPtr ctxt)
#define SKIP_BLANKS htmlSkipBlankChars(ctxt) #define SKIP_BLANKS htmlSkipBlankChars(ctxt)
/* Inported from XML */ /* Imported from XML */
/* #define CUR (ctxt->token ? ctxt->token : (int) (*ctxt->input->cur)) */ /* #define CUR (ctxt->token ? ctxt->token : (int) (*ctxt->input->cur)) */
#define CUR ((int) (*ctxt->input->cur)) #define CUR ((int) (*ctxt->input->cur))
...@@ -537,7 +537,7 @@ htmlCurrentChar(xmlParserCtxtPtr ctxt, int *len) { ...@@ -537,7 +537,7 @@ htmlCurrentChar(xmlParserCtxtPtr ctxt, int *len) {
encoding_error: encoding_error:
/* /*
* If we detect an UTF8 error that probably mean that the * If we detect an UTF8 error that probably mean that the
* input encoding didn't get properly advertized in the * input encoding didn't get properly advertised in the
* declaration header. Report the error and switch the encoding * declaration header. Report the error and switch the encoding
* to ISO-Latin-1 (if you don't like this policy, just declare the * to ISO-Latin-1 (if you don't like this policy, just declare the
* encoding !) * encoding !)
...@@ -602,8 +602,8 @@ htmlSkipBlankChars(xmlParserCtxtPtr ctxt) { ...@@ -602,8 +602,8 @@ htmlSkipBlankChars(xmlParserCtxtPtr ctxt) {
************************************************************************/ ************************************************************************/
/* /*
* Start Tag: 1 means the start tag can be ommited * Start Tag: 1 means the start tag can be omitted
* End Tag: 1 means the end tag can be ommited * End Tag: 1 means the end tag can be omitted
* 2 means it's forbidden (empty elements) * 2 means it's forbidden (empty elements)
* 3 means the tag is stylistic and should be closed easily * 3 means the tag is stylistic and should be closed easily
* Depr: this element is deprecated * Depr: this element is deprecated
...@@ -1342,7 +1342,7 @@ htmlAutoCloseOnClose(htmlParserCtxtPtr ctxt, const xmlChar * newtag) ...@@ -1342,7 +1342,7 @@ htmlAutoCloseOnClose(htmlParserCtxtPtr ctxt, const xmlChar * newtag)
if (xmlStrEqual(newtag, ctxt->nameTab[i])) if (xmlStrEqual(newtag, ctxt->nameTab[i]))
break; break;
/* /*
* A missplaced endtag can only close elements with lower * A misplaced endtag can only close elements with lower
* or equal priority, so if we find an element with higher * or equal priority, so if we find an element with higher
* priority before we find an element with * priority before we find an element with
* matching name, we just ignore this endtag * matching name, we just ignore this endtag
...@@ -2218,9 +2218,9 @@ htmlNewInputStream(htmlParserCtxtPtr ctxt) { ...@@ -2218,9 +2218,9 @@ htmlNewInputStream(htmlParserCtxtPtr ctxt) {
************************************************************************/ ************************************************************************/
/* /*
* all tags allowing pc data from the html 4.01 loose dtd * all tags allowing pc data from the html 4.01 loose dtd
* NOTE: it might be more apropriate to integrate this information * NOTE: it might be more appropriate to integrate this information
* into the html40ElementTable array but I don't want to risk any * into the html40ElementTable array but I don't want to risk any
* binary incomptibility * binary incompatibility
*/ */
static const char *allowPCData[] = { static const char *allowPCData[] = {
"a", "abbr", "acronym", "address", "applet", "b", "bdo", "big", "a", "abbr", "acronym", "address", "applet", "b", "bdo", "big",
......
...@@ -1048,7 +1048,7 @@ htmlDocContentDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr cur, ...@@ -1048,7 +1048,7 @@ htmlDocContentDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr cur,
* @cur: the document * @cur: the document
* @encoding: the encoding string * @encoding: the encoding string
* *
* Dump an HTML document. Formating return/spaces are added. * Dump an HTML document. Formatting return/spaces are added.
*/ */
void void
htmlDocContentDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr cur, htmlDocContentDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr cur,
......
...@@ -1398,7 +1398,7 @@ Gansterer), ...@@ -1398,7 +1398,7 @@ Gansterer),
on Windows (Igor Zlatkovic), htmlCtxtReset fix (Michael Day), XPath on Windows (Igor Zlatkovic), htmlCtxtReset fix (Michael Day), XPath
principal node of axis bug, HTML serialization of some codepoint principal node of axis bug, HTML serialization of some codepoint
(Steven Rainwater), user data propagation in XInclude (Michael Day), (Steven Rainwater), user data propagation in XInclude (Michael Day),
standalone and XML decl detection (Michael Day), Python id ouptut standalone and XML decl detection (Michael Day), Python id output
for some id, fix the big python string memory leak, URI parsing fixes for some id, fix the big python string memory leak, URI parsing fixes
(Stéphane Bidoul and William), long comments parsing bug (William), (Stéphane Bidoul and William), long comments parsing bug (William),
concurrent threads initialization (Ted Phelps), invalid char concurrent threads initialization (Ted Phelps), invalid char
...@@ -1410,7 +1410,7 @@ Gansterer), ...@@ -1410,7 +1410,7 @@ Gansterer),
min occurs of 0 (William), HTML script/style parsing (Mike Day) min occurs of 0 (William), HTML script/style parsing (Mike Day)
- Improvement: make xmlTextReaderSetup() public - Improvement: make xmlTextReaderSetup() public
- Compilation and postability: fix a missing include problem (William), - Compilation and postability: fix a missing include problem (William),
__ss_familly on AIX again (Björn Wiberg), compilation without zlib __ss_family on AIX again (Björn Wiberg), compilation without zlib
(Michael Day), catalog patch for Win32 (Christian Ehrlicher), (Michael Day), catalog patch for Win32 (Christian Ehrlicher),
Windows CE fixes (Andreas Stricke) Windows CE fixes (Andreas Stricke)
- Various CVS to SVN infrastructure changes - Various CVS to SVN infrastructure changes
...@@ -1449,7 +1449,7 @@ Gansterer), ...@@ -1449,7 +1449,7 @@ Gansterer),
fix attribute serialization in writer (Rob Richards), PHP4 DTD validation fix attribute serialization in writer (Rob Richards), PHP4 DTD validation
crasher, parser safety patch (Ben Darnell), _private context propagation crasher, parser safety patch (Ben Darnell), _private context propagation
when parsing entities (with Michael Day), fix entities behaviour when when parsing entities (with Michael Day), fix entities behaviour when
using SAX, URI to file path fix (Mikhail Zabaluev), disapearing validity using SAX, URI to file path fix (Mikhail Zabaluev), disappearing validity
context, arg error in SAX callback (Mike Hommey), fix mixed-content context, arg error in SAX callback (Mike Hommey), fix mixed-content
autodetect when using --noblanks, fix xmlIOParseDTD error handling, autodetect when using --noblanks, fix xmlIOParseDTD error handling,
fix bug in xmlSplitQName on special Names, fix Relax-NG element content fix bug in xmlSplitQName on special Names, fix Relax-NG element content
...@@ -1533,7 +1533,7 @@ Do not use or package 2.6.25 ...@@ -1533,7 +1533,7 @@ Do not use or package 2.6.25
split problem (William), issues with non-namespaced attributes in split problem (William), issues with non-namespaced attributes in
xmlAddChild() xmlAddNextSibling() and xmlAddPrevSibling() (Rob Richards), xmlAddChild() xmlAddNextSibling() and xmlAddPrevSibling() (Rob Richards),
HTML parsing of script, Python must not output to stdout (Nic Ferrier), HTML parsing of script, Python must not output to stdout (Nic Ferrier),
exclusive C14N namespace visibility (Aleksey Sanin), XSD dataype exclusive C14N namespace visibility (Aleksey Sanin), XSD datatype
totalDigits bug (Kasimier Buchcik), error handling when writing to an totalDigits bug (Kasimier Buchcik), error handling when writing to an
xmlBuffer (Rob Richards), runtest schemas error not reported (Hisashi xmlBuffer (Rob Richards), runtest schemas error not reported (Hisashi
Fujinaka), signed/unsigned problem in date/time code (Albert Chin), fix Fujinaka), signed/unsigned problem in date/time code (Albert Chin), fix
...@@ -1542,7 +1542,7 @@ Do not use or package 2.6.25 ...@@ -1542,7 +1542,7 @@ Do not use or package 2.6.25
(Gary Coady), regexp bug affecting schemas (Kasimier), configuration of (Gary Coady), regexp bug affecting schemas (Kasimier), configuration of
runtime debugging (Kasimier), xmlNodeBufGetContent bug on entity refs runtime debugging (Kasimier), xmlNodeBufGetContent bug on entity refs
(Oleksandr Kononenko), xmlRegExecPushString2 bug (Sreeni Nair), (Oleksandr Kononenko), xmlRegExecPushString2 bug (Sreeni Nair),
compilation and build fixes (Michael Day), removed dependancies on compilation and build fixes (Michael Day), removed dependencies on
xmlSchemaValidError (Kasimier), bug with <xml:foo/>, more XPath xmlSchemaValidError (Kasimier), bug with <xml:foo/>, more XPath
pattern based evaluation fixes (Kasimier) pattern based evaluation fixes (Kasimier)
- improvements: XSD Schemas redefinitions/restrictions (Kasimier - improvements: XSD Schemas redefinitions/restrictions (Kasimier
...@@ -1587,7 +1587,7 @@ Do not use or package 2.6.25 ...@@ -1587,7 +1587,7 @@ Do not use or package 2.6.25
foreign namespaces handling, XML Schemas facet comparison (Kupriyanov foreign namespaces handling, XML Schemas facet comparison (Kupriyanov
Anatolij), xmlSchemaPSimpleTypeErr error report (Kasimier Buchcik), xml: Anatolij), xmlSchemaPSimpleTypeErr error report (Kasimier Buchcik), xml:
namespace ahndling in Schemas (Kasimier), empty model group in Schemas namespace ahndling in Schemas (Kasimier), empty model group in Schemas
(Kasimier), wilcard in Schemas (Kasimier), URI composition (William), (Kasimier), wildcard in Schemas (Kasimier), URI composition (William),
xs:anyType in Schemas (Kasimier), Python resolver emmitting error xs:anyType in Schemas (Kasimier), Python resolver emmitting error
messages directly, Python xmlAttr.parent (Jakub Piotr Clapa), trying to messages directly, Python xmlAttr.parent (Jakub Piotr Clapa), trying to
fix the file path/URI conversion, xmlTextReaderGetAttribute fix (Rob fix the file path/URI conversion, xmlTextReaderGetAttribute fix (Rob
...@@ -1761,7 +1761,7 @@ Do not use or package 2.6.25 ...@@ -1761,7 +1761,7 @@ Do not use or package 2.6.25
Buchcik), XInclude testing, Notation serialization, UTF8ToISO8859x Buchcik), XInclude testing, Notation serialization, UTF8ToISO8859x
transcoding (Mark Itzcovitz), lots of XML Schemas cleanup and fixes transcoding (Mark Itzcovitz), lots of XML Schemas cleanup and fixes
(Kasimier), ChangeLog cleanup (Stepan Kasal), memory fixes (Mark Vakoc), (Kasimier), ChangeLog cleanup (Stepan Kasal), memory fixes (Mark Vakoc),
handling of failed realloc(), out of bound array adressing in Schemas handling of failed realloc(), out of bound array addressing in Schemas
date handling, Python space/tabs cleanups (Malcolm Tredinnick), NMTOKENS date handling, Python space/tabs cleanups (Malcolm Tredinnick), NMTOKENS
E20 validation fix (Malcolm), E20 validation fix (Malcolm),
- improvements: added W3C XML Schemas testsuite (Kasimier Buchcik), add - improvements: added W3C XML Schemas testsuite (Kasimier Buchcik), add
...@@ -1778,7 +1778,7 @@ Do not use or package 2.6.25 ...@@ -1778,7 +1778,7 @@ Do not use or package 2.6.25
(Kasimier Buchcik), Schemas validation crash, xmlCheckUTF8 (William Brack (Kasimier Buchcik), Schemas validation crash, xmlCheckUTF8 (William Brack
and Julius Mittenzwei), Schemas facet check (Kasimier), default namespace and Julius Mittenzwei), Schemas facet check (Kasimier), default namespace
problem (William), Schemas hexbinary empty values, encoding error could problem (William), Schemas hexbinary empty values, encoding error could
genrate a serialization loop. generate a serialization loop.
- Improvements: Schemas validity improvements (Kasimier), added --path - Improvements: Schemas validity improvements (Kasimier), added --path
and --load-trace options to xmllint and --load-trace options to xmllint
- documentation: tutorial update (John Fleck) - documentation: tutorial update (John Fleck)
...@@ -1936,7 +1936,7 @@ Do not use or package 2.6.25 ...@@ -1936,7 +1936,7 @@ Do not use or package 2.6.25
--with-minimum configuration. --with-minimum configuration.
- XInclude: allow the 2001 namespace without warning. - XInclude: allow the 2001 namespace without warning.
- Documentation: missing example/index.html (John Fleck), version - Documentation: missing example/index.html (John Fleck), version
dependancies (John Fleck) dependencies (John Fleck)
- reader API: structured error reporting (Steve Ball) - reader API: structured error reporting (Steve Ball)
- Windows compilation: mingw, msys (Mikhail Grushinskiy), function - Windows compilation: mingw, msys (Mikhail Grushinskiy), function
prototype (Cameron Johnson), MSVC6 compiler warnings, _WINSOCKAPI_ prototype (Cameron Johnson), MSVC6 compiler warnings, _WINSOCKAPI_
...@@ -2070,7 +2070,7 @@ Do not use or package 2.6.25 ...@@ -2070,7 +2070,7 @@ Do not use or package 2.6.25
intercepted at a structured level, with precise information intercepted at a structured level, with precise information
available. available.
- New simpler and more generic XML and HTML parser APIs, allowing to - New simpler and more generic XML and HTML parser APIs, allowing to
easilly modify the parsing options and reuse parser context for multiple easily modify the parsing options and reuse parser context for multiple
consecutive documents. consecutive documents.
- Similar new APIs for the xmlReader, for options and reuse, provided new - Similar new APIs for the xmlReader, for options and reuse, provided new
functions to access content as const strings, use them for Python functions to access content as const strings, use them for Python
......
...@@ -7,7 +7,7 @@ Notes for compiling on zOS: ...@@ -7,7 +7,7 @@ Notes for compiling on zOS:
- since the name of files (or qualifier) in PDS are limited to 8 I had to - since the name of files (or qualifier) in PDS are limited to 8 I had to
rename xmlschemas.c and xmlschemastypes.c in (resp.) xmlsche.c xmlschet.c rename xmlschemas.c and xmlschemastypes.c in (resp.) xmlsche.c xmlschet.c
(and I had to modify all occurences of these files accordingly in the (and I had to modify all occurrences of these files accordingly in the
rest of the Makefile !!!). rest of the Makefile !!!).
- in order to copy objects to PDS, I had the cp command at line 860 - in order to copy objects to PDS, I had the cp command at line 860
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
* TODO: * TODO:
* *
* macro to flag unimplemented blocks * macro to flag unimplemented blocks
* XML_CATALOG_PREFER user env to select between system/public prefered * XML_CATALOG_PREFER user env to select between system/public preferred
* option. C.f. Richard Tobin <richard@cogsci.ed.ac.uk> * option. C.f. Richard Tobin <richard@cogsci.ed.ac.uk>
*> Just FYI, I am using an environment variable XML_CATALOG_PREFER with *> Just FYI, I am using an environment variable XML_CATALOG_PREFER with
*> values "system" and "public". I have made the default be "system" to *> values "system" and "public". I have made the default be "system" to
...@@ -1512,8 +1512,8 @@ process_external_subset: ...@@ -1512,8 +1512,8 @@ process_external_subset:
attr = elemDecl->attributes; attr = elemDecl->attributes;
while (attr != NULL) { while (attr != NULL) {
/* /*
* Make sure that attributes redefinition occuring in the * Make sure that attributes redefinition occurring in the
* internal subset are not overriden by definitions in the * internal subset are not overridden by definitions in the
* external subset. * external subset.
*/ */
if (attr->defaultValue != NULL) { if (attr->defaultValue != NULL) {
...@@ -1736,8 +1736,8 @@ xmlSAX2StartElement(void *ctx, const xmlChar *fullname, const xmlChar **atts) ...@@ -1736,8 +1736,8 @@ xmlSAX2StartElement(void *ctx, const xmlChar *fullname, const xmlChar **atts)
} }
/* /*
* set the namespace node, making sure that if the default namspace * set the namespace node, making sure that if the default namespace
* is unbound on a parent we simply kee it NULL * is unbound on a parent we simply keep it NULL
*/ */
if ((ns != NULL) && (ns->href != NULL) && if ((ns != NULL) && (ns->href != NULL) &&
((ns->href[0] != 0) || (ns->prefix != NULL))) ((ns->href[0] != 0) || (ns->prefix != NULL)))
...@@ -2012,7 +2012,7 @@ xmlSAX2AttributeNs(xmlParserCtxtPtr ctxt, ...@@ -2012,7 +2012,7 @@ xmlSAX2AttributeNs(xmlParserCtxtPtr ctxt,
else else
ret->name = xmlStrdup(localname); ret->name = xmlStrdup(localname);
/* link at the end to preserv order, TODO speed up with a last */ /* link at the end to preserve order, TODO speed up with a last */
if (ctxt->node->properties == NULL) { if (ctxt->node->properties == NULL) {
ctxt->node->properties = ret; ctxt->node->properties = ret;
} else { } else {
...@@ -2104,7 +2104,7 @@ xmlSAX2AttributeNs(xmlParserCtxtPtr ctxt, ...@@ -2104,7 +2104,7 @@ xmlSAX2AttributeNs(xmlParserCtxtPtr ctxt,
} else { } else {
/* /*
* dup now contains a string of the flattened attribute * dup now contains a string of the flattened attribute
* content with entities substitued. Check if we need to * content with entities substituted. Check if we need to
* apply an extra layer of normalization. * apply an extra layer of normalization.
* It need to be done twice ... it's an extra burden related * It need to be done twice ... it's an extra burden related
* to the ability to keep references in attributes * to the ability to keep references in attributes
...@@ -2137,7 +2137,7 @@ xmlSAX2AttributeNs(xmlParserCtxtPtr ctxt, ...@@ -2137,7 +2137,7 @@ xmlSAX2AttributeNs(xmlParserCtxtPtr ctxt,
} }
} else { } else {
/* /*
* if entities already have been substitued, then * if entities already have been substituted, then
* the attribute as passed is already normalized * the attribute as passed is already normalized
*/ */
dup = xmlStrndup(value, valueend - value); dup = xmlStrndup(value, valueend - value);
...@@ -2400,7 +2400,7 @@ xmlSAX2StartElementNs(void *ctx, ...@@ -2400,7 +2400,7 @@ xmlSAX2StartElementNs(void *ctx,
if (nb_attributes > 0) { if (nb_attributes > 0) {
for (j = 0,i = 0;i < nb_attributes;i++,j+=5) { for (j = 0,i = 0;i < nb_attributes;i++,j+=5) {
/* /*
* Handle the rare case of an undefined atribute prefix * Handle the rare case of an undefined attribute prefix
*/ */
if ((attributes[j+1] != NULL) && (attributes[j+2] == NULL)) { if ((attributes[j+1] != NULL) && (attributes[j+2] == NULL)) {
if (ctxt->dictNames) { if (ctxt->dictNames) {
...@@ -2586,7 +2586,7 @@ xmlSAX2Characters(void *ctx, const xmlChar *ch, int len) ...@@ -2586,7 +2586,7 @@ xmlSAX2Characters(void *ctx, const xmlChar *ch, int len)
* The whole point of maintaining nodelen and nodemem, * The whole point of maintaining nodelen and nodemem,
* xmlTextConcat is too costly, i.e. compute length, * xmlTextConcat is too costly, i.e. compute length,
* reallocate a new buffer, move data, append ch. Here * reallocate a new buffer, move data, append ch. Here
* We try to minimaze realloc() uses and avoid copying * We try to minimize realloc() uses and avoid copying
* and recomputing length over and over. * and recomputing length over and over.
*/ */
if (lastChild->content == (xmlChar *)&(lastChild->properties)) { if (lastChild->content == (xmlChar *)&(lastChild->properties)) {
......
/* /*
* buf.c: memory buffers for libxml2 * buf.c: memory buffers for libxml2
* *
* new buffer structures and entry points to simplify the maintainance * new buffer structures and entry points to simplify the maintenance
* of libxml2 and ensure we keep good control over memory allocations * of libxml2 and ensure we keep good control over memory allocations
* and stay 64 bits clean. * and stay 64 bits clean.
* The new entry point use the xmlBufPtr opaque structure and * The new entry point use the xmlBufPtr opaque structure and
...@@ -396,7 +396,7 @@ xmlBufShrink(xmlBufPtr buf, size_t len) { ...@@ -396,7 +396,7 @@ xmlBufShrink(xmlBufPtr buf, size_t len) {
((buf->alloc == XML_BUFFER_ALLOC_IO) && (buf->contentIO != NULL))) { ((buf->alloc == XML_BUFFER_ALLOC_IO) && (buf->contentIO != NULL))) {
/* /*
* we just move the content pointer, but also make sure * we just move the content pointer, but also make sure
* the perceived buffer size has shrinked accordingly * the perceived buffer size has shrunk accordingly
*/ */
buf->content += len; buf->content += len;
buf->size -= len; buf->size -= len;
...@@ -958,7 +958,7 @@ xmlBufAddHead(xmlBufPtr buf, const xmlChar *str, int len) { ...@@ -958,7 +958,7 @@ xmlBufAddHead(xmlBufPtr buf, const xmlChar *str, int len) {
if (start_buf > (unsigned int) len) { if (start_buf > (unsigned int) len) {
/* /*
* We can add it in the space previously shrinked * We can add it in the space previously shrunk
*/ */
buf->content -= len; buf->content -= len;
memmove(&buf->content[0], str, len); memmove(&buf->content[0], str, len);
...@@ -1307,7 +1307,7 @@ xmlBufGetInputBase(xmlBufPtr buf, xmlParserInputPtr input) { ...@@ -1307,7 +1307,7 @@ xmlBufGetInputBase(xmlBufPtr buf, xmlParserInputPtr input) {
CHECK_COMPAT(buf) CHECK_COMPAT(buf)
base = input->base - buf->content; base = input->base - buf->content;
/* /*
* We could do some pointer arythmetic checks but that's probably * We could do some pointer arithmetic checks but that's probably
* sufficient. * sufficient.
*/ */
if (base > buf->size) { if (base > buf->size) {
......
...@@ -43,7 +43,7 @@ typedef enum { ...@@ -43,7 +43,7 @@ typedef enum {
typedef struct _xmlC14NVisibleNsStack { typedef struct _xmlC14NVisibleNsStack {
int nsCurEnd; /* number of nodes in the set */ int nsCurEnd; /* number of nodes in the set */
int nsPrevStart; /* the begginning of the stack for previous visible node */ int nsPrevStart; /* the beginning of the stack for previous visible node */
int nsPrevEnd; /* the end of the stack for previous visible node */ int nsPrevEnd; /* the end of the stack for previous visible node */
int nsMax; /* size of the array as allocated */ int nsMax; /* size of the array as allocated */
xmlNsPtr *nsTab; /* array of ns in no particular order */ xmlNsPtr *nsTab; /* array of ns in no particular order */
...@@ -226,7 +226,7 @@ xmlC14NErrRelativeNamespace(const char *ns_uri) ...@@ -226,7 +226,7 @@ xmlC14NErrRelativeNamespace(const char *ns_uri)
* xmlC14NErr: * xmlC14NErr:
* @ctxt: a C14N evaluation context * @ctxt: a C14N evaluation context
* @node: the context node * @node: the context node
* @error: the erorr code * @error: the error code
* @msg: the message * @msg: the message
* @extra: extra informations * @extra: extra informations
* *
...@@ -1827,7 +1827,7 @@ xmlC14NNewCtx(xmlDocPtr doc, ...@@ -1827,7 +1827,7 @@ xmlC14NNewCtx(xmlDocPtr doc,
} }
/* /*
* Set "mode" flag and remember list of incluseve prefixes * Set "mode" flag and remember list of inclusive prefixes
* for exclusive c14n * for exclusive c14n
*/ */
ctx->mode = mode; ctx->mode = mode;
...@@ -2039,7 +2039,7 @@ xmlC14NDocDumpMemory(xmlDocPtr doc, xmlNodeSetPtr nodes, ...@@ -2039,7 +2039,7 @@ xmlC14NDocDumpMemory(xmlDocPtr doc, xmlNodeSetPtr nodes,
(void) xmlOutputBufferClose(buf); (void) xmlOutputBufferClose(buf);
if ((*doc_txt_ptr == NULL) && (ret > 0)) { if ((*doc_txt_ptr == NULL) && (ret > 0)) {
xmlC14NErrMemory("coping canonicanized document"); xmlC14NErrMemory("coping canonicalized document");
return (-1); return (-1);
} }
return (ret); return (ret);
...@@ -2057,7 +2057,7 @@ xmlC14NDocDumpMemory(xmlDocPtr doc, xmlNodeSetPtr nodes, ...@@ -2057,7 +2057,7 @@ xmlC14NDocDumpMemory(xmlDocPtr doc, xmlNodeSetPtr nodes,
* canonicalization, ignored otherwise) * canonicalization, ignored otherwise)
* @with_comments: include comments in the result (!=0) or not (==0) * @with_comments: include comments in the result (!=0) or not (==0)
* @filename: the filename to store canonical XML image * @filename: the filename to store canonical XML image
* @compression: the compression level (zlib requred): * @compression: the compression level (zlib required):
* -1 - libxml default, * -1 - libxml default,
* 0 - uncompressed, * 0 - uncompressed,
* >0 - compression level * >0 - compression level
...@@ -2100,7 +2100,7 @@ xmlC14NDocSave(xmlDocPtr doc, xmlNodeSetPtr nodes, ...@@ -2100,7 +2100,7 @@ xmlC14NDocSave(xmlDocPtr doc, xmlNodeSetPtr nodes,
ret = xmlC14NDocSaveTo(doc, nodes, mode, inclusive_ns_prefixes, ret = xmlC14NDocSaveTo(doc, nodes, mode, inclusive_ns_prefixes,
with_comments, buf); with_comments, buf);
if (ret < 0) { if (ret < 0) {
xmlC14NErrInternal("cannicanize document to buffer"); xmlC14NErrInternal("canonize document to buffer");
(void) xmlOutputBufferClose(buf); (void) xmlOutputBufferClose(buf);
return (-1); return (-1);
} }
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
* TODO: * TODO:
* *
* macro to flag unimplemented blocks * macro to flag unimplemented blocks
* XML_CATALOG_PREFER user env to select between system/public prefered * XML_CATALOG_PREFER user env to select between system/public preferred
* option. C.f. Richard Tobin <richard@cogsci.ed.ac.uk> * option. C.f. Richard Tobin <richard@cogsci.ed.ac.uk>
*> Just FYI, I am using an environment variable XML_CATALOG_PREFER with *> Just FYI, I am using an environment variable XML_CATALOG_PREFER with
*> values "system" and "public". I have made the default be "system" to *> values "system" and "public". I have made the default be "system" to
......
...@@ -209,7 +209,7 @@ while case != None: ...@@ -209,7 +209,7 @@ while case != None:
old_test_failed = test_failed old_test_failed = test_failed
old_test_error = test_error old_test_error = test_error
runTestCases(case) runTestCases(case)
print " Ran %d tests: %d suceeded, %d failed and %d generated an error" % ( print " Ran %d tests: %d succeeded, %d failed and %d generated an error" % (
test_nr - old_test_nr, test_succeed - old_test_succeed, test_nr - old_test_nr, test_succeed - old_test_succeed,
test_failed - old_test_failed, test_error - old_test_error) test_failed - old_test_failed, test_error - old_test_error)
case = case.next case = case.next
...@@ -217,5 +217,5 @@ while case != None: ...@@ -217,5 +217,5 @@ while case != None:
conf.freeDoc() conf.freeDoc()
log.close() log.close()
print "Ran %d tests: %d suceeded, %d failed and %d generated an error in %.2f s." % ( print "Ran %d tests: %d succeeded, %d failed and %d generated an error in %.2f s." % (
test_nr, test_succeed, test_failed, test_error, time.time() - start) test_nr, test_succeed, test_failed, test_error, time.time() - start)
...@@ -326,7 +326,7 @@ def runTest(test): ...@@ -326,7 +326,7 @@ def runTest(test):
#elif extra == 'both' or extra == 'parameter': #elif extra == 'both' or extra == 'parameter':
res = testNotWfEntDtd(URI, id) res = testNotWfEntDtd(URI, id)
#else: #else:
# print "Unknow value %s for an ENTITIES test value" % (extra) # print "Unknown value %s for an ENTITIES test value" % (extra)
# return -1 # return -1
elif type == "error": elif type == "error":
res = testError(URI, id) res = testError(URI, id)
...@@ -397,7 +397,7 @@ while case != None: ...@@ -397,7 +397,7 @@ while case != None:
old_test_failed = test_failed old_test_failed = test_failed
old_test_error = test_error old_test_error = test_error
runTestCases(case) runTestCases(case)
print " Ran %d tests: %d suceeded, %d failed and %d generated an error" % ( print " Ran %d tests: %d succeeded, %d failed and %d generated an error" % (
test_nr - old_test_nr, test_succeed - old_test_succeed, test_nr - old_test_nr, test_succeed - old_test_succeed,
test_failed - old_test_failed, test_error - old_test_error) test_failed - old_test_failed, test_error - old_test_error)
case = case.next case = case.next
...@@ -405,5 +405,5 @@ while case != None: ...@@ -405,5 +405,5 @@ while case != None:
conf.freeDoc() conf.freeDoc()
log.close() log.close()
print "Ran %d tests: %d suceeded, %d failed and %d generated an error in %.2f s." % ( print "Ran %d tests: %d succeeded, %d failed and %d generated an error in %.2f s." % (
test_nr, test_succeed, test_failed, test_error, time.time() - start) test_nr, test_succeed, test_failed, test_error, time.time() - start)
...@@ -217,7 +217,7 @@ fi ...@@ -217,7 +217,7 @@ fi
AM_CONDITIONAL([REBUILD_DOCS], [test "$enable_rebuild_docs" = "yes" -o "$USER" = "veillard"]) AM_CONDITIONAL([REBUILD_DOCS], [test "$enable_rebuild_docs" = "yes" -o "$USER" = "veillard"])
dnl dnl
dnl hard dependancies on options dnl hard dependencies on options
dnl dnl
if test "$with_schemas" = "yes" if test "$with_schemas" = "yes"
then then
......
...@@ -289,7 +289,7 @@ xmlCtxtGenericNodeCheck(xmlDebugCtxtPtr ctxt, xmlNodePtr node) { ...@@ -289,7 +289,7 @@ xmlCtxtGenericNodeCheck(xmlDebugCtxtPtr ctxt, xmlNodePtr node) {
dict = doc->dict; dict = doc->dict;
if ((dict == NULL) && (ctxt->nodict == 0)) { if ((dict == NULL) && (ctxt->nodict == 0)) {
#if 0 #if 0
/* desactivated right now as it raises too many errors */ /* deactivated right now as it raises too many errors */
if (doc->type == XML_DOCUMENT_NODE) if (doc->type == XML_DOCUMENT_NODE)
xmlDebugErr(ctxt, XML_CHECK_NO_DICT, xmlDebugErr(ctxt, XML_CHECK_NO_DICT,
"Document has no dictionary\n"); "Document has no dictionary\n");
...@@ -1168,7 +1168,7 @@ xmlCtxtDumpDocHead(xmlDebugCtxtPtr ctxt, xmlDocPtr doc) ...@@ -1168,7 +1168,7 @@ xmlCtxtDumpDocHead(xmlDebugCtxtPtr ctxt, xmlDocPtr doc)
* @output: the FILE * for the output * @output: the FILE * for the output
* @doc: the document * @doc: the document
* *
* Dumps debug information cncerning the document, not recursive * Dumps debug information concerning the document, not recursive
*/ */
static void static void
xmlCtxtDumpDocumentHead(xmlDebugCtxtPtr ctxt, xmlDocPtr doc) xmlCtxtDumpDocumentHead(xmlDebugCtxtPtr ctxt, xmlDocPtr doc)
...@@ -1498,7 +1498,7 @@ xmlDebugDumpNodeList(FILE * output, xmlNodePtr node, int depth) ...@@ -1498,7 +1498,7 @@ xmlDebugDumpNodeList(FILE * output, xmlNodePtr node, int depth)
* @output: the FILE * for the output * @output: the FILE * for the output
* @doc: the document * @doc: the document
* *
* Dumps debug information cncerning the document, not recursive * Dumps debug information concerning the document, not recursive
*/ */
void void
xmlDebugDumpDocumentHead(FILE * output, xmlDocPtr doc) xmlDebugDumpDocumentHead(FILE * output, xmlDocPtr doc)
......
...@@ -730,7 +730,7 @@ xmlDictGrow(xmlDictPtr dict, size_t size) { ...@@ -730,7 +730,7 @@ xmlDictGrow(xmlDictPtr dict, size_t size) {
dict->dict[key].next = entry; dict->dict[key].next = entry;
} else { } else {
/* /*
* we don't have much ways to alert from herei * we don't have much ways to alert from here
* result is losing an entry and unicity guarantee * result is losing an entry and unicity guarantee
*/ */
ret = -1; ret = -1;
...@@ -1205,7 +1205,7 @@ xmlDictQLookup(xmlDictPtr dict, const xmlChar *prefix, const xmlChar *name) { ...@@ -1205,7 +1205,7 @@ xmlDictQLookup(xmlDictPtr dict, const xmlChar *prefix, const xmlChar *name) {
* @dict: the dictionary * @dict: the dictionary
* @str: the string * @str: the string
*