| 454 | }; |
| 455 | |
| 456 | static xmlSchemaParticlePtr |
| 457 | xmlSchemaAddParticle(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 | |
| 474 | static void |
| 475 | xmlSchemaFreeTypeEntry(void *type, const xmlChar *name ATTRIBUTE_UNUSED) { |
no test coverage detected