• Home
  • Raw
  • Download

Lines Matching refs:new_parser

941     xmlparseobject *new_parser;  in pyexpat_xmlparser_ExternalEntityParserCreate_impl()  local
946 new_parser = PyObject_GC_New(xmlparseobject, state->xml_parse_type); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
947 if (new_parser == NULL) { in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
951 new_parser->buffer_size = self->buffer_size; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
952 new_parser->buffer_used = 0; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
953 new_parser->buffer = NULL; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
954 new_parser->ordered_attributes = self->ordered_attributes; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
955 new_parser->specified_attributes = self->specified_attributes; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
956 new_parser->in_callback = 0; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
957 new_parser->ns_prefixes = self->ns_prefixes; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
958 new_parser->itself = XML_ExternalEntityParserCreate(self->itself, context, in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
960 new_parser->handlers = 0; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
961 new_parser->intern = self->intern; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
962 Py_XINCREF(new_parser->intern); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
965 new_parser->buffer = PyMem_Malloc(new_parser->buffer_size); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
966 if (new_parser->buffer == NULL) { in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
967 Py_DECREF(new_parser); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
971 if (!new_parser->itself) { in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
972 Py_DECREF(new_parser); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
976 XML_SetUserData(new_parser->itself, (void *)new_parser); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
982 new_parser->handlers = PyMem_New(PyObject *, i); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
983 if (!new_parser->handlers) { in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
984 Py_DECREF(new_parser); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
987 clear_handlers(new_parser, 1); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
994 new_parser->handlers[i] = handler; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
995 handler_info[i].setter(new_parser->itself, in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
1000 PyObject_GC_Track(new_parser); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
1001 return (PyObject *)new_parser; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()