diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2004-10-27 17:29:04 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2004-10-27 17:29:04 +0000 |
commit | 6927b10615d4f48fbc3fa0f3b114890275488991 (patch) | |
tree | 20e50d9d98aa09ab98f0a65e2f45ddab9f59571e /debugXML.c | |
parent | f2a657aa599bf9e9a1cbf4082ba885d177f05697 (diff) | |
download | android_external_libxml2-6927b10615d4f48fbc3fa0f3b114890275488991.tar.gz android_external_libxml2-6927b10615d4f48fbc3fa0f3b114890275488991.tar.bz2 android_external_libxml2-6927b10615d4f48fbc3fa0f3b114890275488991.zip |
preparing release 2.6.15 cleanups Daniel
* ChangeLog NEWS configure.in doc/*: preparing release 2.6.15
* debugXML.c nanoftp.c xmlschemas.c xmlschemastypes.c: cleanups
Daniel
Diffstat (limited to 'debugXML.c')
-rw-r--r-- | debugXML.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -62,6 +62,7 @@ xmlCtxtDumpInitCtxt(xmlDebugCtxtPtr ctxt) ctxt->doc = NULL; ctxt->node = NULL; ctxt->dict = NULL; + ctxt->nodict = 0; for (i = 0; i < 100; i++) ctxt->shift[i] = ' '; ctxt->shift[100] = 0; @@ -279,8 +280,12 @@ xmlCtxtGenericNodeCheck(xmlDebugCtxtPtr ctxt, xmlNodePtr node) { } else { dict = doc->dict; if ((dict == NULL) && (ctxt->nodict == 0)) { - xmlDebugErr(ctxt, XML_CHECK_NO_DICT, - "Document has no dictionnary\n"); +#if 0 + /* 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"); +#endif ctxt->nodict = 1; } if (ctxt->doc == NULL) @@ -357,7 +362,8 @@ xmlCtxtGenericNodeCheck(xmlDebugCtxtPtr ctxt, xmlNodePtr node) { break; /* some case of entity substitution can lead to this */ if ((ctxt->dict != NULL) && - (node->name == xmlDictLookup(ctxt->dict, "nbktext", 7))) + (node->name == xmlDictLookup(ctxt->dict, BAD_CAST "nbktext", + 7))) break; xmlDebugErr3(ctxt, XML_CHECK_WRONG_NAME, |