X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=debugXML.c;h=a1b550ac534a0bd0e76c5819b80bb9e9dde4f3f6;hb=f86ba34b57d1a307688402b495d8b0532770d98d;hp=b05fdff527a40eefc9e91d1c548a1a83e4ba9527;hpb=01021030a4e2b351e9ce5f5af13aaf1c14ba0648;p=platform%2Fupstream%2Flibxml2.git diff --git a/debugXML.c b/debugXML.c index b05fdff..a1b550a 100644 --- a/debugXML.c +++ b/debugXML.c @@ -44,10 +44,10 @@ struct _xmlDebugCtxt { int depth; /* current depth */ xmlDocPtr doc; /* current document */ xmlNodePtr node; /* current node */ - xmlDictPtr dict; /* the doc dictionnary */ + xmlDictPtr dict; /* the doc dictionary */ int check; /* do just checkings */ int errors; /* number of errors found */ - int nodict; /* if the document has no dictionnary */ + int nodict; /* if the document has no dictionary */ int options; /* options */ }; @@ -164,7 +164,7 @@ xmlDebugErr(xmlDebugCtxtPtr ctxt, int error, const char *msg) NULL, NULL, NULL, 0, 0, "%s", msg); } -static void +static void LIBXML_ATTR_FORMAT(3,0) xmlDebugErr2(xmlDebugCtxtPtr ctxt, int error, const char *msg, int extra) { ctxt->errors++; @@ -174,7 +174,7 @@ xmlDebugErr2(xmlDebugCtxtPtr ctxt, int error, const char *msg, int extra) NULL, NULL, NULL, 0, 0, msg, extra); } -static void +static void LIBXML_ATTR_FORMAT(3,0) xmlDebugErr3(xmlDebugCtxtPtr ctxt, int error, const char *msg, const char *extra) { ctxt->errors++; @@ -243,7 +243,7 @@ xmlCtxtCheckString(xmlDebugCtxtPtr ctxt, const xmlChar * str) * @ctxt: the debug context * @name: the name * - * Do debugging on the name, for example the dictionnary status and + * Do debugging on the name, for example the dictionary status and * conformance to the Name production. */ static void @@ -265,7 +265,7 @@ xmlCtxtCheckName(xmlDebugCtxtPtr ctxt, const xmlChar * name) ((ctxt->doc == NULL) || ((ctxt->doc->parseFlags & (XML_PARSE_SAX1 | XML_PARSE_NODICT)) == 0))) { xmlDebugErr3(ctxt, XML_CHECK_OUTSIDE_DICT, - "Name is not from the document dictionnary '%s'", + "Name is not from the document dictionary '%s'", (const char *) name); } } @@ -292,7 +292,7 @@ xmlCtxtGenericNodeCheck(xmlDebugCtxtPtr ctxt, xmlNodePtr node) { /* desactivated right now as it raises too many errors */ if (doc->type == XML_DOCUMENT_NODE) xmlDebugErr(ctxt, XML_CHECK_NO_DICT, - "Document has no dictionnary\n"); + "Document has no dictionary\n"); #endif ctxt->nodict = 1; }