• Home
  • Raw
  • Download

Lines Matching refs:new_parser

930     xmlparseobject *new_parser;  in pyexpat_xmlparser_ExternalEntityParserCreate_impl()  local
933 new_parser = PyObject_GC_New(xmlparseobject, &Xmlparsetype); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
934 if (new_parser == NULL) in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
936 new_parser->buffer_size = self->buffer_size; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
937 new_parser->buffer_used = 0; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
938 new_parser->buffer = NULL; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
939 new_parser->ordered_attributes = self->ordered_attributes; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
940 new_parser->specified_attributes = self->specified_attributes; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
941 new_parser->in_callback = 0; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
942 new_parser->ns_prefixes = self->ns_prefixes; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
943 new_parser->itself = XML_ExternalEntityParserCreate(self->itself, context, in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
945 new_parser->handlers = 0; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
946 new_parser->intern = self->intern; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
947 Py_XINCREF(new_parser->intern); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
948 PyObject_GC_Track(new_parser); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
951 new_parser->buffer = PyMem_Malloc(new_parser->buffer_size); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
952 if (new_parser->buffer == NULL) { in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
953 Py_DECREF(new_parser); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
957 if (!new_parser->itself) { in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
958 Py_DECREF(new_parser); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
962 XML_SetUserData(new_parser->itself, (void *)new_parser); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
968 new_parser->handlers = PyMem_New(PyObject *, i); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
969 if (!new_parser->handlers) { in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
970 Py_DECREF(new_parser); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
973 clear_handlers(new_parser, 1); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
980 new_parser->handlers[i] = handler; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
981 handler_info[i].setter(new_parser->itself, in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
985 return (PyObject *)new_parser; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()