| OLD | NEW |
| 1 /* | 1 /* |
| 2 * debugXML.c : This is a set of routines used for debugging the tree | 2 * debugXML.c : This is a set of routines used for debugging the tree |
| 3 * produced by the XML parser. | 3 * produced by the XML parser. |
| 4 * | 4 * |
| 5 * See Copyright for the status of this software. | 5 * See Copyright for the status of this software. |
| 6 * | 6 * |
| 7 * Daniel Veillard <daniel@veillard.com> | 7 * Daniel Veillard <daniel@veillard.com> |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 #define IN_LIBXML | 10 #define IN_LIBXML |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 static void | 157 static void |
| 158 xmlDebugErr(xmlDebugCtxtPtr ctxt, int error, const char *msg) | 158 xmlDebugErr(xmlDebugCtxtPtr ctxt, int error, const char *msg) |
| 159 { | 159 { |
| 160 ctxt->errors++; | 160 ctxt->errors++; |
| 161 __xmlRaiseError(NULL, NULL, NULL, | 161 __xmlRaiseError(NULL, NULL, NULL, |
| 162 NULL, ctxt->node, XML_FROM_CHECK, | 162 NULL, ctxt->node, XML_FROM_CHECK, |
| 163 error, XML_ERR_ERROR, NULL, 0, | 163 error, XML_ERR_ERROR, NULL, 0, |
| 164 NULL, NULL, NULL, 0, 0, | 164 NULL, NULL, NULL, 0, 0, |
| 165 "%s", msg); | 165 "%s", msg); |
| 166 } | 166 } |
| 167 static void | 167 static void LIBXML_ATTR_FORMAT(3,0) |
| 168 xmlDebugErr2(xmlDebugCtxtPtr ctxt, int error, const char *msg, int extra) | 168 xmlDebugErr2(xmlDebugCtxtPtr ctxt, int error, const char *msg, int extra) |
| 169 { | 169 { |
| 170 ctxt->errors++; | 170 ctxt->errors++; |
| 171 __xmlRaiseError(NULL, NULL, NULL, | 171 __xmlRaiseError(NULL, NULL, NULL, |
| 172 NULL, ctxt->node, XML_FROM_CHECK, | 172 NULL, ctxt->node, XML_FROM_CHECK, |
| 173 error, XML_ERR_ERROR, NULL, 0, | 173 error, XML_ERR_ERROR, NULL, 0, |
| 174 NULL, NULL, NULL, 0, 0, | 174 NULL, NULL, NULL, 0, 0, |
| 175 msg, extra); | 175 msg, extra); |
| 176 } | 176 } |
| 177 static void | 177 static void LIBXML_ATTR_FORMAT(3,0) |
| 178 xmlDebugErr3(xmlDebugCtxtPtr ctxt, int error, const char *msg, const char *extra
) | 178 xmlDebugErr3(xmlDebugCtxtPtr ctxt, int error, const char *msg, const char *extra
) |
| 179 { | 179 { |
| 180 ctxt->errors++; | 180 ctxt->errors++; |
| 181 __xmlRaiseError(NULL, NULL, NULL, | 181 __xmlRaiseError(NULL, NULL, NULL, |
| 182 NULL, ctxt->node, XML_FROM_CHECK, | 182 NULL, ctxt->node, XML_FROM_CHECK, |
| 183 error, XML_ERR_ERROR, NULL, 0, | 183 error, XML_ERR_ERROR, NULL, 0, |
| 184 NULL, NULL, NULL, 0, 0, | 184 NULL, NULL, NULL, 0, 0, |
| 185 msg, extra); | 185 msg, extra); |
| 186 } | 186 } |
| 187 | 187 |
| (...skipping 3231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3419 xmlFree(ctxt->filename); | 3419 xmlFree(ctxt->filename); |
| 3420 xmlFree(ctxt); | 3420 xmlFree(ctxt); |
| 3421 if (cmdline != NULL) | 3421 if (cmdline != NULL) |
| 3422 free(cmdline); /* not xmlFree here ! */ | 3422 free(cmdline); /* not xmlFree here ! */ |
| 3423 } | 3423 } |
| 3424 | 3424 |
| 3425 #endif /* LIBXML_XPATH_ENABLED */ | 3425 #endif /* LIBXML_XPATH_ENABLED */ |
| 3426 #define bottom_debugXML | 3426 #define bottom_debugXML |
| 3427 #include "elfgcchack.h" | 3427 #include "elfgcchack.h" |
| 3428 #endif /* LIBXML_DEBUG_ENABLED */ | 3428 #endif /* LIBXML_DEBUG_ENABLED */ |
| OLD | NEW |