MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlNewSAXParserCtxt

Function xmlNewSAXParserCtxt

ThirdParty/libxml2/vtklibxml2/parserInternals.c:2577–2593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2575 */
2576
2577xmlParserCtxtPtr
2578xmlNewSAXParserCtxt(const xmlSAXHandler *sax, void *userData)
2579{
2580 xmlParserCtxtPtr ctxt;
2581
2582 xmlInitParser();
2583
2584 ctxt = (xmlParserCtxtPtr) xmlMalloc(sizeof(xmlParserCtxt));
2585 if (ctxt == NULL)
2586 return(NULL);
2587 memset(ctxt, 0, sizeof(xmlParserCtxt));
2588 if (xmlInitSAXParserCtxt(ctxt, sax, userData) < 0) {
2589 xmlFreeParserCtxt(ctxt);
2590 return(NULL);
2591 }
2592 return(ctxt);
2593}
2594
2595/************************************************************************
2596 * *

Callers 11

testSAXFunction · 0.85
xmlNewParserCtxtFunction · 0.85
xmlSchemaValidateStreamFunction · 0.85
xmlCreatePushParserCtxtFunction · 0.85
xmlCreateIOParserCtxtFunction · 0.85
xmlIOParseDTDFunction · 0.85
xmlSAXParseDTDFunction · 0.85
xmlParseExternalEntityFunction · 0.85
xmlSAXParseFileWithDataFunction · 0.85

Calls 3

xmlInitParserFunction · 0.85
xmlInitSAXParserCtxtFunction · 0.85
xmlFreeParserCtxtFunction · 0.85

Tested by

no test coverage detected