| 275 | } |
| 276 | |
| 277 | static void |
| 278 | initializeLibxml2(void) { |
| 279 | /* |
| 280 | * This verifies that xmlInitParser doesn't allocate memory with |
| 281 | * xmlMalloc |
| 282 | */ |
| 283 | xmlFree = NULL; |
| 284 | xmlMalloc = NULL; |
| 285 | xmlRealloc = NULL; |
| 286 | xmlMemStrdup = NULL; |
| 287 | xmlInitParser(); |
| 288 | xmlMemSetup(xmlMemFree, xmlMemMalloc, xmlMemRealloc, xmlMemoryStrdup); |
| 289 | xmlSetExternalEntityLoader(testExternalEntityLoader); |
| 290 | #ifdef LIBXML_SCHEMAS_ENABLED |
| 291 | xmlSchemaInitTypes(); |
| 292 | xmlRelaxNGInitTypes(); |
| 293 | #endif |
| 294 | } |
| 295 | |
| 296 | |
| 297 | /************************************************************************ |
no test coverage detected