• Home
  • Raw
  • Download

Lines Matching refs:new_parser

923     xmlparseobject *new_parser;  in pyexpat_xmlparser_ExternalEntityParserCreate_impl()  local
926 new_parser = PyObject_GC_New(xmlparseobject, &Xmlparsetype); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
927 if (new_parser == NULL) in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
929 new_parser->buffer_size = self->buffer_size; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
930 new_parser->buffer_used = 0; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
931 new_parser->buffer = NULL; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
932 new_parser->ordered_attributes = self->ordered_attributes; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
933 new_parser->specified_attributes = self->specified_attributes; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
934 new_parser->in_callback = 0; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
935 new_parser->ns_prefixes = self->ns_prefixes; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
936 new_parser->itself = XML_ExternalEntityParserCreate(self->itself, context, in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
938 new_parser->handlers = 0; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
939 new_parser->intern = self->intern; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
940 Py_XINCREF(new_parser->intern); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
943 new_parser->buffer = PyMem_Malloc(new_parser->buffer_size); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
944 if (new_parser->buffer == NULL) { in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
945 Py_DECREF(new_parser); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
949 if (!new_parser->itself) { in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
950 Py_DECREF(new_parser); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
954 XML_SetUserData(new_parser->itself, (void *)new_parser); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
960 new_parser->handlers = PyMem_New(PyObject *, i); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
961 if (!new_parser->handlers) { in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
962 Py_DECREF(new_parser); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
965 clear_handlers(new_parser, 1); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
972 new_parser->handlers[i] = handler; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
973 handler_info[i].setter(new_parser->itself, in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
978 PyObject_GC_Track(new_parser); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
979 return (PyObject *)new_parser; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()