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

Function xmlSchemaAddParticle

ThirdParty/libxml2/vtklibxml2/xmlschemastypes.c:456–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454};
455
456static xmlSchemaParticlePtr
457xmlSchemaAddParticle(void)
458{
459 xmlSchemaParticlePtr ret = NULL;
460
461 ret = (xmlSchemaParticlePtr)
462 xmlMalloc(sizeof(xmlSchemaParticle));
463 if (ret == NULL) {
464 xmlSchemaTypeErrMemory();
465 return (NULL);
466 }
467 memset(ret, 0, sizeof(xmlSchemaParticle));
468 ret->type = XML_SCHEMA_TYPE_PARTICLE;
469 ret->minOccurs = 1;
470 ret->maxOccurs = 1;
471 return (ret);
472}
473
474static void
475xmlSchemaFreeTypeEntry(void *type, const xmlChar *name ATTRIBUTE_UNUSED) {

Callers 1

xmlSchemaInitTypesFunction · 0.70

Calls 1

xmlSchemaTypeErrMemoryFunction · 0.85

Tested by

no test coverage detected