OLD | NEW |
1 /* | 1 /* |
2 * valid.c : part of the code use to do the DTD handling and the validity | 2 * valid.c : part of the code use to do the DTD handling and the validity |
3 * checking | 3 * checking |
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.com | 7 * daniel@veillard.com |
8 */ | 8 */ |
9 | 9 |
10 #define IN_LIBXML | 10 #define IN_LIBXML |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 } | 86 } |
87 | 87 |
88 /** | 88 /** |
89 * xmlErrValid: | 89 * xmlErrValid: |
90 * @ctxt: an XML validation parser context | 90 * @ctxt: an XML validation parser context |
91 * @error: the error number | 91 * @error: the error number |
92 * @extra: extra informations | 92 * @extra: extra informations |
93 * | 93 * |
94 * Handle a validation error | 94 * Handle a validation error |
95 */ | 95 */ |
96 static void | 96 static void LIBXML_ATTR_FORMAT(3,0) |
97 xmlErrValid(xmlValidCtxtPtr ctxt, xmlParserErrors error, | 97 xmlErrValid(xmlValidCtxtPtr ctxt, xmlParserErrors error, |
98 const char *msg, const char *extra) | 98 const char *msg, const char *extra) |
99 { | 99 { |
100 xmlGenericErrorFunc channel = NULL; | 100 xmlGenericErrorFunc channel = NULL; |
101 xmlParserCtxtPtr pctxt = NULL; | 101 xmlParserCtxtPtr pctxt = NULL; |
102 void *data = NULL; | 102 void *data = NULL; |
103 | 103 |
104 if (ctxt != NULL) { | 104 if (ctxt != NULL) { |
105 channel = ctxt->error; | 105 channel = ctxt->error; |
106 data = ctxt->userData; | 106 data = ctxt->userData; |
(...skipping 23 matching lines...) Expand all Loading... |
130 * xmlErrValidNode: | 130 * xmlErrValidNode: |
131 * @ctxt: an XML validation parser context | 131 * @ctxt: an XML validation parser context |
132 * @node: the node raising the error | 132 * @node: the node raising the error |
133 * @error: the error number | 133 * @error: the error number |
134 * @str1: extra informations | 134 * @str1: extra informations |
135 * @str2: extra informations | 135 * @str2: extra informations |
136 * @str3: extra informations | 136 * @str3: extra informations |
137 * | 137 * |
138 * Handle a validation error, provide contextual informations | 138 * Handle a validation error, provide contextual informations |
139 */ | 139 */ |
140 static void | 140 static void LIBXML_ATTR_FORMAT(4,0) |
141 xmlErrValidNode(xmlValidCtxtPtr ctxt, | 141 xmlErrValidNode(xmlValidCtxtPtr ctxt, |
142 xmlNodePtr node, xmlParserErrors error, | 142 xmlNodePtr node, xmlParserErrors error, |
143 const char *msg, const xmlChar * str1, | 143 const char *msg, const xmlChar * str1, |
144 const xmlChar * str2, const xmlChar * str3) | 144 const xmlChar * str2, const xmlChar * str3) |
145 { | 145 { |
146 xmlStructuredErrorFunc schannel = NULL; | 146 xmlStructuredErrorFunc schannel = NULL; |
147 xmlGenericErrorFunc channel = NULL; | 147 xmlGenericErrorFunc channel = NULL; |
148 xmlParserCtxtPtr pctxt = NULL; | 148 xmlParserCtxtPtr pctxt = NULL; |
149 void *data = NULL; | 149 void *data = NULL; |
150 | 150 |
(...skipping 22 matching lines...) Expand all Loading... |
173 * xmlErrValidNodeNr: | 173 * xmlErrValidNodeNr: |
174 * @ctxt: an XML validation parser context | 174 * @ctxt: an XML validation parser context |
175 * @node: the node raising the error | 175 * @node: the node raising the error |
176 * @error: the error number | 176 * @error: the error number |
177 * @str1: extra informations | 177 * @str1: extra informations |
178 * @int2: extra informations | 178 * @int2: extra informations |
179 * @str3: extra informations | 179 * @str3: extra informations |
180 * | 180 * |
181 * Handle a validation error, provide contextual informations | 181 * Handle a validation error, provide contextual informations |
182 */ | 182 */ |
183 static void | 183 static void LIBXML_ATTR_FORMAT(4,0) |
184 xmlErrValidNodeNr(xmlValidCtxtPtr ctxt, | 184 xmlErrValidNodeNr(xmlValidCtxtPtr ctxt, |
185 xmlNodePtr node, xmlParserErrors error, | 185 xmlNodePtr node, xmlParserErrors error, |
186 const char *msg, const xmlChar * str1, | 186 const char *msg, const xmlChar * str1, |
187 int int2, const xmlChar * str3) | 187 int int2, const xmlChar * str3) |
188 { | 188 { |
189 xmlStructuredErrorFunc schannel = NULL; | 189 xmlStructuredErrorFunc schannel = NULL; |
190 xmlGenericErrorFunc channel = NULL; | 190 xmlGenericErrorFunc channel = NULL; |
191 xmlParserCtxtPtr pctxt = NULL; | 191 xmlParserCtxtPtr pctxt = NULL; |
192 void *data = NULL; | 192 void *data = NULL; |
193 | 193 |
(...skipping 20 matching lines...) Expand all Loading... |
214 * xmlErrValidWarning: | 214 * xmlErrValidWarning: |
215 * @ctxt: an XML validation parser context | 215 * @ctxt: an XML validation parser context |
216 * @node: the node raising the error | 216 * @node: the node raising the error |
217 * @error: the error number | 217 * @error: the error number |
218 * @str1: extra information | 218 * @str1: extra information |
219 * @str2: extra information | 219 * @str2: extra information |
220 * @str3: extra information | 220 * @str3: extra information |
221 * | 221 * |
222 * Handle a validation error, provide contextual information | 222 * Handle a validation error, provide contextual information |
223 */ | 223 */ |
224 static void | 224 static void LIBXML_ATTR_FORMAT(4,0) |
225 xmlErrValidWarning(xmlValidCtxtPtr ctxt, | 225 xmlErrValidWarning(xmlValidCtxtPtr ctxt, |
226 xmlNodePtr node, xmlParserErrors error, | 226 xmlNodePtr node, xmlParserErrors error, |
227 const char *msg, const xmlChar * str1, | 227 const char *msg, const xmlChar * str1, |
228 const xmlChar * str2, const xmlChar * str3) | 228 const xmlChar * str2, const xmlChar * str3) |
229 { | 229 { |
230 xmlStructuredErrorFunc schannel = NULL; | 230 xmlStructuredErrorFunc schannel = NULL; |
231 xmlGenericErrorFunc channel = NULL; | 231 xmlGenericErrorFunc channel = NULL; |
232 xmlParserCtxtPtr pctxt = NULL; | 232 xmlParserCtxtPtr pctxt = NULL; |
233 void *data = NULL; | 233 void *data = NULL; |
234 | 234 |
(...skipping 6810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7045 */ | 7045 */ |
7046 test_node->name = name; | 7046 test_node->name = name; |
7047 xmlFreeNode(test_node); | 7047 xmlFreeNode(test_node); |
7048 | 7048 |
7049 return(nb_valid_elements); | 7049 return(nb_valid_elements); |
7050 } | 7050 } |
7051 #endif /* LIBXML_VALID_ENABLED */ | 7051 #endif /* LIBXML_VALID_ENABLED */ |
7052 | 7052 |
7053 #define bottom_valid | 7053 #define bottom_valid |
7054 #include "elfgcchack.h" | 7054 #include "elfgcchack.h" |
OLD | NEW |