| 11723 | */ |
| 11724 | |
| 11725 | xmlParserCtxtPtr |
| 11726 | xmlCreatePushParserCtxt(xmlSAXHandlerPtr sax, void *user_data, |
| 11727 | const char *chunk, int size, const char *filename) { |
| 11728 | xmlParserCtxtPtr ctxt; |
| 11729 | xmlParserInputPtr input; |
| 11730 | |
| 11731 | ctxt = xmlNewSAXParserCtxt(sax, user_data); |
| 11732 | if (ctxt == NULL) |
| 11733 | return(NULL); |
| 11734 | |
| 11735 | ctxt->options &= ~XML_PARSE_NODICT; |
| 11736 | ctxt->dictNames = 1; |
| 11737 | |
| 11738 | input = xmlNewInputPush(ctxt, filename, chunk, size, NULL); |
| 11739 | if (input == NULL) { |
| 11740 | xmlFreeParserCtxt(ctxt); |
| 11741 | return(NULL); |
| 11742 | } |
| 11743 | inputPush(ctxt, input); |
| 11744 | |
| 11745 | return(ctxt); |
| 11746 | } |
| 11747 | #endif /* LIBXML_PUSH_ENABLED */ |
| 11748 | |
| 11749 | /** |