• Home
  • Raw
  • Download

Lines Matching refs:new_parser

1063     xmlparseobject *new_parser;  in xmlparse_ExternalEntityParserCreate()  local
1073 new_parser = PyObject_New(xmlparseobject, &Xmlparsetype); in xmlparse_ExternalEntityParserCreate()
1076 new_parser = PyObject_GC_New(xmlparseobject, &Xmlparsetype); in xmlparse_ExternalEntityParserCreate()
1079 if (new_parser == NULL) in xmlparse_ExternalEntityParserCreate()
1081 new_parser->buffer_size = self->buffer_size; in xmlparse_ExternalEntityParserCreate()
1082 new_parser->buffer_used = 0; in xmlparse_ExternalEntityParserCreate()
1084 new_parser->buffer = malloc(new_parser->buffer_size); in xmlparse_ExternalEntityParserCreate()
1085 if (new_parser->buffer == NULL) { in xmlparse_ExternalEntityParserCreate()
1088 PyObject_Del(new_parser); in xmlparse_ExternalEntityParserCreate()
1091 PyObject_GC_Del(new_parser); in xmlparse_ExternalEntityParserCreate()
1097 new_parser->buffer = NULL; in xmlparse_ExternalEntityParserCreate()
1098 new_parser->returns_unicode = self->returns_unicode; in xmlparse_ExternalEntityParserCreate()
1099 new_parser->ordered_attributes = self->ordered_attributes; in xmlparse_ExternalEntityParserCreate()
1100 new_parser->specified_attributes = self->specified_attributes; in xmlparse_ExternalEntityParserCreate()
1101 new_parser->in_callback = 0; in xmlparse_ExternalEntityParserCreate()
1102 new_parser->ns_prefixes = self->ns_prefixes; in xmlparse_ExternalEntityParserCreate()
1103 new_parser->itself = XML_ExternalEntityParserCreate(self->itself, context, in xmlparse_ExternalEntityParserCreate()
1105 new_parser->handlers = 0; in xmlparse_ExternalEntityParserCreate()
1106 new_parser->intern = self->intern; in xmlparse_ExternalEntityParserCreate()
1107 Py_XINCREF(new_parser->intern); in xmlparse_ExternalEntityParserCreate()
1109 PyObject_GC_Track(new_parser); in xmlparse_ExternalEntityParserCreate()
1111 PyObject_GC_Init(new_parser); in xmlparse_ExternalEntityParserCreate()
1114 if (!new_parser->itself) { in xmlparse_ExternalEntityParserCreate()
1115 Py_DECREF(new_parser); in xmlparse_ExternalEntityParserCreate()
1119 XML_SetUserData(new_parser->itself, (void *)new_parser); in xmlparse_ExternalEntityParserCreate()
1125 new_parser->handlers = malloc(sizeof(PyObject *) * i); in xmlparse_ExternalEntityParserCreate()
1126 if (!new_parser->handlers) { in xmlparse_ExternalEntityParserCreate()
1127 Py_DECREF(new_parser); in xmlparse_ExternalEntityParserCreate()
1130 clear_handlers(new_parser, 1); in xmlparse_ExternalEntityParserCreate()
1137 new_parser->handlers[i] = handler; in xmlparse_ExternalEntityParserCreate()
1138 handler_info[i].setter(new_parser->itself, in xmlparse_ExternalEntityParserCreate()
1142 return (PyObject *)new_parser; in xmlparse_ExternalEntityParserCreate()