| OLD | NEW |
| 1 /* | 1 /* |
| 2 * HTMLparser.c : an HTML 4.0 non-verifying parser | 2 * HTMLparser.c : an HTML 4.0 non-verifying parser |
| 3 * | 3 * |
| 4 * See Copyright for the status of this software. | 4 * See Copyright for the status of this software. |
| 5 * | 5 * |
| 6 * daniel@veillard.com | 6 * daniel@veillard.com |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #define IN_LIBXML | 9 #define IN_LIBXML |
| 10 #include "libxml.h" | 10 #include "libxml.h" |
| (...skipping 6519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6530 } | 6530 } |
| 6531 /************************************************************************ | 6531 /************************************************************************ |
| 6532 * * | 6532 * * |
| 6533 * New set (2.6.0) of simpler and more flexible APIs * | 6533 * New set (2.6.0) of simpler and more flexible APIs * |
| 6534 * * | 6534 * * |
| 6535 ************************************************************************/ | 6535 ************************************************************************/ |
| 6536 /** | 6536 /** |
| 6537 * DICT_FREE: | 6537 * DICT_FREE: |
| 6538 * @str: a string | 6538 * @str: a string |
| 6539 * | 6539 * |
| 6540 * Free a string if it is not owned by the "dict" dictionnary in the | 6540 * Free a string if it is not owned by the "dict" dictionary in the |
| 6541 * current scope | 6541 * current scope |
| 6542 */ | 6542 */ |
| 6543 #define DICT_FREE(str) \ | 6543 #define DICT_FREE(str) \ |
| 6544 if ((str) && ((!dict) || \ | 6544 if ((str) && ((!dict) || \ |
| 6545 (xmlDictOwns(dict, (const xmlChar *)(str)) == 0))) \ | 6545 (xmlDictOwns(dict, (const xmlChar *)(str)) == 0))) \ |
| 6546 xmlFree((char *)(str)); | 6546 xmlFree((char *)(str)); |
| 6547 | 6547 |
| 6548 /** | 6548 /** |
| 6549 * htmlCtxtReset: | 6549 * htmlCtxtReset: |
| 6550 * @ctxt: an HTML parser context | 6550 * @ctxt: an HTML parser context |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7112 xmlFreeParserInputBuffer(input); | 7112 xmlFreeParserInputBuffer(input); |
| 7113 return (NULL); | 7113 return (NULL); |
| 7114 } | 7114 } |
| 7115 inputPush(ctxt, stream); | 7115 inputPush(ctxt, stream); |
| 7116 return (htmlDoRead(ctxt, URL, encoding, options, 1)); | 7116 return (htmlDoRead(ctxt, URL, encoding, options, 1)); |
| 7117 } | 7117 } |
| 7118 | 7118 |
| 7119 #define bottom_HTMLparser | 7119 #define bottom_HTMLparser |
| 7120 #include "elfgcchack.h" | 7120 #include "elfgcchack.h" |
| 7121 #endif /* LIBXML_HTML_ENABLED */ | 7121 #endif /* LIBXML_HTML_ENABLED */ |
| OLD | NEW |