File size: 17,530 Bytes
6baed57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
[
  {
    "function_name": "xmlVErrMemory",
    "function_signature": "static void xmlVErrMemory(xmlValidCtxtPtr ctxt)",
    "test_filename": "tests_valid_xmlVErrMemory.c"
  },
  {
    "function_name": "xmlDoErrValid",
    "function_signature": "static int xmlDoErrValid(xmlValidCtxtPtr ctxt, xmlNodePtr node,\n              xmlParserErrors code, int level,\n              const xmlChar *str1, const xmlChar *str2, const xmlChar *str3,\n              int int1,\n              const char *msg, ...)",
    "test_filename": "tests_valid_xmlDoErrValid.c"
  },
  {
    "function_name": "LIBXML_ATTR_FORMAT",
    "function_signature": "static void LIBXML_ATTR_FORMAT(4,0) xmlErrValidNode(xmlValidCtxtPtr ctxt,\n                xmlNodePtr node, xmlParserErrors error,\n                const char *msg, const xmlChar * str1,\n                const xmlChar * str2, const xmlChar * str3)\n{\n    xmlDoErrValid(ctxt, node, error, XML_ERR_ERROR, str1, str2, str3, 0,\n                  msg, str1, str2, str3); }\n\n#ifdef LIBXML_VALID_ENABLED\n/**\n * Handle a validation error\n *\n * @param ctxt  an XML validation parser context\n * @param error  the error number\n * @param msg  the error message\n * @param extra  extra information\n */\nstatic void LIBXML_ATTR_FORMAT(3,0)\nxmlErrValid(xmlValidCtxtPtr ctxt, xmlParserErrors error,\n            const char *msg, const char *extra)\n{\n    xmlDoErrValid(ctxt, NULL, error, XML_ERR_ERROR, (const xmlChar *) extra,\n                  NULL, NULL, 0, msg, extra); } /**\n * Handle a validation error, provide contextual information\n *\n * @param ctxt  an XML validation parser context\n * @param node  the node raising the error\n * @param error  the error number\n * @param msg  the error message\n * @param str1  extra information\n * @param int2  extra information\n * @param str3  extra information\n */ static void LIBXML_ATTR_FORMAT(4,0)\nxmlErrValidNodeNr(xmlValidCtxtPtr ctxt,\n                xmlNodePtr node, xmlParserErrors error,\n                const char *msg, const xmlChar * str1,\n                int int2, const xmlChar * str3)\n{\n    xmlDoErrValid(ctxt, node, error, XML_ERR_ERROR, str1, str3, NULL, int2,\n                  msg, str1, int2, str3); } /**\n * Handle a validation error, provide contextual information\n *\n * @param ctxt  an XML validation parser context\n * @param node  the node raising the error\n * @param error  the error number\n * @param msg  the error message\n * @param str1  extra information\n * @param str2  extra information\n * @param str3  extra information\n * @returns 0 on success, -1 if a memory allocation failed\n */ static int LIBXML_ATTR_FORMAT(4,0)\nxmlErrValidWarning(xmlValidCtxtPtr ctxt,\n                xmlNodePtr node, xmlParserErrors error,\n                const char *msg, const xmlChar * str1,\n                const xmlChar * str2, const xmlChar * str3)",
    "test_filename": "tests_valid_LIBXML_ATTR_FORMAT.c"
  },
  {
    "function_name": "vstateVPush",
    "function_signature": "static int vstateVPush(xmlValidCtxtPtr ctxt, xmlElementPtr elemDecl, xmlNodePtr node)",
    "test_filename": "tests_valid_vstateVPush.c"
  },
  {
    "function_name": "vstateVPop",
    "function_signature": "static int vstateVPop(xmlValidCtxtPtr ctxt)",
    "test_filename": "tests_valid_vstateVPop.c"
  },
  {
    "function_name": "vstateVPush",
    "function_signature": "static int vstateVPush(xmlValidCtxtPtr ctxt, xmlElementContentPtr cont,\n\t    xmlNodePtr node, unsigned char depth, long occurs,\n\t    unsigned char state)",
    "test_filename": "tests_valid_vstateVPush.c"
  },
  {
    "function_name": "vstateVPop",
    "function_signature": "static int vstateVPop(xmlValidCtxtPtr ctxt)",
    "test_filename": "tests_valid_vstateVPop.c"
  },
  {
    "function_name": "nodeVPush",
    "function_signature": "static int nodeVPush(xmlValidCtxtPtr ctxt, xmlNodePtr value)",
    "test_filename": "tests_valid_nodeVPush.c"
  },
  {
    "function_name": "nodeVPop",
    "function_signature": "static xmlNodePtr nodeVPop(xmlValidCtxtPtr ctxt)",
    "test_filename": "tests_valid_nodeVPop.c"
  },
  {
    "function_name": "xmlValidBuildAContentModel",
    "function_signature": "static int xmlValidBuildAContentModel(xmlElementContentPtr content,\n\t\t           xmlValidCtxtPtr ctxt,\n\t\t           const xmlChar *name)",
    "test_filename": "tests_valid_xmlValidBuildAContentModel.c"
  },
  {
    "function_name": "xmlValidBuildContentModel",
    "function_signature": "int xmlValidBuildContentModel(xmlValidCtxt *ctxt, xmlElement *elem)",
    "test_filename": "tests_valid_xmlValidBuildContentModel.c"
  },
  {
    "function_name": "xmlFreeValidCtxt",
    "function_signature": "void xmlFreeValidCtxt(xmlValidCtxt *cur)",
    "test_filename": "tests_valid_xmlFreeValidCtxt.c"
  },
  {
    "function_name": "xmlFreeDocElementContent",
    "function_signature": "void xmlFreeDocElementContent(xmlDoc *doc, xmlElementContent *cur)",
    "test_filename": "tests_valid_xmlFreeDocElementContent.c"
  },
  {
    "function_name": "xmlSnprintfElementContent",
    "function_signature": "void xmlSnprintfElementContent(char *buf, int size, xmlElementContent *content, int englob)",
    "test_filename": "tests_valid_xmlSnprintfElementContent.c"
  },
  {
    "function_name": "xmlFreeElement",
    "function_signature": "static void xmlFreeElement(xmlElementPtr elem)",
    "test_filename": "tests_valid_xmlFreeElement.c"
  },
  {
    "function_name": "xmlDumpElementDecl",
    "function_signature": "void xmlDumpElementDecl(xmlBuffer *buf, xmlElement *elem)",
    "test_filename": "tests_valid_xmlDumpElementDecl.c"
  },
  {
    "function_name": "xmlDumpElementTable",
    "function_signature": "void xmlDumpElementTable(xmlBuffer *buf, xmlElementTable *table)",
    "test_filename": "tests_valid_xmlDumpElementTable.c"
  },
  {
    "function_name": "xmlScanIDAttributeDecl",
    "function_signature": "static int xmlScanIDAttributeDecl(xmlValidCtxtPtr ctxt, xmlElementPtr elem, int err)",
    "test_filename": "tests_valid_xmlScanIDAttributeDecl.c"
  },
  {
    "function_name": "xmlFreeAttribute",
    "function_signature": "static void xmlFreeAttribute(xmlAttributePtr attr)",
    "test_filename": "tests_valid_xmlFreeAttribute.c"
  },
  {
    "function_name": "xmlDumpAttributeDecl",
    "function_signature": "void xmlDumpAttributeDecl(xmlBuffer *buf, xmlAttribute *attr)",
    "test_filename": "tests_valid_xmlDumpAttributeDecl.c"
  },
  {
    "function_name": "xmlDumpAttributeTable",
    "function_signature": "void xmlDumpAttributeTable(xmlBuffer *buf, xmlAttributeTable *table)",
    "test_filename": "tests_valid_xmlDumpAttributeTable.c"
  },
  {
    "function_name": "xmlFreeNotation",
    "function_signature": "static void xmlFreeNotation(xmlNotationPtr nota)",
    "test_filename": "tests_valid_xmlFreeNotation.c"
  },
  {
    "function_name": "xmlDumpNotationDecl",
    "function_signature": "void xmlDumpNotationDecl(xmlBuffer *buf, xmlNotation *nota)",
    "test_filename": "tests_valid_xmlDumpNotationDecl.c"
  },
  {
    "function_name": "xmlDumpNotationTable",
    "function_signature": "void xmlDumpNotationTable(xmlBuffer *buf, xmlNotationTable *table)",
    "test_filename": "tests_valid_xmlDumpNotationTable.c"
  },
  {
    "function_name": "xmlIsStreaming",
    "function_signature": "static int xmlIsStreaming(xmlValidCtxtPtr ctxt)",
    "test_filename": "tests_valid_xmlIsStreaming.c"
  },
  {
    "function_name": "xmlFreeID",
    "function_signature": "static void xmlFreeID(xmlIDPtr id)",
    "test_filename": "tests_valid_xmlFreeID.c"
  },
  {
    "function_name": "xmlAddIDInternal",
    "function_signature": "static int xmlAddIDInternal(xmlAttrPtr attr, const xmlChar *value, xmlIDPtr *idPtr)",
    "test_filename": "tests_valid_xmlAddIDInternal.c"
  },
  {
    "function_name": "xmlIsID",
    "function_signature": "int xmlIsID(xmlDoc *doc, xmlNode *elem, xmlAttr *attr)",
    "test_filename": "tests_valid_xmlIsID.c"
  },
  {
    "function_name": "xmlRemoveID",
    "function_signature": "int xmlRemoveID(xmlDoc *doc, xmlAttr *attr)",
    "test_filename": "tests_valid_xmlRemoveID.c"
  },
  {
    "function_name": "xmlFreeRef",
    "function_signature": "static void xmlFreeRef(xmlLinkPtr lk)",
    "test_filename": "tests_valid_xmlFreeRef.c"
  },
  {
    "function_name": "xmlWalkRemoveRef",
    "function_signature": "static int xmlWalkRemoveRef(const void *data, void *user)",
    "test_filename": "tests_valid_xmlWalkRemoveRef.c"
  },
  {
    "function_name": "xmlIsRef",
    "function_signature": "int xmlIsRef(xmlDoc *doc, xmlNode *elem, xmlAttr *attr)",
    "test_filename": "tests_valid_xmlIsRef.c"
  },
  {
    "function_name": "xmlRemoveRef",
    "function_signature": "int xmlRemoveRef(xmlDoc *doc, xmlAttr *attr)",
    "test_filename": "tests_valid_xmlRemoveRef.c"
  },
  {
    "function_name": "xmlGetDtdElementDesc2",
    "function_signature": "static xmlElementPtr xmlGetDtdElementDesc2(xmlValidCtxtPtr ctxt, xmlDtdPtr dtd, const xmlChar *name)",
    "test_filename": "tests_valid_xmlGetDtdElementDesc2.c"
  },
  {
    "function_name": "xmlValidateNotationUse",
    "function_signature": "int xmlValidateNotationUse(xmlValidCtxt *ctxt, xmlDoc *doc,\n                       const xmlChar *notationName)",
    "test_filename": "tests_valid_xmlValidateNotationUse.c"
  },
  {
    "function_name": "xmlIsMixedElement",
    "function_signature": "int xmlIsMixedElement(xmlDoc *doc, const xmlChar *name)",
    "test_filename": "tests_valid_xmlIsMixedElement.c"
  },
  {
    "function_name": "xmlValidNormalizeString",
    "function_signature": "static void xmlValidNormalizeString(xmlChar *str)",
    "test_filename": "tests_valid_xmlValidNormalizeString.c"
  },
  {
    "function_name": "xmlValidateNamesValueInternal",
    "function_signature": "static int xmlValidateNamesValueInternal(const xmlChar *value, int flags)",
    "test_filename": "tests_valid_xmlValidateNamesValueInternal.c"
  },
  {
    "function_name": "xmlValidateNmtokensValueInternal",
    "function_signature": "static int xmlValidateNmtokensValueInternal(const xmlChar *value, int flags)",
    "test_filename": "tests_valid_xmlValidateNmtokensValueInternal.c"
  },
  {
    "function_name": "xmlValidateAttributeValueInternal",
    "function_signature": "static int xmlValidateAttributeValueInternal(xmlDocPtr doc, xmlAttributeType type,\n                                  const xmlChar *value)",
    "test_filename": "tests_valid_xmlValidateAttributeValueInternal.c"
  },
  {
    "function_name": "xmlValidateAttributeValue2",
    "function_signature": "static int xmlValidateAttributeValue2(xmlValidCtxtPtr ctxt, xmlDocPtr doc,\n      const xmlChar *name, xmlAttributeType type, const xmlChar *value)",
    "test_filename": "tests_valid_xmlValidateAttributeValue2.c"
  },
  {
    "function_name": "xmlValidateAttributeDecl",
    "function_signature": "int xmlValidateAttributeDecl(xmlValidCtxt *ctxt, xmlDoc *doc,\n                         xmlAttribute *attr)",
    "test_filename": "tests_valid_xmlValidateAttributeDecl.c"
  },
  {
    "function_name": "xmlValidateElementDecl",
    "function_signature": "int xmlValidateElementDecl(xmlValidCtxt *ctxt, xmlDoc *doc,\n                       xmlElement *elem)",
    "test_filename": "tests_valid_xmlValidateElementDecl.c"
  },
  {
    "function_name": "xmlValidateOneAttribute",
    "function_signature": "int xmlValidateOneAttribute(xmlValidCtxt *ctxt, xmlDoc *doc,\n                        xmlNode *elem, xmlAttr *attr, const xmlChar *value)",
    "test_filename": "tests_valid_xmlValidateOneAttribute.c"
  },
  {
    "function_name": "xmlValidateOneNamespace",
    "function_signature": "int xmlValidateOneNamespace(xmlValidCtxt *ctxt, xmlDoc *doc,\nxmlNode *elem, const xmlChar *prefix, xmlNs *ns, const xmlChar *value)",
    "test_filename": "tests_valid_xmlValidateOneNamespace.c"
  },
  {
    "function_name": "xmlValidateSkipIgnorable",
    "function_signature": "static xmlNodePtr xmlValidateSkipIgnorable(xmlNodePtr child)",
    "test_filename": "tests_valid_xmlValidateSkipIgnorable.c"
  },
  {
    "function_name": "xmlValidateElementType",
    "function_signature": "static int xmlValidateElementType(xmlValidCtxtPtr ctxt)",
    "test_filename": "tests_valid_xmlValidateElementType.c"
  },
  {
    "function_name": "xmlSnprintfElements",
    "function_signature": "static void xmlSnprintfElements(char *buf, int size, xmlNodePtr node, int glob)",
    "test_filename": "tests_valid_xmlSnprintfElements.c"
  },
  {
    "function_name": "xmlValidateElementContent",
    "function_signature": "static int xmlValidateElementContent(xmlValidCtxtPtr ctxt, xmlNodePtr child,\n       xmlElementPtr elemDecl, int warn, xmlNodePtr parent)",
    "test_filename": "tests_valid_xmlValidateElementContent.c"
  },
  {
    "function_name": "xmlValidateOneCdataElement",
    "function_signature": "static int xmlValidateOneCdataElement(xmlValidCtxtPtr ctxt, xmlDocPtr doc,\n                           xmlNodePtr elem)",
    "test_filename": "tests_valid_xmlValidateOneCdataElement.c"
  },
  {
    "function_name": "xmlValidateCheckMixed",
    "function_signature": "static int xmlValidateCheckMixed(xmlValidCtxtPtr ctxt,\n\t              xmlElementContentPtr cont, const xmlChar *qname)",
    "test_filename": "tests_valid_xmlValidateCheckMixed.c"
  },
  {
    "function_name": "xmlValidGetElemDecl",
    "function_signature": "static xmlElementPtr xmlValidGetElemDecl(xmlValidCtxtPtr ctxt, xmlDocPtr doc,\n\t            xmlNodePtr elem, int *extsubset)",
    "test_filename": "tests_valid_xmlValidGetElemDecl.c"
  },
  {
    "function_name": "xmlValidatePushElement",
    "function_signature": "int xmlValidatePushElement(xmlValidCtxt *ctxt, xmlDoc *doc,\n                       xmlNode *elem, const xmlChar *qname)",
    "test_filename": "tests_valid_xmlValidatePushElement.c"
  },
  {
    "function_name": "xmlValidatePushCData",
    "function_signature": "int xmlValidatePushCData(xmlValidCtxt *ctxt, const xmlChar *data, int len)",
    "test_filename": "tests_valid_xmlValidatePushCData.c"
  },
  {
    "function_name": "xmlValidatePopElement",
    "function_signature": "int xmlValidatePopElement(xmlValidCtxt *ctxt, xmlDoc *doc ATTRIBUTE_UNUSED,\n                      xmlNode *elem ATTRIBUTE_UNUSED,\n\t\t      const xmlChar *qname ATTRIBUTE_UNUSED)",
    "test_filename": "tests_valid_xmlValidatePopElement.c"
  },
  {
    "function_name": "xmlValidateOneElement",
    "function_signature": "int xmlValidateOneElement(xmlValidCtxt *ctxt, xmlDoc *doc,\n                      xmlNode *elem)",
    "test_filename": "tests_valid_xmlValidateOneElement.c"
  },
  {
    "function_name": "xmlValidateRoot",
    "function_signature": "int xmlValidateRoot(xmlValidCtxt *ctxt, xmlDoc *doc)",
    "test_filename": "tests_valid_xmlValidateRoot.c"
  },
  {
    "function_name": "xmlValidateElement",
    "function_signature": "int xmlValidateElement(xmlValidCtxt *ctxt, xmlDoc *doc, xmlNode *root)",
    "test_filename": "tests_valid_xmlValidateElement.c"
  },
  {
    "function_name": "xmlValidateRef",
    "function_signature": "static void xmlValidateRef(xmlRefPtr ref, xmlValidCtxtPtr ctxt,\n\t                   const xmlChar *name)",
    "test_filename": "tests_valid_xmlValidateRef.c"
  },
  {
    "function_name": "xmlValidateCheckRefCallback",
    "function_signature": "static void xmlValidateCheckRefCallback(void *payload, void *data, const xmlChar *name)",
    "test_filename": "tests_valid_xmlValidateCheckRefCallback.c"
  },
  {
    "function_name": "xmlValidateDocumentFinal",
    "function_signature": "int xmlValidateDocumentFinal(xmlValidCtxt *ctxt, xmlDoc *doc)",
    "test_filename": "tests_valid_xmlValidateDocumentFinal.c"
  },
  {
    "function_name": "xmlValidateDtd",
    "function_signature": "int xmlValidateDtd(xmlValidCtxt *ctxt, xmlDoc *doc, xmlDtd *dtd)",
    "test_filename": "tests_valid_xmlValidateDtd.c"
  },
  {
    "function_name": "xmlValidateNotationCallback",
    "function_signature": "static void xmlValidateNotationCallback(void *payload, void *data,\n\t                    const xmlChar *name ATTRIBUTE_UNUSED)",
    "test_filename": "tests_valid_xmlValidateNotationCallback.c"
  },
  {
    "function_name": "xmlValidateAttributeCallback",
    "function_signature": "static void xmlValidateAttributeCallback(void *payload, void *data,\n\t                     const xmlChar *name ATTRIBUTE_UNUSED)",
    "test_filename": "tests_valid_xmlValidateAttributeCallback.c"
  },
  {
    "function_name": "xmlValidateDtdFinal",
    "function_signature": "int xmlValidateDtdFinal(xmlValidCtxt *ctxt, xmlDoc *doc)",
    "test_filename": "tests_valid_xmlValidateDtdFinal.c"
  },
  {
    "function_name": "xmlValidateDocumentInternal",
    "function_signature": "static int xmlValidateDocumentInternal(xmlParserCtxtPtr ctxt, xmlValidCtxtPtr vctxt,\n                            xmlDocPtr doc)",
    "test_filename": "tests_valid_xmlValidateDocumentInternal.c"
  },
  {
    "function_name": "xmlValidGetPotentialChildren",
    "function_signature": "int xmlValidGetPotentialChildren(xmlElementContent *ctree,\n                             const xmlChar **names,\n                             int *len, int max)",
    "test_filename": "tests_valid_xmlValidGetPotentialChildren.c"
  },
  {
    "function_name": "xmlValidGetValidElements",
    "function_signature": "int xmlValidGetValidElements(xmlNode *prev, xmlNode *next, const xmlChar **names,\n                         int max)",
    "test_filename": "tests_valid_xmlValidGetValidElements.c"
  }
]