* xmlSchemaNewSchemaForParserCtxt: * @ctxt: a schema validation context * * Allocate a new Schema structure. * * Returns the newly allocated structure or NULL in case or error */
| 3337 | * Returns the newly allocated structure or NULL in case or error |
| 3338 | */ |
| 3339 | static xmlSchemaPtr |
| 3340 | xmlSchemaNewSchema(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: |
no test coverage detected