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

Function xmlSchemaNewSchema

ThirdParty/libxml2/vtklibxml2/xmlschemas.c:3339–3354  ·  view source on GitHub ↗

* xmlSchemaNewSchemaForParserCtxt: * @ctxt: a schema validation context * * Allocate a new Schema structure. * * Returns the newly allocated structure or NULL in case or error */

Source from the content-addressed store, hash-verified

3337 * Returns the newly allocated structure or NULL in case or error
3338 */
3339static xmlSchemaPtr
3340xmlSchemaNewSchema(xmlSchemaParserCtxtPtr ctxt)
3341{
3342 xmlSchemaPtr ret;
3343
3344 ret = (xmlSchemaPtr) xmlMalloc(sizeof(xmlSchema));
3345 if (ret == NULL) {
3346 xmlSchemaPErrMemory(ctxt);
3347 return (NULL);
3348 }
3349 memset(ret, 0, sizeof(xmlSchema));
3350 ret->dict = ctxt->dict;
3351 xmlDictReference(ret->dict);
3352
3353 return (ret);
3354}
3355
3356/**
3357 * xmlSchemaNewFacet:

Callers 3

xmlSchemaBucketCreateFunction · 0.85
xmlSchemaParseFunction · 0.85
xmlSchemaPreRunFunction · 0.85

Calls 2

xmlSchemaPErrMemoryFunction · 0.85
xmlDictReferenceFunction · 0.85

Tested by

no test coverage detected