OLD | NEW |
1 /* | 1 /* |
2 * entities.c : implementation for the XML entities handling | 2 * entities.c : implementation for the XML entities handling |
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 __xmlSimpleError(XML_FROM_TREE, XML_ERR_NO_MEMORY, NULL, NULL, extra); | 76 __xmlSimpleError(XML_FROM_TREE, XML_ERR_NO_MEMORY, NULL, NULL, extra); |
77 } | 77 } |
78 | 78 |
79 /** | 79 /** |
80 * xmlEntitiesErr: | 80 * xmlEntitiesErr: |
81 * @code: the error code | 81 * @code: the error code |
82 * @msg: the message | 82 * @msg: the message |
83 * | 83 * |
84 * Handle an out of memory condition | 84 * Handle an out of memory condition |
85 */ | 85 */ |
86 static void | 86 static void LIBXML_ATTR_FORMAT(2,0) |
87 xmlEntitiesErr(xmlParserErrors code, const char *msg) | 87 xmlEntitiesErr(xmlParserErrors code, const char *msg) |
88 { | 88 { |
89 __xmlSimpleError(XML_FROM_TREE, code, NULL, msg, NULL); | 89 __xmlSimpleError(XML_FROM_TREE, code, NULL, msg, NULL); |
90 } | 90 } |
91 | 91 |
92 /* | 92 /* |
93 * xmlFreeEntity : clean-up an entity record. | 93 * xmlFreeEntity : clean-up an entity record. |
94 */ | 94 */ |
95 static void | 95 static void |
96 xmlFreeEntity(xmlEntityPtr entity) | 96 xmlFreeEntity(xmlEntityPtr entity) |
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1096 * | 1096 * |
1097 * This will dump the content of the entity table as an XML DTD definition | 1097 * This will dump the content of the entity table as an XML DTD definition |
1098 */ | 1098 */ |
1099 void | 1099 void |
1100 xmlDumpEntitiesTable(xmlBufferPtr buf, xmlEntitiesTablePtr table) { | 1100 xmlDumpEntitiesTable(xmlBufferPtr buf, xmlEntitiesTablePtr table) { |
1101 xmlHashScan(table, (xmlHashScanner)xmlDumpEntityDeclScan, buf); | 1101 xmlHashScan(table, (xmlHashScanner)xmlDumpEntityDeclScan, buf); |
1102 } | 1102 } |
1103 #endif /* LIBXML_OUTPUT_ENABLED */ | 1103 #endif /* LIBXML_OUTPUT_ENABLED */ |
1104 #define bottom_entities | 1104 #define bottom_entities |
1105 #include "elfgcchack.h" | 1105 #include "elfgcchack.h" |
OLD | NEW |