| 9909 | } |
| 9910 | |
| 9911 | static xmlSchemaParserCtxtPtr |
| 9912 | xmlSchemaParserCtxtCreate(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: |
no test coverage detected