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

Function xmlSchemaParserCtxtCreate

ThirdParty/libxml2/vtklibxml2/xmlschemas.c:9911–9929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9909}
9910
9911static xmlSchemaParserCtxtPtr
9912xmlSchemaParserCtxtCreate(void)
9913{
9914 xmlSchemaParserCtxtPtr ret;
9915
9916 ret = (xmlSchemaParserCtxtPtr) xmlMalloc(sizeof(xmlSchemaParserCtxt));
9917 if (ret == NULL) {
9918 xmlSchemaPErrMemory(NULL);
9919 return (NULL);
9920 }
9921 memset(ret, 0, sizeof(xmlSchemaParserCtxt));
9922 ret->type = XML_SCHEMA_CTXT_PARSER;
9923 ret->attrProhibs = xmlSchemaItemListCreate();
9924 if (ret->attrProhibs == NULL) {
9925 xmlFree(ret);
9926 return(NULL);
9927 }
9928 return(ret);
9929}
9930
9931/**
9932 * xmlSchemaNewParserCtxtUseDict:

Callers 4

xmlSchemaNewParserCtxtFunction · 0.85

Calls 2

xmlSchemaPErrMemoryFunction · 0.85
xmlSchemaItemListCreateFunction · 0.85

Tested by

no test coverage detected