### Bug Summary

File: | Modules/pyexpat.c
Location: | line 985, column 28
Description: | Call to 'malloc' has an allocation size of 0 bytes

### Annotated Source Code

1 | #include "Python.h"
2 | #include <ctype.h>
3 |
4 | #include "frameobject.h"
5 | #include "expat.h"
6 |
7 | #include "pyexpat.h"
8 |
9 | #define XML_COMBINED_VERSION(10000*2 +100*0 +0) (10000*XML_MAJOR_VERSION2+100*XML_MINOR_VERSION0+XML_MICRO_VERSION0)
10 |
11 | #define FIX_TRACE
12 |
13 | enum HandlerTypes {
14 | StartElement,
15 | EndElement,
16 | ProcessingInstruction,
17 | CharacterData,
18 | UnparsedEntityDecl,
19 | NotationDecl,
20 | StartNamespaceDecl,
21 | EndNamespaceDecl,
22 | Comment,
23 | StartCdataSection,
24 | EndCdataSection,
25 | Default,
26 | DefaultHandlerExpand,
27 | NotStandalone,
28 | ExternalEntityRef,
29 | StartDoctypeDecl,
30 | EndDoctypeDecl,
31 | EntityDecl,
32 | XmlDecl,
33 | ElementDecl,
34 | AttlistDecl,
35 | #if XML_COMBINED_VERSION(10000*2 +100*0 +0) >= 19504
36 | SkippedEntity,
37 | #endif
38 | _DummyDecl
39 | };
40 |
41 | static PyObject *ErrorObject;
42 |
43 | /* ----------------------------------------------------- */
44 |
45 | /* Declarations for objects of type xmlparser */
46 |
47 | typedef struct {
48 | PyObject_HEADPyObject ob_base;
49 |
50 | XML_Parser itself;
51 | int ordered_attributes; /* Return attributes as a list. */
52 | int specified_attributes; /* Report only specified attributes. */
53 | int in_callback; /* Is a callback active? */
54 | int ns_prefixes; /* Namespace-triplets mode? */
55 | XML_Char *buffer; /* Buffer used when accumulating characters */
56 | /* NULL if not enabled */
57 | int buffer_size; /* Size of buffer, in XML_Char units */
58 | int buffer_used; /* Buffer units in use */
59 | PyObject *intern; /* Dictionary to intern strings */
60 | PyObject **handlers;
61 | } xmlparseobject;
62 |
63 | #define CHARACTER_DATA_BUFFER_SIZE8192 8192
64 |
65 | static PyTypeObject Xmlparsetype;
66 |
67 | typedef void (*xmlhandlersetter)(XML_Parser self, void *meth);
68 | typedef void* xmlhandler;
69 |
70 | struct HandlerInfo {
71 | const char *name;
72 | xmlhandlersetter setter;
73 | xmlhandler handler;
74 | PyCodeObject *tb_code;
75 | PyObject *nameobj;
76 | };
77 |
78 | static struct HandlerInfo handler_info[64];
79 |
80 | /* Set an integer attribute on the error object; return true on success,
81 | * false on an exception.
82 | */
83 | static int
84 | set_error_attr(PyObject *err, char *name, int value)
85 | {
86 | PyObject *v = PyLong_FromLong(value);
87 |
88 | if (v == NULL((void *)0) || PyObject_SetAttrString(err, name, v) == -1) {
89 | Py_XDECREF(v)do { if ((v) == ((void *)0)) ; else do { if (_Py_RefTotal-- , --((PyObject*)(v))->ob_refcnt != 0) { if (((PyObject*)v)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 89, (PyObject *)(v)); } else _Py_Dealloc((PyObject *)(v)); } while (0); } while (0);
90 | return 0;
91 | }
92 | Py_DECREF(v)do { if (_Py_RefTotal-- , --((PyObject*)(v))->ob_refcnt != 0) { if (((PyObject*)v)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 92, (PyObject *)(v)); } else _Py_Dealloc((PyObject *)(v)); } while (0);
93 | return 1;
94 | }
95 |
96 | /* Build and set an Expat exception, including positioning
97 | * information. Always returns NULL.
98 | */
99 | static PyObject *
100 | set_error(xmlparseobject *self, enum XML_Error code)
101 | {
102 | PyObject *err;
103 | char buffer[256];
104 | XML_Parser parser = self->itself;
105 | int lineno = XML_GetErrorLineNumberPyExpat_XML_GetCurrentLineNumber(parser);
106 | int column = XML_GetErrorColumnNumberPyExpat_XML_GetCurrentColumnNumber(parser);
107 |
108 | /* There is no risk of overflowing this buffer, since
109 | even for 64-bit integers, there is sufficient space. */
110 | sprintf(buffer, "%.200s: line %i, column %i",__builtin___sprintf_chk (buffer, 0, __builtin_object_size (buffer , 2 > 1), "%.200s: line %i, column %i", PyExpat_XML_ErrorString (code), lineno, column)
111 | XML_ErrorString(code), lineno, column)__builtin___sprintf_chk (buffer, 0, __builtin_object_size (buffer , 2 > 1), "%.200s: line %i, column %i", PyExpat_XML_ErrorString (code), lineno, column);
112 | err = PyObject_CallFunction(ErrorObject, "s", buffer);
113 | if ( err != NULL((void *)0)
114 | && set_error_attr(err, "code", code)
115 | && set_error_attr(err, "offset", column)
116 | && set_error_attr(err, "lineno", lineno)) {
117 | PyErr_SetObject(ErrorObject, err);
118 | }
119 | Py_XDECREF(err)do { if ((err) == ((void *)0)) ; else do { if (_Py_RefTotal-- , --((PyObject*)(err))->ob_refcnt != 0) { if (((PyObject* )err)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 119, (PyObject *)(err)); } else _Py_Dealloc((PyObject *)(err )); } while (0); } while (0);
120 | return NULL((void *)0);
121 | }
122 |
123 | static int
124 | have_handler(xmlparseobject *self, int type)
125 | {
126 | PyObject *handler = self->handlers[type];
127 | return handler != NULL((void *)0);
128 | }
129 |
130 | static PyObject *
131 | get_handler_name(struct HandlerInfo *hinfo)
132 | {
133 | PyObject *name = hinfo->nameobj;
134 | if (name == NULL((void *)0)) {
135 | name = PyUnicode_FromStringPyUnicodeUCS2_FromString(hinfo->name);
136 | hinfo->nameobj = name;
137 | }
138 | Py_XINCREF(name)do { if ((name) == ((void *)0)) ; else ( _Py_RefTotal++ , ((PyObject *)(name))->ob_refcnt++); } while (0);
139 | return name;
140 | }
141 |
142 |
143 | /* Convert a string of XML_Chars into a Unicode string.
144 | Returns None if str is a null pointer. */
145 |
146 | static PyObject *
147 | conv_string_to_unicode(const XML_Char *str)
148 | {
149 | /* XXX currently this code assumes that XML_Char is 8-bit,
150 | and hence in UTF-8. */
151 | /* UTF-8 from Expat, Unicode desired */
152 | if (str == NULL((void *)0)) {
153 | Py_INCREF(Py_None)( _Py_RefTotal++ , ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt ++);
154 | return Py_None(&_Py_NoneStruct);
155 | }
156 | return PyUnicode_DecodeUTF8PyUnicodeUCS2_DecodeUTF8(str, strlen(str), "strict");
157 | }
158 |
159 | static PyObject *
160 | conv_string_len_to_unicode(const XML_Char *str, int len)
161 | {
162 | /* XXX currently this code assumes that XML_Char is 8-bit,
163 | and hence in UTF-8. */
164 | /* UTF-8 from Expat, Unicode desired */
165 | if (str == NULL((void *)0)) {
166 | Py_INCREF(Py_None)( _Py_RefTotal++ , ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt ++);
167 | return Py_None(&_Py_NoneStruct);
168 | }
169 | return PyUnicode_DecodeUTF8PyUnicodeUCS2_DecodeUTF8((const char *)str, len, "strict");
170 | }
171 |
172 | /* Callback routines */
173 |
174 | static void clear_handlers(xmlparseobject *self, int initial);
175 |
176 | /* This handler is used when an error has been detected, in the hope
177 | that actual parsing can be terminated early. This will only help
178 | if an external entity reference is encountered. */
179 | static int
180 | error_external_entity_ref_handler(XML_Parser parser,
181 | const XML_Char *context,
182 | const XML_Char *base,
183 | const XML_Char *systemId,
184 | const XML_Char *publicId)
185 | {
186 | return 0;
187 | }
188 |
189 | /* Dummy character data handler used when an error (exception) has
190 | been detected, and the actual parsing can be terminated early.
191 | This is needed since character data handler can't be safely removed
192 | from within the character data handler, but can be replaced. It is
193 | used only from the character data handler trampoline, and must be
194 | used right after `flag_error()` is called. */
195 | static void
196 | noop_character_data_handler(void *userData, const XML_Char *data, int len)
197 | {
198 | /* Do nothing. */
199 | }
200 |
201 | static void
202 | flag_error(xmlparseobject *self)
203 | {
204 | clear_handlers(self, 0);
205 | XML_SetExternalEntityRefHandlerPyExpat_XML_SetExternalEntityRefHandler(self->itself,
206 | error_external_entity_ref_handler);
207 | }
208 |
209 | static PyCodeObject*
210 | getcode(enum HandlerTypes slot, char* func_name, int lineno)
211 | {
212 | if (handler_info[slot].tb_code == NULL((void *)0)) {
213 | handler_info[slot].tb_code =
214 | PyCode_NewEmpty(__FILE__"/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", func_name, lineno);
215 | }
216 | return handler_info[slot].tb_code;
217 | }
218 |
219 | #ifdef FIX_TRACE
220 | static int
221 | trace_frame(PyThreadState *tstate, PyFrameObject *f, int code, PyObject *val)
222 | {
223 | int result = 0;
224 | if (!tstate->use_tracing || tstate->tracing)
225 | return 0;
226 | if (tstate->c_profilefunc != NULL((void *)0)) {
227 | tstate->tracing++;
228 | result = tstate->c_profilefunc(tstate->c_profileobj,
229 | f, code , val);
230 | tstate->use_tracing = ((tstate->c_tracefunc != NULL((void *)0))
231 | || (tstate->c_profilefunc != NULL((void *)0)));
232 | tstate->tracing--;
233 | if (result)
234 | return result;
235 | }
236 | if (tstate->c_tracefunc != NULL((void *)0)) {
237 | tstate->tracing++;
238 | result = tstate->c_tracefunc(tstate->c_traceobj,
239 | f, code , val);
240 | tstate->use_tracing = ((tstate->c_tracefunc != NULL((void *)0))
241 | || (tstate->c_profilefunc != NULL((void *)0)));
242 | tstate->tracing--;
243 | }
244 | return result;
245 | }
246 |
247 | static int
248 | trace_frame_exc(PyThreadState *tstate, PyFrameObject *f)
249 | {
250 | PyObject *type, *value, *traceback, *arg;
251 | int err;
252 |
253 | if (tstate->c_tracefunc == NULL((void *)0))
254 | return 0;
255 |
256 | PyErr_Fetch(&type, &value, &traceback);
257 | if (value == NULL((void *)0)) {
258 | value = Py_None(&_Py_NoneStruct);
259 | Py_INCREF(value)( _Py_RefTotal++ , ((PyObject*)(value))->ob_refcnt++);
260 | }
261 | arg = PyTuple_Pack(3, type, value, traceback);
262 | if (arg == NULL((void *)0)) {
263 | PyErr_Restore(type, value, traceback);
264 | return 0;
265 | }
266 | err = trace_frame(tstate, f, PyTrace_EXCEPTION1, arg);
267 | Py_DECREF(arg)do { if (_Py_RefTotal-- , --((PyObject*)(arg))->ob_refcnt != 0) { if (((PyObject*)arg)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 267, ( PyObject *)(arg)); } else _Py_Dealloc((PyObject *)(arg)); } while (0);
268 | if (err == 0)
269 | PyErr_Restore(type, value, traceback);
270 | else {
271 | Py_XDECREF(type)do { if ((type) == ((void *)0)) ; else do { if (_Py_RefTotal-- , --((PyObject*)(type))->ob_refcnt != 0) { if (((PyObject *)type)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 271, (PyObject *)(type)); } else _Py_Dealloc((PyObject *)(type )); } while (0); } while (0);
272 | Py_XDECREF(value)do { if ((value) == ((void *)0)) ; else do { if (_Py_RefTotal -- , --((PyObject*)(value))->ob_refcnt != 0) { if (((PyObject *)value)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 272, (PyObject *)(value)); } else _Py_Dealloc((PyObject *)( value)); } while (0); } while (0);
273 | Py_XDECREF(traceback)do { if ((traceback) == ((void *)0)) ; else do { if (_Py_RefTotal -- , --((PyObject*)(traceback))->ob_refcnt != 0) { if (((PyObject *)traceback)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 273, (PyObject *)(traceback)); } else _Py_Dealloc((PyObject *)(traceback)); } while (0); } while (0);
274 | }
275 | return err;
276 | }
277 | #endif
278 |
279 | static PyObject*
280 | call_with_frame(PyCodeObject *c, PyObject* func, PyObject* args,
281 | xmlparseobject *self)
282 | {
283 | PyThreadState *tstate = PyThreadState_GET()PyThreadState_Get();
284 | PyFrameObject *f;
285 | PyObject *res;
286 |
287 | if (c == NULL((void *)0))
288 | return NULL((void *)0);
289 |
290 | f = PyFrame_New(tstate, c, PyEval_GetGlobals(), NULL((void *)0));
291 | if (f == NULL((void *)0))
292 | return NULL((void *)0);
293 | tstate->frame = f;
294 | #ifdef FIX_TRACE
295 | if (trace_frame(tstate, f, PyTrace_CALL0, Py_None(&_Py_NoneStruct)) < 0) {
296 | return NULL((void *)0);
297 | }
298 | #endif
299 | res = PyEval_CallObject(func, args)PyEval_CallObjectWithKeywords(func, args, (PyObject *)((void * )0));
300 | if (res == NULL((void *)0)) {
301 | if (tstate->curexc_traceback == NULL((void *)0))
302 | PyTraceBack_Here(f);
303 | XML_StopParserPyExpat_XML_StopParser(self->itself, XML_FALSE((XML_Bool) 0));
304 | #ifdef FIX_TRACE
305 | if (trace_frame_exc(tstate, f) < 0) {
306 | return NULL((void *)0);
307 | }
308 | }
309 | else {
310 | if (trace_frame(tstate, f, PyTrace_RETURN3, res) < 0) {
311 | Py_XDECREF(res)do { if ((res) == ((void *)0)) ; else do { if (_Py_RefTotal-- , --((PyObject*)(res))->ob_refcnt != 0) { if (((PyObject* )res)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 311, (PyObject *)(res)); } else _Py_Dealloc((PyObject *)(res )); } while (0); } while (0);
312 | res = NULL((void *)0);
313 | }
314 | }
315 | #else
316 | }
317 | #endif
318 | tstate->frame = f->f_back;
319 | Py_DECREF(f)do { if (_Py_RefTotal-- , --((PyObject*)(f))->ob_refcnt != 0) { if (((PyObject*)f)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 319, ( PyObject *)(f)); } else _Py_Dealloc((PyObject *)(f)); } while (0);
320 | return res;
321 | }
322 |
323 | static PyObject*
324 | string_intern(xmlparseobject *self, const char* str)
325 | {
326 | PyObject *result = conv_string_to_unicode(str);
327 | PyObject *value;
328 | /* result can be NULL if the unicode conversion failed. */
329 | if (!result)
330 | return result;
331 | if (!self->intern)
332 | return result;
333 | value = PyDict_GetItem(self->intern, result);
334 | if (!value) {
335 | if (PyDict_SetItem(self->intern, result, result) == 0)
336 | return result;
337 | else
338 | return NULL((void *)0);
339 | }
340 | Py_INCREF(value)( _Py_RefTotal++ , ((PyObject*)(value))->ob_refcnt++);
341 | Py_DECREF(result)do { if (_Py_RefTotal-- , --((PyObject*)(result))->ob_refcnt != 0) { if (((PyObject*)result)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 341, ( PyObject *)(result)); } else _Py_Dealloc((PyObject *)(result) ); } while (0);
342 | return value;
343 | }
344 |
345 | /* Return 0 on success, -1 on exception.
346 | * flag_error() will be called before return if needed.
347 | */
348 | static int
349 | call_character_handler(xmlparseobject *self, const XML_Char *buffer, int len)
350 | {
351 | PyObject *args;
352 | PyObject *temp;
353 |
354 | if (!have_handler(self, CharacterData))
355 | return -1;
356 |
357 | args = PyTuple_New(1);
358 | if (args == NULL((void *)0))
359 | return -1;
360 | temp = (conv_string_len_to_unicode(buffer, len));
361 | if (temp == NULL((void *)0)) {
362 | Py_DECREF(args)do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 362, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0);
363 | flag_error(self);
364 | XML_SetCharacterDataHandlerPyExpat_XML_SetCharacterDataHandler(self->itself,
365 | noop_character_data_handler);
366 | return -1;
367 | }
368 | PyTuple_SET_ITEM(args, 0, temp)(((PyTupleObject *)(args))->ob_item[0] = temp);
369 | /* temp is now a borrowed reference; consider it unused. */
370 | self->in_callback = 1;
371 | temp = call_with_frame(getcode(CharacterData, "CharacterData", __LINE__371),
372 | self->handlers[CharacterData], args, self);
373 | /* temp is an owned reference again, or NULL */
374 | self->in_callback = 0;
375 | Py_DECREF(args)do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 375, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0);
376 | if (temp == NULL((void *)0)) {
377 | flag_error(self);
378 | XML_SetCharacterDataHandlerPyExpat_XML_SetCharacterDataHandler(self->itself,
379 | noop_character_data_handler);
380 | return -1;
381 | }
382 | Py_DECREF(temp)do { if (_Py_RefTotal-- , --((PyObject*)(temp))->ob_refcnt != 0) { if (((PyObject*)temp)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 382, ( PyObject *)(temp)); } else _Py_Dealloc((PyObject *)(temp)); } while (0);
383 | return 0;
384 | }
385 |
386 | static int
387 | flush_character_buffer(xmlparseobject *self)
388 | {
389 | int rc;
390 | if (self->buffer == NULL((void *)0) || self->buffer_used == 0)
391 | return 0;
392 | rc = call_character_handler(self, self->buffer, self->buffer_used);
393 | self->buffer_used = 0;
394 | return rc;
395 | }
396 |
397 | static void
398 | my_CharacterDataHandler(void *userData, const XML_Char *data, int len)
399 | {
400 | xmlparseobject *self = (xmlparseobject *) userData;
401 | if (self->buffer == NULL((void *)0))
402 | call_character_handler(self, data, len);
403 | else {
404 | if ((self->buffer_used + len) > self->buffer_size) {
405 | if (flush_character_buffer(self) < 0)
406 | return;
407 | /* handler might have changed; drop the rest on the floor
408 | * if there isn't a handler anymore
409 | */
410 | if (!have_handler(self, CharacterData))
411 | return;
412 | }
413 | if (len > self->buffer_size) {
414 | call_character_handler(self, data, len);
415 | self->buffer_used = 0;
416 | }
417 | else {
418 | memcpy(self->buffer + self->buffer_used,((__builtin_object_size (self->buffer + self->buffer_used , 0) != (size_t) -1) ? __builtin___memcpy_chk (self->buffer + self->buffer_used, data, len * sizeof(XML_Char), __builtin_object_size (self->buffer + self->buffer_used, 0)) : __inline_memcpy_chk (self->buffer + self->buffer_used, data, len * sizeof( XML_Char)))
419 | data, len * sizeof(XML_Char))((__builtin_object_size (self->buffer + self->buffer_used , 0) != (size_t) -1) ? __builtin___memcpy_chk (self->buffer + self->buffer_used, data, len * sizeof(XML_Char), __builtin_object_size (self->buffer + self->buffer_used, 0)) : __inline_memcpy_chk (self->buffer + self->buffer_used, data, len * sizeof( XML_Char)));
420 | self->buffer_used += len;
421 | }
422 | }
423 | }
424 |
425 | static void
426 | my_StartElementHandler(void *userData,
427 | const XML_Char *name, const XML_Char *atts[])
428 | {
429 | xmlparseobject *self = (xmlparseobject *)userData;
430 |
431 | if (have_handler(self, StartElement)) {
432 | PyObject *container, *rv, *args;
433 | int i, max;
434 |
435 | if (flush_character_buffer(self) < 0)
436 | return;
437 | /* Set max to the number of slots filled in atts[]; max/2 is
438 | * the number of attributes we need to process.
439 | */
440 | if (self->specified_attributes) {
441 | max = XML_GetSpecifiedAttributeCountPyExpat_XML_GetSpecifiedAttributeCount(self->itself);
442 | }
443 | else {
444 | max = 0;
445 | while (atts[max] != NULL((void *)0))
446 | max += 2;
447 | }
448 | /* Build the container. */
449 | if (self->ordered_attributes)
450 | container = PyList_New(max);
451 | else
452 | container = PyDict_New();
453 | if (container == NULL((void *)0)) {
454 | flag_error(self);
455 | return;
456 | }
457 | for (i = 0; i < max; i += 2) {
458 | PyObject *n = string_intern(self, (XML_Char *) atts[i]);
459 | PyObject *v;
460 | if (n == NULL((void *)0)) {
461 | flag_error(self);
462 | Py_DECREF(container)do { if (_Py_RefTotal-- , --((PyObject*)(container))->ob_refcnt != 0) { if (((PyObject*)container)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 462, ( PyObject *)(container)); } else _Py_Dealloc((PyObject *)(container )); } while (0);
463 | return;
464 | }
465 | v = conv_string_to_unicode((XML_Char *) atts[i+1]);
466 | if (v == NULL((void *)0)) {
467 | flag_error(self);
468 | Py_DECREF(container)do { if (_Py_RefTotal-- , --((PyObject*)(container))->ob_refcnt != 0) { if (((PyObject*)container)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 468, ( PyObject *)(container)); } else _Py_Dealloc((PyObject *)(container )); } while (0);
469 | Py_DECREF(n)do { if (_Py_RefTotal-- , --((PyObject*)(n))->ob_refcnt != 0) { if (((PyObject*)n)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 469, ( PyObject *)(n)); } else _Py_Dealloc((PyObject *)(n)); } while (0);
470 | return;
471 | }
472 | if (self->ordered_attributes) {
473 | PyList_SET_ITEM(container, i, n)(((PyListObject *)(container))->ob_item[i] = (n));
474 | PyList_SET_ITEM(container, i+1, v)(((PyListObject *)(container))->ob_item[i+1] = (v));
475 | }
476 | else if (PyDict_SetItem(container, n, v)) {
477 | flag_error(self);
478 | Py_DECREF(n)do { if (_Py_RefTotal-- , --((PyObject*)(n))->ob_refcnt != 0) { if (((PyObject*)n)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 478, ( PyObject *)(n)); } else _Py_Dealloc((PyObject *)(n)); } while (0);
479 | Py_DECREF(v)do { if (_Py_RefTotal-- , --((PyObject*)(v))->ob_refcnt != 0) { if (((PyObject*)v)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 479, ( PyObject *)(v)); } else _Py_Dealloc((PyObject *)(v)); } while (0);
480 | return;
481 | }
482 | else {
483 | Py_DECREF(n)do { if (_Py_RefTotal-- , --((PyObject*)(n))->ob_refcnt != 0) { if (((PyObject*)n)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 483, ( PyObject *)(n)); } else _Py_Dealloc((PyObject *)(n)); } while (0);
484 | Py_DECREF(v)do { if (_Py_RefTotal-- , --((PyObject*)(v))->ob_refcnt != 0) { if (((PyObject*)v)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 484, ( PyObject *)(v)); } else _Py_Dealloc((PyObject *)(v)); } while (0);
485 | }
486 | }
487 | args = string_intern(self, name);
488 | if (args != NULL((void *)0))
489 | args = Py_BuildValue("(NN)", args, container);
490 | if (args == NULL((void *)0)) {
491 | Py_DECREF(container)do { if (_Py_RefTotal-- , --((PyObject*)(container))->ob_refcnt != 0) { if (((PyObject*)container)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 491, ( PyObject *)(container)); } else _Py_Dealloc((PyObject *)(container )); } while (0);
492 | return;
493 | }
494 | /* Container is now a borrowed reference; ignore it. */
495 | self->in_callback = 1;
496 | rv = call_with_frame(getcode(StartElement, "StartElement", __LINE__496),
497 | self->handlers[StartElement], args, self);
498 | self->in_callback = 0;
499 | Py_DECREF(args)do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 499, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0);
500 | if (rv == NULL((void *)0)) {
501 | flag_error(self);
502 | return;
503 | }
504 | Py_DECREF(rv)do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 504, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0);
505 | }
506 | }
507 |
508 | #define RC_HANDLER(RC, NAME, PARAMS, INIT, PARAM_FORMAT, CONVERSION, \static RC my_NAMEHandler PARAMS { xmlparseobject *self = GETUSERDATA ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); INIT if (have_handler(self, NAME)) { if (flush_character_buffer(self ) < 0) return RETURN; args = Py_BuildValue PARAM_FORMAT ; if (!args) { flag_error(self); return RETURN;} self->in_callback = 1; rv = call_with_frame(getcode(NAME,"NAME",509), self-> handlers[NAME], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 509, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return RETURN; } CONVERSION do { if (_Py_RefTotal-- , --((PyObject* )(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 509, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return RETURN; }
509 | RETURN, GETUSERDATA)static RC my_NAMEHandler PARAMS { xmlparseobject *self = GETUSERDATA ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); INIT if (have_handler(self, NAME)) { if (flush_character_buffer(self ) < 0) return RETURN; args = Py_BuildValue PARAM_FORMAT ; if (!args) { flag_error(self); return RETURN;} self->in_callback = 1; rv = call_with_frame(getcode(NAME,"NAME",509), self-> handlers[NAME], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 509, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return RETURN; } CONVERSION do { if (_Py_RefTotal-- , --((PyObject* )(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 509, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return RETURN; } \
510 | static RC \
511 | my_##NAME##Handler PARAMS {\
512 | xmlparseobject *self = GETUSERDATA ; \
513 | PyObject *args = NULL((void *)0); \
514 | PyObject *rv = NULL((void *)0); \
515 | INIT \
516 | \
517 | if (have_handler(self, NAME)) { \
518 | if (flush_character_buffer(self) < 0) \
519 | return RETURN; \
520 | args = Py_BuildValue PARAM_FORMAT ;\
521 | if (!args) { flag_error(self); return RETURN;} \
522 | self->in_callback = 1; \
523 | rv = call_with_frame(getcode(NAME,#NAME,__LINE__523), \
524 | self->handlers[NAME], args, self); \
525 | self->in_callback = 0; \
526 | Py_DECREF(args)do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 526, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); \
527 | if (rv == NULL((void *)0)) { \
528 | flag_error(self); \
529 | return RETURN; \
530 | } \
531 | CONVERSION \
532 | Py_DECREF(rv)do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 532, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); \
533 | } \
534 | return RETURN; \
535 | }
536 |
537 | #define VOID_HANDLER(NAME, PARAMS, PARAM_FORMAT)static void my_NAMEHandler PARAMS { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, NAME)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue PARAM_FORMAT ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(NAME,"NAME",537), self->handlers [NAME], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 537, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 537, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; } \
538 | RC_HANDLER(void, NAME, PARAMS, ;, PARAM_FORMAT, ;, ;,\static void my_NAMEHandler PARAMS { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, NAME)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue PARAM_FORMAT ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(NAME,"NAME",539), self->handlers [NAME], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 539, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 539, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
539 | (xmlparseobject *)userData)static void my_NAMEHandler PARAMS { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, NAME)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue PARAM_FORMAT ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(NAME,"NAME",539), self->handlers [NAME], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 539, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 539, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
540 |
541 | #define INT_HANDLER(NAME, PARAMS, PARAM_FORMAT)static int my_NAMEHandler PARAMS { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); int rc=0; if (have_handler(self, NAME)) { if (flush_character_buffer (self) < 0) return rc; args = Py_BuildValue PARAM_FORMAT ; if (!args) { flag_error(self); return rc;} self->in_callback = 1; rv = call_with_frame(getcode(NAME,"NAME",541), self-> handlers[NAME], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 541, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return rc; } rc = PyLong_AsLong(rv); do { if (_Py_RefTotal-- , --(( PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 541, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return rc; }\
542 | RC_HANDLER(int, NAME, PARAMS, int rc=0;, PARAM_FORMAT, \static int my_NAMEHandler PARAMS { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); int rc=0; if (have_handler(self, NAME)) { if (flush_character_buffer (self) < 0) return rc; args = Py_BuildValue PARAM_FORMAT ; if (!args) { flag_error(self); return rc;} self->in_callback = 1; rv = call_with_frame(getcode(NAME,"NAME",544), self-> handlers[NAME], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 544, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return rc; } rc = PyLong_AsLong(rv); do { if (_Py_RefTotal-- , --(( PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 544, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return rc; }
543 | rc = PyLong_AsLong(rv);, rc, \static int my_NAMEHandler PARAMS { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); int rc=0; if (have_handler(self, NAME)) { if (flush_character_buffer (self) < 0) return rc; args = Py_BuildValue PARAM_FORMAT ; if (!args) { flag_error(self); return rc;} self->in_callback = 1; rv = call_with_frame(getcode(NAME,"NAME",544), self-> handlers[NAME], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 544, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return rc; } rc = PyLong_AsLong(rv); do { if (_Py_RefTotal-- , --(( PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 544, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return rc; }
544 | (xmlparseobject *)userData)static int my_NAMEHandler PARAMS { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); int rc=0; if (have_handler(self, NAME)) { if (flush_character_buffer (self) < 0) return rc; args = Py_BuildValue PARAM_FORMAT ; if (!args) { flag_error(self); return rc;} self->in_callback = 1; rv = call_with_frame(getcode(NAME,"NAME",544), self-> handlers[NAME], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 544, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return rc; } rc = PyLong_AsLong(rv); do { if (_Py_RefTotal-- , --(( PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 544, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return rc; }
545 |
546 | VOID_HANDLER(EndElement,static void my_EndElementHandler (void *userData, const XML_Char *name) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EndElement)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(N)", string_intern (self, name)) ; if (!args) { flag_error(self); return ;;} self ->in_callback = 1; rv = call_with_frame(getcode(EndElement ,"EndElement",548), self->handlers[EndElement], args, self ); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject *)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 548, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 548, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
547 | (void *userData, const XML_Char *name),static void my_EndElementHandler (void *userData, const XML_Char *name) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EndElement)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(N)", string_intern (self, name)) ; if (!args) { flag_error(self); return ;;} self ->in_callback = 1; rv = call_with_frame(getcode(EndElement ,"EndElement",548), self->handlers[EndElement], args, self ); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject *)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 548, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 548, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
548 | ("(N)", string_intern(self, name)))static void my_EndElementHandler (void *userData, const XML_Char *name) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EndElement)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(N)", string_intern (self, name)) ; if (!args) { flag_error(self); return ;;} self ->in_callback = 1; rv = call_with_frame(getcode(EndElement ,"EndElement",548), self->handlers[EndElement], args, self ); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject *)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 548, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 548, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
549 |
550 | VOID_HANDLER(ProcessingInstruction,static void my_ProcessingInstructionHandler (void *userData, const XML_Char *target, const XML_Char *data) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, ProcessingInstruction )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(NO&)", string_intern(self, target), conv_string_to_unicode ,data) ; if (!args) { flag_error(self); return ;;} self-> in_callback = 1; rv = call_with_frame(getcode(ProcessingInstruction ,"ProcessingInstruction",554), self->handlers[ProcessingInstruction ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 554, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 554, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
551 | (void *userData,static void my_ProcessingInstructionHandler (void *userData, const XML_Char *target, const XML_Char *data) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, ProcessingInstruction )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(NO&)", string_intern(self, target), conv_string_to_unicode ,data) ; if (!args) { flag_error(self); return ;;} self-> in_callback = 1; rv = call_with_frame(getcode(ProcessingInstruction ,"ProcessingInstruction",554), self->handlers[ProcessingInstruction ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 554, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 554, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
552 | const XML_Char *target,static void my_ProcessingInstructionHandler (void *userData, const XML_Char *target, const XML_Char *data) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, ProcessingInstruction )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(NO&)", string_intern(self, target), conv_string_to_unicode ,data) ; if (!args) { flag_error(self); return ;;} self-> in_callback = 1; rv = call_with_frame(getcode(ProcessingInstruction ,"ProcessingInstruction",554), self->handlers[ProcessingInstruction ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 554, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 554, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
553 | const XML_Char *data),static void my_ProcessingInstructionHandler (void *userData, const XML_Char *target, const XML_Char *data) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, ProcessingInstruction )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(NO&)", string_intern(self, target), conv_string_to_unicode ,data) ; if (!args) { flag_error(self); return ;;} self-> in_callback = 1; rv = call_with_frame(getcode(ProcessingInstruction ,"ProcessingInstruction",554), self->handlers[ProcessingInstruction ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 554, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 554, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
554 | ("(NO&)", string_intern(self, target), conv_string_to_unicode ,data))static void my_ProcessingInstructionHandler (void *userData, const XML_Char *target, const XML_Char *data) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, ProcessingInstruction )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(NO&)", string_intern(self, target), conv_string_to_unicode ,data) ; if (!args) { flag_error(self); return ;;} self-> in_callback = 1; rv = call_with_frame(getcode(ProcessingInstruction ,"ProcessingInstruction",554), self->handlers[ProcessingInstruction ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 554, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 554, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
555 |
556 | VOID_HANDLER(UnparsedEntityDecl,static void my_UnparsedEntityDeclHandler (void *userData, const XML_Char *entityName, const XML_Char *base, const XML_Char * systemId, const XML_Char *publicId, const XML_Char *notationName ) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler (self, UnparsedEntityDecl)) { if (flush_character_buffer(self ) < 0) return ;; args = Py_BuildValue ("(NNNNN)", string_intern (self, entityName), string_intern(self, base), string_intern( self, systemId), string_intern(self, publicId), string_intern (self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(UnparsedEntityDecl ,"UnparsedEntityDecl",566), self->handlers[UnparsedEntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 566, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 566, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
557 | (void *userData,static void my_UnparsedEntityDeclHandler (void *userData, const XML_Char *entityName, const XML_Char *base, const XML_Char * systemId, const XML_Char *publicId, const XML_Char *notationName ) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler (self, UnparsedEntityDecl)) { if (flush_character_buffer(self ) < 0) return ;; args = Py_BuildValue ("(NNNNN)", string_intern (self, entityName), string_intern(self, base), string_intern( self, systemId), string_intern(self, publicId), string_intern (self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(UnparsedEntityDecl ,"UnparsedEntityDecl",566), self->handlers[UnparsedEntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 566, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 566, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
558 | const XML_Char *entityName,static void my_UnparsedEntityDeclHandler (void *userData, const XML_Char *entityName, const XML_Char *base, const XML_Char * systemId, const XML_Char *publicId, const XML_Char *notationName ) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler (self, UnparsedEntityDecl)) { if (flush_character_buffer(self ) < 0) return ;; args = Py_BuildValue ("(NNNNN)", string_intern (self, entityName), string_intern(self, base), string_intern( self, systemId), string_intern(self, publicId), string_intern (self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(UnparsedEntityDecl ,"UnparsedEntityDecl",566), self->handlers[UnparsedEntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 566, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 566, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
559 | const XML_Char *base,static void my_UnparsedEntityDeclHandler (void *userData, const XML_Char *entityName, const XML_Char *base, const XML_Char * systemId, const XML_Char *publicId, const XML_Char *notationName ) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler (self, UnparsedEntityDecl)) { if (flush_character_buffer(self ) < 0) return ;; args = Py_BuildValue ("(NNNNN)", string_intern (self, entityName), string_intern(self, base), string_intern( self, systemId), string_intern(self, publicId), string_intern (self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(UnparsedEntityDecl ,"UnparsedEntityDecl",566), self->handlers[UnparsedEntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 566, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 566, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
560 | const XML_Char *systemId,static void my_UnparsedEntityDeclHandler (void *userData, const XML_Char *entityName, const XML_Char *base, const XML_Char * systemId, const XML_Char *publicId, const XML_Char *notationName ) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler (self, UnparsedEntityDecl)) { if (flush_character_buffer(self ) < 0) return ;; args = Py_BuildValue ("(NNNNN)", string_intern (self, entityName), string_intern(self, base), string_intern( self, systemId), string_intern(self, publicId), string_intern (self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(UnparsedEntityDecl ,"UnparsedEntityDecl",566), self->handlers[UnparsedEntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 566, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 566, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
561 | const XML_Char *publicId,static void my_UnparsedEntityDeclHandler (void *userData, const XML_Char *entityName, const XML_Char *base, const XML_Char * systemId, const XML_Char *publicId, const XML_Char *notationName ) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler (self, UnparsedEntityDecl)) { if (flush_character_buffer(self ) < 0) return ;; args = Py_BuildValue ("(NNNNN)", string_intern (self, entityName), string_intern(self, base), string_intern( self, systemId), string_intern(self, publicId), string_intern (self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(UnparsedEntityDecl ,"UnparsedEntityDecl",566), self->handlers[UnparsedEntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 566, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 566, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
562 | const XML_Char *notationName),static void my_UnparsedEntityDeclHandler (void *userData, const XML_Char *entityName, const XML_Char *base, const XML_Char * systemId, const XML_Char *publicId, const XML_Char *notationName ) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler (self, UnparsedEntityDecl)) { if (flush_character_buffer(self ) < 0) return ;; args = Py_BuildValue ("(NNNNN)", string_intern (self, entityName), string_intern(self, base), string_intern( self, systemId), string_intern(self, publicId), string_intern (self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(UnparsedEntityDecl ,"UnparsedEntityDecl",566), self->handlers[UnparsedEntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 566, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 566, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
563 | ("(NNNNN)",static void my_UnparsedEntityDeclHandler (void *userData, const XML_Char *entityName, const XML_Char *base, const XML_Char * systemId, const XML_Char *publicId, const XML_Char *notationName ) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler (self, UnparsedEntityDecl)) { if (flush_character_buffer(self ) < 0) return ;; args = Py_BuildValue ("(NNNNN)", string_intern (self, entityName), string_intern(self, base), string_intern( self, systemId), string_intern(self, publicId), string_intern (self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(UnparsedEntityDecl ,"UnparsedEntityDecl",566), self->handlers[UnparsedEntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 566, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 566, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
564 | string_intern(self, entityName), string_intern(self, base),static void my_UnparsedEntityDeclHandler (void *userData, const XML_Char *entityName, const XML_Char *base, const XML_Char * systemId, const XML_Char *publicId, const XML_Char *notationName ) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler (self, UnparsedEntityDecl)) { if (flush_character_buffer(self ) < 0) return ;; args = Py_BuildValue ("(NNNNN)", string_intern (self, entityName), string_intern(self, base), string_intern( self, systemId), string_intern(self, publicId), string_intern (self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(UnparsedEntityDecl ,"UnparsedEntityDecl",566), self->handlers[UnparsedEntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 566, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 566, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
565 | string_intern(self, systemId), string_intern(self, publicId),static void my_UnparsedEntityDeclHandler (void *userData, const XML_Char *entityName, const XML_Char *base, const XML_Char * systemId, const XML_Char *publicId, const XML_Char *notationName ) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler (self, UnparsedEntityDecl)) { if (flush_character_buffer(self ) < 0) return ;; args = Py_BuildValue ("(NNNNN)", string_intern (self, entityName), string_intern(self, base), string_intern( self, systemId), string_intern(self, publicId), string_intern (self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(UnparsedEntityDecl ,"UnparsedEntityDecl",566), self->handlers[UnparsedEntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 566, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 566, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
566 | string_intern(self, notationName)))static void my_UnparsedEntityDeclHandler (void *userData, const XML_Char *entityName, const XML_Char *base, const XML_Char * systemId, const XML_Char *publicId, const XML_Char *notationName ) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler (self, UnparsedEntityDecl)) { if (flush_character_buffer(self ) < 0) return ;; args = Py_BuildValue ("(NNNNN)", string_intern (self, entityName), string_intern(self, base), string_intern( self, systemId), string_intern(self, publicId), string_intern (self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(UnparsedEntityDecl ,"UnparsedEntityDecl",566), self->handlers[UnparsedEntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 566, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 566, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
567 |
568 | VOID_HANDLER(EntityDecl,static void my_EntityDeclHandler (void *userData, const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId, const XML_Char *notationName) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EntityDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("NiNNNNN", string_intern(self, entityName), is_parameter_entity , (conv_string_len_to_unicode(value, value_length)), string_intern (self, base), string_intern(self, systemId), string_intern(self , publicId), string_intern(self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(EntityDecl,"EntityDecl",583), self->handlers[EntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 583, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 583, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
569 | (void *userData,static void my_EntityDeclHandler (void *userData, const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId, const XML_Char *notationName) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EntityDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("NiNNNNN", string_intern(self, entityName), is_parameter_entity , (conv_string_len_to_unicode(value, value_length)), string_intern (self, base), string_intern(self, systemId), string_intern(self , publicId), string_intern(self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(EntityDecl,"EntityDecl",583), self->handlers[EntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 583, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 583, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
570 | const XML_Char *entityName,static void my_EntityDeclHandler (void *userData, const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId, const XML_Char *notationName) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EntityDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("NiNNNNN", string_intern(self, entityName), is_parameter_entity , (conv_string_len_to_unicode(value, value_length)), string_intern (self, base), string_intern(self, systemId), string_intern(self , publicId), string_intern(self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(EntityDecl,"EntityDecl",583), self->handlers[EntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 583, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 583, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
571 | int is_parameter_entity,static void my_EntityDeclHandler (void *userData, const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId, const XML_Char *notationName) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EntityDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("NiNNNNN", string_intern(self, entityName), is_parameter_entity , (conv_string_len_to_unicode(value, value_length)), string_intern (self, base), string_intern(self, systemId), string_intern(self , publicId), string_intern(self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(EntityDecl,"EntityDecl",583), self->handlers[EntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 583, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 583, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
572 | const XML_Char *value,static void my_EntityDeclHandler (void *userData, const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId, const XML_Char *notationName) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EntityDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("NiNNNNN", string_intern(self, entityName), is_parameter_entity , (conv_string_len_to_unicode(value, value_length)), string_intern (self, base), string_intern(self, systemId), string_intern(self , publicId), string_intern(self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(EntityDecl,"EntityDecl",583), self->handlers[EntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 583, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 583, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
573 | int value_length,static void my_EntityDeclHandler (void *userData, const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId, const XML_Char *notationName) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EntityDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("NiNNNNN", string_intern(self, entityName), is_parameter_entity , (conv_string_len_to_unicode(value, value_length)), string_intern (self, base), string_intern(self, systemId), string_intern(self , publicId), string_intern(self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(EntityDecl,"EntityDecl",583), self->handlers[EntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 583, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 583, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
574 | const XML_Char *base,static void my_EntityDeclHandler (void *userData, const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId, const XML_Char *notationName) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EntityDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("NiNNNNN", string_intern(self, entityName), is_parameter_entity , (conv_string_len_to_unicode(value, value_length)), string_intern (self, base), string_intern(self, systemId), string_intern(self , publicId), string_intern(self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(EntityDecl,"EntityDecl",583), self->handlers[EntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 583, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 583, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
575 | const XML_Char *systemId,static void my_EntityDeclHandler (void *userData, const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId, const XML_Char *notationName) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EntityDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("NiNNNNN", string_intern(self, entityName), is_parameter_entity , (conv_string_len_to_unicode(value, value_length)), string_intern (self, base), string_intern(self, systemId), string_intern(self , publicId), string_intern(self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(EntityDecl,"EntityDecl",583), self->handlers[EntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 583, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 583, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
576 | const XML_Char *publicId,static void my_EntityDeclHandler (void *userData, const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId, const XML_Char *notationName) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EntityDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("NiNNNNN", string_intern(self, entityName), is_parameter_entity , (conv_string_len_to_unicode(value, value_length)), string_intern (self, base), string_intern(self, systemId), string_intern(self , publicId), string_intern(self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(EntityDecl,"EntityDecl",583), self->handlers[EntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 583, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 583, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
577 | const XML_Char *notationName),static void my_EntityDeclHandler (void *userData, const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId, const XML_Char *notationName) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EntityDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("NiNNNNN", string_intern(self, entityName), is_parameter_entity , (conv_string_len_to_unicode(value, value_length)), string_intern (self, base), string_intern(self, systemId), string_intern(self , publicId), string_intern(self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(EntityDecl,"EntityDecl",583), self->handlers[EntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 583, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 583, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
578 | ("NiNNNNN",static void my_EntityDeclHandler (void *userData, const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId, const XML_Char *notationName) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EntityDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("NiNNNNN", string_intern(self, entityName), is_parameter_entity , (conv_string_len_to_unicode(value, value_length)), string_intern (self, base), string_intern(self, systemId), string_intern(self , publicId), string_intern(self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(EntityDecl,"EntityDecl",583), self->handlers[EntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 583, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 583, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
579 | string_intern(self, entityName), is_parameter_entity,static void my_EntityDeclHandler (void *userData, const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId, const XML_Char *notationName) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EntityDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("NiNNNNN", string_intern(self, entityName), is_parameter_entity , (conv_string_len_to_unicode(value, value_length)), string_intern (self, base), string_intern(self, systemId), string_intern(self , publicId), string_intern(self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(EntityDecl,"EntityDecl",583), self->handlers[EntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 583, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 583, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
580 | (conv_string_len_to_unicode(value, value_length)),static void my_EntityDeclHandler (void *userData, const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId, const XML_Char *notationName) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EntityDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("NiNNNNN", string_intern(self, entityName), is_parameter_entity , (conv_string_len_to_unicode(value, value_length)), string_intern (self, base), string_intern(self, systemId), string_intern(self , publicId), string_intern(self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(EntityDecl,"EntityDecl",583), self->handlers[EntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 583, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 583, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
581 | string_intern(self, base), string_intern(self, systemId),static void my_EntityDeclHandler (void *userData, const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId, const XML_Char *notationName) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EntityDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("NiNNNNN", string_intern(self, entityName), is_parameter_entity , (conv_string_len_to_unicode(value, value_length)), string_intern (self, base), string_intern(self, systemId), string_intern(self , publicId), string_intern(self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(EntityDecl,"EntityDecl",583), self->handlers[EntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 583, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 583, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
582 | string_intern(self, publicId),static void my_EntityDeclHandler (void *userData, const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId, const XML_Char *notationName) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EntityDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("NiNNNNN", string_intern(self, entityName), is_parameter_entity , (conv_string_len_to_unicode(value, value_length)), string_intern (self, base), string_intern(self, systemId), string_intern(self , publicId), string_intern(self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(EntityDecl,"EntityDecl",583), self->handlers[EntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 583, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 583, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
583 | string_intern(self, notationName)))static void my_EntityDeclHandler (void *userData, const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId, const XML_Char *notationName) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EntityDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("NiNNNNN", string_intern(self, entityName), is_parameter_entity , (conv_string_len_to_unicode(value, value_length)), string_intern (self, base), string_intern(self, systemId), string_intern(self , publicId), string_intern(self, notationName)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(EntityDecl,"EntityDecl",583), self->handlers[EntityDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 583, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 583, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
584 |
585 | VOID_HANDLER(XmlDecl,static void my_XmlDeclHandler (void *userData, const XML_Char *version, const XML_Char *encoding, int standalone) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, XmlDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(O&O&i)", conv_string_to_unicode ,version , conv_string_to_unicode ,encoding, standalone) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(XmlDecl,"XmlDecl",592), self->handlers[XmlDecl], args , self); self->in_callback = 0; do { if (_Py_RefTotal-- , -- ((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args )->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 592, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 592, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
586 | (void *userData,static void my_XmlDeclHandler (void *userData, const XML_Char *version, const XML_Char *encoding, int standalone) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, XmlDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(O&O&i)", conv_string_to_unicode ,version , conv_string_to_unicode ,encoding, standalone) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(XmlDecl,"XmlDecl",592), self->handlers[XmlDecl], args , self); self->in_callback = 0; do { if (_Py_RefTotal-- , -- ((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args )->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 592, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 592, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
587 | const XML_Char *version,static void my_XmlDeclHandler (void *userData, const XML_Char *version, const XML_Char *encoding, int standalone) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, XmlDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(O&O&i)", conv_string_to_unicode ,version , conv_string_to_unicode ,encoding, standalone) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(XmlDecl,"XmlDecl",592), self->handlers[XmlDecl], args , self); self->in_callback = 0; do { if (_Py_RefTotal-- , -- ((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args )->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 592, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 592, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
588 | const XML_Char *encoding,static void my_XmlDeclHandler (void *userData, const XML_Char *version, const XML_Char *encoding, int standalone) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, XmlDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(O&O&i)", conv_string_to_unicode ,version , conv_string_to_unicode ,encoding, standalone) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(XmlDecl,"XmlDecl",592), self->handlers[XmlDecl], args , self); self->in_callback = 0; do { if (_Py_RefTotal-- , -- ((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args )->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 592, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 592, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
589 | int standalone),static void my_XmlDeclHandler (void *userData, const XML_Char *version, const XML_Char *encoding, int standalone) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, XmlDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(O&O&i)", conv_string_to_unicode ,version , conv_string_to_unicode ,encoding, standalone) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(XmlDecl,"XmlDecl",592), self->handlers[XmlDecl], args , self); self->in_callback = 0; do { if (_Py_RefTotal-- , -- ((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args )->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 592, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 592, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
590 | ("(O&O&i)",static void my_XmlDeclHandler (void *userData, const XML_Char *version, const XML_Char *encoding, int standalone) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, XmlDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(O&O&i)", conv_string_to_unicode ,version , conv_string_to_unicode ,encoding, standalone) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(XmlDecl,"XmlDecl",592), self->handlers[XmlDecl], args , self); self->in_callback = 0; do { if (_Py_RefTotal-- , -- ((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args )->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 592, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 592, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
591 | conv_string_to_unicode ,version, conv_string_to_unicode ,encoding,static void my_XmlDeclHandler (void *userData, const XML_Char *version, const XML_Char *encoding, int standalone) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, XmlDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(O&O&i)", conv_string_to_unicode ,version , conv_string_to_unicode ,encoding, standalone) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(XmlDecl,"XmlDecl",592), self->handlers[XmlDecl], args , self); self->in_callback = 0; do { if (_Py_RefTotal-- , -- ((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args )->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 592, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 592, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
592 | standalone))static void my_XmlDeclHandler (void *userData, const XML_Char *version, const XML_Char *encoding, int standalone) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, XmlDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(O&O&i)", conv_string_to_unicode ,version , conv_string_to_unicode ,encoding, standalone) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(XmlDecl,"XmlDecl",592), self->handlers[XmlDecl], args , self); self->in_callback = 0; do { if (_Py_RefTotal-- , -- ((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args )->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 592, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 592, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
593 |
594 | static PyObject *
595 | conv_content_model(XML_Content * const model,
596 | PyObject *(*conv_string)(const XML_Char *))
597 | {
598 | PyObject *result = NULL((void *)0);
599 | PyObject *children = PyTuple_New(model->numchildren);
600 | int i;
601 |
602 | if (children != NULL((void *)0)) {
603 | assert(model->numchildren < INT_MAX)(__builtin_expect(!(model->numchildren < 2147483647), 0 ) ? __assert_rtn(__func__, "/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 603, "model->numchildren < INT_MAX") : (void)0);
604 | for (i = 0; i < (int)model->numchildren; ++i) {
605 | PyObject *child = conv_content_model(&model->children[i],
606 | conv_string);
607 | if (child == NULL((void *)0)) {
608 | Py_XDECREF(children)do { if ((children) == ((void *)0)) ; else do { if (_Py_RefTotal -- , --((PyObject*)(children))->ob_refcnt != 0) { if (((PyObject *)children)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 608, (PyObject *)(children)); } else _Py_Dealloc((PyObject * )(children)); } while (0); } while (0);
609 | return NULL((void *)0);
610 | }
611 | PyTuple_SET_ITEM(children, i, child)(((PyTupleObject *)(children))->ob_item[i] = child);
612 | }
613 | result = Py_BuildValue("(iiO&N)",
614 | model->type, model->quant,
615 | conv_string,model->name, children);
616 | }
617 | return result;
618 | }
619 |
620 | static void
621 | my_ElementDeclHandler(void *userData,
622 | const XML_Char *name,
623 | XML_Content *model)
624 | {
625 | xmlparseobject *self = (xmlparseobject *)userData;
626 | PyObject *args = NULL((void *)0);
627 |
628 | if (have_handler(self, ElementDecl)) {
629 | PyObject *rv = NULL((void *)0);
630 | PyObject *modelobj, *nameobj;
631 |
632 | if (flush_character_buffer(self) < 0)
633 | goto finally;
634 | modelobj = conv_content_model(model, (conv_string_to_unicode));
635 | if (modelobj == NULL((void *)0)) {
636 | flag_error(self);
637 | goto finally;
638 | }
639 | nameobj = string_intern(self, name);
640 | if (nameobj == NULL((void *)0)) {
641 | Py_DECREF(modelobj)do { if (_Py_RefTotal-- , --((PyObject*)(modelobj))->ob_refcnt != 0) { if (((PyObject*)modelobj)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 641, ( PyObject *)(modelobj)); } else _Py_Dealloc((PyObject *)(modelobj )); } while (0);
642 | flag_error(self);
643 | goto finally;
644 | }
645 | args = Py_BuildValue("NN", nameobj, modelobj);
646 | if (args == NULL((void *)0)) {
647 | Py_DECREF(modelobj)do { if (_Py_RefTotal-- , --((PyObject*)(modelobj))->ob_refcnt != 0) { if (((PyObject*)modelobj)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 647, ( PyObject *)(modelobj)); } else _Py_Dealloc((PyObject *)(modelobj )); } while (0);
648 | flag_error(self);
649 | goto finally;
650 | }
651 | self->in_callback = 1;
652 | rv = call_with_frame(getcode(ElementDecl, "ElementDecl", __LINE__652),
653 | self->handlers[ElementDecl], args, self);
654 | self->in_callback = 0;
655 | if (rv == NULL((void *)0)) {
656 | flag_error(self);
657 | goto finally;
658 | }
659 | Py_DECREF(rv)do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 659, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0);
660 | }
661 | finally:
662 | Py_XDECREF(args)do { if ((args) == ((void *)0)) ; else do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 662, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); } while (0);
663 | XML_FreeContentModelPyExpat_XML_FreeContentModel(self->itself, model);
664 | return;
665 | }
666 |
667 | VOID_HANDLER(AttlistDecl,static void my_AttlistDeclHandler (void *userData, const XML_Char *elname, const XML_Char *attname, const XML_Char *att_type, const XML_Char *dflt, int isrequired) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, AttlistDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNO&O&i)" , string_intern(self, elname), string_intern(self, attname), conv_string_to_unicode ,att_type, conv_string_to_unicode ,dflt, isrequired) ; if (! args) { flag_error(self); return ;;} self->in_callback = 1 ; rv = call_with_frame(getcode(AttlistDecl,"AttlistDecl",677) , self->handlers[AttlistDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
668 | (void *userData,static void my_AttlistDeclHandler (void *userData, const XML_Char *elname, const XML_Char *attname, const XML_Char *att_type, const XML_Char *dflt, int isrequired) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, AttlistDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNO&O&i)" , string_intern(self, elname), string_intern(self, attname), conv_string_to_unicode ,att_type, conv_string_to_unicode ,dflt, isrequired) ; if (! args) { flag_error(self); return ;;} self->in_callback = 1 ; rv = call_with_frame(getcode(AttlistDecl,"AttlistDecl",677) , self->handlers[AttlistDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
669 | const XML_Char *elname,static void my_AttlistDeclHandler (void *userData, const XML_Char *elname, const XML_Char *attname, const XML_Char *att_type, const XML_Char *dflt, int isrequired) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, AttlistDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNO&O&i)" , string_intern(self, elname), string_intern(self, attname), conv_string_to_unicode ,att_type, conv_string_to_unicode ,dflt, isrequired) ; if (! args) { flag_error(self); return ;;} self->in_callback = 1 ; rv = call_with_frame(getcode(AttlistDecl,"AttlistDecl",677) , self->handlers[AttlistDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
670 | const XML_Char *attname,static void my_AttlistDeclHandler (void *userData, const XML_Char *elname, const XML_Char *attname, const XML_Char *att_type, const XML_Char *dflt, int isrequired) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, AttlistDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNO&O&i)" , string_intern(self, elname), string_intern(self, attname), conv_string_to_unicode ,att_type, conv_string_to_unicode ,dflt, isrequired) ; if (! args) { flag_error(self); return ;;} self->in_callback = 1 ; rv = call_with_frame(getcode(AttlistDecl,"AttlistDecl",677) , self->handlers[AttlistDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
671 | const XML_Char *att_type,static void my_AttlistDeclHandler (void *userData, const XML_Char *elname, const XML_Char *attname, const XML_Char *att_type, const XML_Char *dflt, int isrequired) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, AttlistDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNO&O&i)" , string_intern(self, elname), string_intern(self, attname), conv_string_to_unicode ,att_type, conv_string_to_unicode ,dflt, isrequired) ; if (! args) { flag_error(self); return ;;} self->in_callback = 1 ; rv = call_with_frame(getcode(AttlistDecl,"AttlistDecl",677) , self->handlers[AttlistDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
672 | const XML_Char *dflt,static void my_AttlistDeclHandler (void *userData, const XML_Char *elname, const XML_Char *attname, const XML_Char *att_type, const XML_Char *dflt, int isrequired) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, AttlistDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNO&O&i)" , string_intern(self, elname), string_intern(self, attname), conv_string_to_unicode ,att_type, conv_string_to_unicode ,dflt, isrequired) ; if (! args) { flag_error(self); return ;;} self->in_callback = 1 ; rv = call_with_frame(getcode(AttlistDecl,"AttlistDecl",677) , self->handlers[AttlistDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
673 | int isrequired),static void my_AttlistDeclHandler (void *userData, const XML_Char *elname, const XML_Char *attname, const XML_Char *att_type, const XML_Char *dflt, int isrequired) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, AttlistDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNO&O&i)" , string_intern(self, elname), string_intern(self, attname), conv_string_to_unicode ,att_type, conv_string_to_unicode ,dflt, isrequired) ; if (! args) { flag_error(self); return ;;} self->in_callback = 1 ; rv = call_with_frame(getcode(AttlistDecl,"AttlistDecl",677) , self->handlers[AttlistDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
674 | ("(NNO&O&i)",static void my_AttlistDeclHandler (void *userData, const XML_Char *elname, const XML_Char *attname, const XML_Char *att_type, const XML_Char *dflt, int isrequired) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, AttlistDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNO&O&i)" , string_intern(self, elname), string_intern(self, attname), conv_string_to_unicode ,att_type, conv_string_to_unicode ,dflt, isrequired) ; if (! args) { flag_error(self); return ;;} self->in_callback = 1 ; rv = call_with_frame(getcode(AttlistDecl,"AttlistDecl",677) , self->handlers[AttlistDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
675 | string_intern(self, elname), string_intern(self, attname),static void my_AttlistDeclHandler (void *userData, const XML_Char *elname, const XML_Char *attname, const XML_Char *att_type, const XML_Char *dflt, int isrequired) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, AttlistDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNO&O&i)" , string_intern(self, elname), string_intern(self, attname), conv_string_to_unicode ,att_type, conv_string_to_unicode ,dflt, isrequired) ; if (! args) { flag_error(self); return ;;} self->in_callback = 1 ; rv = call_with_frame(getcode(AttlistDecl,"AttlistDecl",677) , self->handlers[AttlistDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
676 | conv_string_to_unicode ,att_type, conv_string_to_unicode ,dflt,static void my_AttlistDeclHandler (void *userData, const XML_Char *elname, const XML_Char *attname, const XML_Char *att_type, const XML_Char *dflt, int isrequired) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, AttlistDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNO&O&i)" , string_intern(self, elname), string_intern(self, attname), conv_string_to_unicode ,att_type, conv_string_to_unicode ,dflt, isrequired) ; if (! args) { flag_error(self); return ;;} self->in_callback = 1 ; rv = call_with_frame(getcode(AttlistDecl,"AttlistDecl",677) , self->handlers[AttlistDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
677 | isrequired))static void my_AttlistDeclHandler (void *userData, const XML_Char *elname, const XML_Char *attname, const XML_Char *att_type, const XML_Char *dflt, int isrequired) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, AttlistDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNO&O&i)" , string_intern(self, elname), string_intern(self, attname), conv_string_to_unicode ,att_type, conv_string_to_unicode ,dflt, isrequired) ; if (! args) { flag_error(self); return ;;} self->in_callback = 1 ; rv = call_with_frame(getcode(AttlistDecl,"AttlistDecl",677) , self->handlers[AttlistDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 677, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
678 |
679 | #if XML_COMBINED_VERSION(10000*2 +100*0 +0) >= 19504
680 | VOID_HANDLER(SkippedEntity,static void my_SkippedEntityHandler (void *userData, const XML_Char *entityName, int is_parameter_entity) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, SkippedEntity )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("Ni", string_intern(self, entityName), is_parameter_entity ) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(SkippedEntity,"SkippedEntity" ,685), self->handlers[SkippedEntity], args, self); self-> in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args ))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 685, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 685, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
681 | (void *userData,static void my_SkippedEntityHandler (void *userData, const XML_Char *entityName, int is_parameter_entity) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, SkippedEntity )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("Ni", string_intern(self, entityName), is_parameter_entity ) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(SkippedEntity,"SkippedEntity" ,685), self->handlers[SkippedEntity], args, self); self-> in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args ))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 685, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 685, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
682 | const XML_Char *entityName,static void my_SkippedEntityHandler (void *userData, const XML_Char *entityName, int is_parameter_entity) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, SkippedEntity )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("Ni", string_intern(self, entityName), is_parameter_entity ) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(SkippedEntity,"SkippedEntity" ,685), self->handlers[SkippedEntity], args, self); self-> in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args ))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 685, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 685, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
683 | int is_parameter_entity),static void my_SkippedEntityHandler (void *userData, const XML_Char *entityName, int is_parameter_entity) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, SkippedEntity )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("Ni", string_intern(self, entityName), is_parameter_entity ) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(SkippedEntity,"SkippedEntity" ,685), self->handlers[SkippedEntity], args, self); self-> in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args ))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 685, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 685, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
684 | ("Ni",static void my_SkippedEntityHandler (void *userData, const XML_Char *entityName, int is_parameter_entity) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, SkippedEntity )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("Ni", string_intern(self, entityName), is_parameter_entity ) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(SkippedEntity,"SkippedEntity" ,685), self->handlers[SkippedEntity], args, self); self-> in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args ))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 685, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 685, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
685 | string_intern(self, entityName), is_parameter_entity))static void my_SkippedEntityHandler (void *userData, const XML_Char *entityName, int is_parameter_entity) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, SkippedEntity )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("Ni", string_intern(self, entityName), is_parameter_entity ) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(SkippedEntity,"SkippedEntity" ,685), self->handlers[SkippedEntity], args, self); self-> in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args ))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 685, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 685, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
686 | #endif
687 |
688 | VOID_HANDLER(NotationDecl,static void my_NotationDeclHandler (void *userData, const XML_Char *notationName, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, NotationDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNNN)", string_intern (self, notationName), string_intern(self, base), string_intern (self, systemId), string_intern(self, publicId)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(NotationDecl,"NotationDecl",696), self ->handlers[NotationDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 696, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 696, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
689 | (void *userData,static void my_NotationDeclHandler (void *userData, const XML_Char *notationName, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, NotationDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNNN)", string_intern (self, notationName), string_intern(self, base), string_intern (self, systemId), string_intern(self, publicId)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(NotationDecl,"NotationDecl",696), self ->handlers[NotationDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 696, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 696, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
690 | const XML_Char *notationName,static void my_NotationDeclHandler (void *userData, const XML_Char *notationName, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, NotationDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNNN)", string_intern (self, notationName), string_intern(self, base), string_intern (self, systemId), string_intern(self, publicId)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(NotationDecl,"NotationDecl",696), self ->handlers[NotationDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 696, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 696, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
691 | const XML_Char *base,static void my_NotationDeclHandler (void *userData, const XML_Char *notationName, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, NotationDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNNN)", string_intern (self, notationName), string_intern(self, base), string_intern (self, systemId), string_intern(self, publicId)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(NotationDecl,"NotationDecl",696), self ->handlers[NotationDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 696, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 696, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
692 | const XML_Char *systemId,static void my_NotationDeclHandler (void *userData, const XML_Char *notationName, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, NotationDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNNN)", string_intern (self, notationName), string_intern(self, base), string_intern (self, systemId), string_intern(self, publicId)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(NotationDecl,"NotationDecl",696), self ->handlers[NotationDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 696, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 696, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
693 | const XML_Char *publicId),static void my_NotationDeclHandler (void *userData, const XML_Char *notationName, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, NotationDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNNN)", string_intern (self, notationName), string_intern(self, base), string_intern (self, systemId), string_intern(self, publicId)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(NotationDecl,"NotationDecl",696), self ->handlers[NotationDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 696, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 696, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
694 | ("(NNNN)",static void my_NotationDeclHandler (void *userData, const XML_Char *notationName, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, NotationDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNNN)", string_intern (self, notationName), string_intern(self, base), string_intern (self, systemId), string_intern(self, publicId)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(NotationDecl,"NotationDecl",696), self ->handlers[NotationDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 696, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 696, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
695 | string_intern(self, notationName), string_intern(self, base),static void my_NotationDeclHandler (void *userData, const XML_Char *notationName, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, NotationDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNNN)", string_intern (self, notationName), string_intern(self, base), string_intern (self, systemId), string_intern(self, publicId)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(NotationDecl,"NotationDecl",696), self ->handlers[NotationDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 696, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 696, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
696 | string_intern(self, systemId), string_intern(self, publicId)))static void my_NotationDeclHandler (void *userData, const XML_Char *notationName, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, NotationDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(NNNN)", string_intern (self, notationName), string_intern(self, base), string_intern (self, systemId), string_intern(self, publicId)) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(NotationDecl,"NotationDecl",696), self ->handlers[NotationDecl], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 696, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 696, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
697 |
698 | VOID_HANDLER(StartNamespaceDecl,static void my_StartNamespaceDeclHandler (void *userData, const XML_Char *prefix, const XML_Char *uri) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, StartNamespaceDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(NN)", string_intern(self, prefix), string_intern (self, uri)) ; if (!args) { flag_error(self); return ;;} self ->in_callback = 1; rv = call_with_frame(getcode(StartNamespaceDecl ,"StartNamespaceDecl",703), self->handlers[StartNamespaceDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 703, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 703, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
699 | (void *userData,static void my_StartNamespaceDeclHandler (void *userData, const XML_Char *prefix, const XML_Char *uri) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, StartNamespaceDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(NN)", string_intern(self, prefix), string_intern (self, uri)) ; if (!args) { flag_error(self); return ;;} self ->in_callback = 1; rv = call_with_frame(getcode(StartNamespaceDecl ,"StartNamespaceDecl",703), self->handlers[StartNamespaceDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 703, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 703, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
700 | const XML_Char *prefix,static void my_StartNamespaceDeclHandler (void *userData, const XML_Char *prefix, const XML_Char *uri) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, StartNamespaceDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(NN)", string_intern(self, prefix), string_intern (self, uri)) ; if (!args) { flag_error(self); return ;;} self ->in_callback = 1; rv = call_with_frame(getcode(StartNamespaceDecl ,"StartNamespaceDecl",703), self->handlers[StartNamespaceDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 703, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 703, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
701 | const XML_Char *uri),static void my_StartNamespaceDeclHandler (void *userData, const XML_Char *prefix, const XML_Char *uri) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, StartNamespaceDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(NN)", string_intern(self, prefix), string_intern (self, uri)) ; if (!args) { flag_error(self); return ;;} self ->in_callback = 1; rv = call_with_frame(getcode(StartNamespaceDecl ,"StartNamespaceDecl",703), self->handlers[StartNamespaceDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 703, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 703, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
702 | ("(NN)",static void my_StartNamespaceDeclHandler (void *userData, const XML_Char *prefix, const XML_Char *uri) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, StartNamespaceDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(NN)", string_intern(self, prefix), string_intern (self, uri)) ; if (!args) { flag_error(self); return ;;} self ->in_callback = 1; rv = call_with_frame(getcode(StartNamespaceDecl ,"StartNamespaceDecl",703), self->handlers[StartNamespaceDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 703, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 703, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
703 | string_intern(self, prefix), string_intern(self, uri)))static void my_StartNamespaceDeclHandler (void *userData, const XML_Char *prefix, const XML_Char *uri) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, StartNamespaceDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(NN)", string_intern(self, prefix), string_intern (self, uri)) ; if (!args) { flag_error(self); return ;;} self ->in_callback = 1; rv = call_with_frame(getcode(StartNamespaceDecl ,"StartNamespaceDecl",703), self->handlers[StartNamespaceDecl ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 703, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 703, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
704 |
705 | VOID_HANDLER(EndNamespaceDecl,static void my_EndNamespaceDeclHandler (void *userData, const XML_Char *prefix) { xmlparseobject *self = (xmlparseobject * )userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EndNamespaceDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(N)", string_intern (self, prefix)) ; if (!args) { flag_error(self); return ;;} self ->in_callback = 1; rv = call_with_frame(getcode(EndNamespaceDecl ,"EndNamespaceDecl",708), self->handlers[EndNamespaceDecl] , args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 708, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 708, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
706 | (void *userData,static void my_EndNamespaceDeclHandler (void *userData, const XML_Char *prefix) { xmlparseobject *self = (xmlparseobject * )userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EndNamespaceDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(N)", string_intern (self, prefix)) ; if (!args) { flag_error(self); return ;;} self ->in_callback = 1; rv = call_with_frame(getcode(EndNamespaceDecl ,"EndNamespaceDecl",708), self->handlers[EndNamespaceDecl] , args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 708, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 708, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
707 | const XML_Char *prefix),static void my_EndNamespaceDeclHandler (void *userData, const XML_Char *prefix) { xmlparseobject *self = (xmlparseobject * )userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EndNamespaceDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(N)", string_intern (self, prefix)) ; if (!args) { flag_error(self); return ;;} self ->in_callback = 1; rv = call_with_frame(getcode(EndNamespaceDecl ,"EndNamespaceDecl",708), self->handlers[EndNamespaceDecl] , args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 708, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 708, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
708 | ("(N)", string_intern(self, prefix)))static void my_EndNamespaceDeclHandler (void *userData, const XML_Char *prefix) { xmlparseobject *self = (xmlparseobject * )userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EndNamespaceDecl)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(N)", string_intern (self, prefix)) ; if (!args) { flag_error(self); return ;;} self ->in_callback = 1; rv = call_with_frame(getcode(EndNamespaceDecl ,"EndNamespaceDecl",708), self->handlers[EndNamespaceDecl] , args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 708, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 708, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
709 |
710 | VOID_HANDLER(Comment,static void my_CommentHandler (void *userData, const XML_Char *data) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, Comment)) { if (flush_character_buffer(self ) < 0) return ;; args = Py_BuildValue ("(O&)", conv_string_to_unicode ,data) ; if (!args) { flag_error(self); return ;;} self-> in_callback = 1; rv = call_with_frame(getcode(Comment,"Comment" ,712), self->handlers[Comment], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 712, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 712, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
711 | (void *userData, const XML_Char *data),static void my_CommentHandler (void *userData, const XML_Char *data) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, Comment)) { if (flush_character_buffer(self ) < 0) return ;; args = Py_BuildValue ("(O&)", conv_string_to_unicode ,data) ; if (!args) { flag_error(self); return ;;} self-> in_callback = 1; rv = call_with_frame(getcode(Comment,"Comment" ,712), self->handlers[Comment], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 712, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 712, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
712 | ("(O&)", conv_string_to_unicode ,data))static void my_CommentHandler (void *userData, const XML_Char *data) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, Comment)) { if (flush_character_buffer(self ) < 0) return ;; args = Py_BuildValue ("(O&)", conv_string_to_unicode ,data) ; if (!args) { flag_error(self); return ;;} self-> in_callback = 1; rv = call_with_frame(getcode(Comment,"Comment" ,712), self->handlers[Comment], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 712, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 712, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
713 |
714 | VOID_HANDLER(StartCdataSection,static void my_StartCdataSectionHandler (void *userData) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, StartCdataSection )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("()") ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(StartCdataSection ,"StartCdataSection",716), self->handlers[StartCdataSection ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 716, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 716, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
715 | (void *userData),static void my_StartCdataSectionHandler (void *userData) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, StartCdataSection )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("()") ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(StartCdataSection ,"StartCdataSection",716), self->handlers[StartCdataSection ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 716, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 716, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
716 | ("()"))static void my_StartCdataSectionHandler (void *userData) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, StartCdataSection )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("()") ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(StartCdataSection ,"StartCdataSection",716), self->handlers[StartCdataSection ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 716, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 716, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
717 |
718 | VOID_HANDLER(EndCdataSection,static void my_EndCdataSectionHandler (void *userData) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EndCdataSection )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("()") ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(EndCdataSection ,"EndCdataSection",720), self->handlers[EndCdataSection], args , self); self->in_callback = 0; do { if (_Py_RefTotal-- , -- ((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args )->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 720, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 720, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
719 | (void *userData),static void my_EndCdataSectionHandler (void *userData) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EndCdataSection )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("()") ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(EndCdataSection ,"EndCdataSection",720), self->handlers[EndCdataSection], args , self); self->in_callback = 0; do { if (_Py_RefTotal-- , -- ((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args )->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 720, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 720, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
720 | ("()"))static void my_EndCdataSectionHandler (void *userData) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EndCdataSection )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("()") ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(EndCdataSection ,"EndCdataSection",720), self->handlers[EndCdataSection], args , self); self->in_callback = 0; do { if (_Py_RefTotal-- , -- ((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args )->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 720, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 720, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
721 |
722 | VOID_HANDLER(Default,static void my_DefaultHandler (void *userData, const XML_Char *s, int len) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, Default)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(N)", (conv_string_len_to_unicode (s,len))) ; if (!args) { flag_error(self); return ;;} self-> in_callback = 1; rv = call_with_frame(getcode(Default,"Default" ,724), self->handlers[Default], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 724, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 724, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
723 | (void *userData, const XML_Char *s, int len),static void my_DefaultHandler (void *userData, const XML_Char *s, int len) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, Default)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(N)", (conv_string_len_to_unicode (s,len))) ; if (!args) { flag_error(self); return ;;} self-> in_callback = 1; rv = call_with_frame(getcode(Default,"Default" ,724), self->handlers[Default], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 724, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 724, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
724 | ("(N)", (conv_string_len_to_unicode(s,len))))static void my_DefaultHandler (void *userData, const XML_Char *s, int len) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, Default)) { if (flush_character_buffer (self) < 0) return ;; args = Py_BuildValue ("(N)", (conv_string_len_to_unicode (s,len))) ; if (!args) { flag_error(self); return ;;} self-> in_callback = 1; rv = call_with_frame(getcode(Default,"Default" ,724), self->handlers[Default], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 724, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 724, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
725 |
726 | VOID_HANDLER(DefaultHandlerExpand,static void my_DefaultHandlerExpandHandler (void *userData, const XML_Char *s, int len) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, DefaultHandlerExpand)) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(N)", (conv_string_len_to_unicode(s,len))) ; if (!args) { flag_error (self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(DefaultHandlerExpand,"DefaultHandlerExpand",728), self ->handlers[DefaultHandlerExpand], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 728, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 728, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
727 | (void *userData, const XML_Char *s, int len),static void my_DefaultHandlerExpandHandler (void *userData, const XML_Char *s, int len) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, DefaultHandlerExpand)) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(N)", (conv_string_len_to_unicode(s,len))) ; if (!args) { flag_error (self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(DefaultHandlerExpand,"DefaultHandlerExpand",728), self ->handlers[DefaultHandlerExpand], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 728, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 728, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
728 | ("(N)", (conv_string_len_to_unicode(s,len))))static void my_DefaultHandlerExpandHandler (void *userData, const XML_Char *s, int len) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, DefaultHandlerExpand)) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(N)", (conv_string_len_to_unicode(s,len))) ; if (!args) { flag_error (self); return ;;} self->in_callback = 1; rv = call_with_frame (getcode(DefaultHandlerExpand,"DefaultHandlerExpand",728), self ->handlers[DefaultHandlerExpand], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 728, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 728, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
729 |
730 | INT_HANDLER(NotStandalone,static int my_NotStandaloneHandler (void *userData) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); int rc=0; if (have_handler (self, NotStandalone)) { if (flush_character_buffer(self) < 0) return rc; args = Py_BuildValue ("()") ; if (!args) { flag_error (self); return rc;} self->in_callback = 1; rv = call_with_frame (getcode(NotStandalone,"NotStandalone",732), self->handlers [NotStandalone], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 732, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return rc; } rc = PyLong_AsLong(rv); do { if (_Py_RefTotal-- , --(( PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 732, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return rc; }
731 | (void *userData),static int my_NotStandaloneHandler (void *userData) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); int rc=0; if (have_handler (self, NotStandalone)) { if (flush_character_buffer(self) < 0) return rc; args = Py_BuildValue ("()") ; if (!args) { flag_error (self); return rc;} self->in_callback = 1; rv = call_with_frame (getcode(NotStandalone,"NotStandalone",732), self->handlers [NotStandalone], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 732, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return rc; } rc = PyLong_AsLong(rv); do { if (_Py_RefTotal-- , --(( PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 732, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return rc; }
732 | ("()"))static int my_NotStandaloneHandler (void *userData) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); int rc=0; if (have_handler (self, NotStandalone)) { if (flush_character_buffer(self) < 0) return rc; args = Py_BuildValue ("()") ; if (!args) { flag_error (self); return rc;} self->in_callback = 1; rv = call_with_frame (getcode(NotStandalone,"NotStandalone",732), self->handlers [NotStandalone], args, self); self->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 732, ( PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args)); } while (0); if (rv == ((void *)0)) { flag_error(self); return rc; } rc = PyLong_AsLong(rv); do { if (_Py_RefTotal-- , --(( PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 732, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return rc; }
733 |
734 | RC_HANDLER(int, ExternalEntityRef,static int my_ExternalEntityRefHandler (XML_Parser parser, const XML_Char *context, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (*(void * *)(parser)) ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); int rc=0; if (have_handler(self, ExternalEntityRef )) { if (flush_character_buffer(self) < 0) return rc; args = Py_BuildValue ("(O&NNN)", conv_string_to_unicode ,context , string_intern(self, base), string_intern(self, systemId), string_intern (self, publicId)) ; if (!args) { flag_error(self); return rc; } self->in_callback = 1; rv = call_with_frame(getcode(ExternalEntityRef ,"ExternalEntityRef",745), self->handlers[ExternalEntityRef ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return rc; } rc = PyLong_AsLong(rv); do { if (_Py_RefTotal-- , --(( PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return rc; }
735 | (XML_Parser parser,static int my_ExternalEntityRefHandler (XML_Parser parser, const XML_Char *context, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (*(void * *)(parser)) ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); int rc=0; if (have_handler(self, ExternalEntityRef )) { if (flush_character_buffer(self) < 0) return rc; args = Py_BuildValue ("(O&NNN)", conv_string_to_unicode ,context , string_intern(self, base), string_intern(self, systemId), string_intern (self, publicId)) ; if (!args) { flag_error(self); return rc; } self->in_callback = 1; rv = call_with_frame(getcode(ExternalEntityRef ,"ExternalEntityRef",745), self->handlers[ExternalEntityRef ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return rc; } rc = PyLong_AsLong(rv); do { if (_Py_RefTotal-- , --(( PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return rc; }
736 | const XML_Char *context,static int my_ExternalEntityRefHandler (XML_Parser parser, const XML_Char *context, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (*(void * *)(parser)) ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); int rc=0; if (have_handler(self, ExternalEntityRef )) { if (flush_character_buffer(self) < 0) return rc; args = Py_BuildValue ("(O&NNN)", conv_string_to_unicode ,context , string_intern(self, base), string_intern(self, systemId), string_intern (self, publicId)) ; if (!args) { flag_error(self); return rc; } self->in_callback = 1; rv = call_with_frame(getcode(ExternalEntityRef ,"ExternalEntityRef",745), self->handlers[ExternalEntityRef ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return rc; } rc = PyLong_AsLong(rv); do { if (_Py_RefTotal-- , --(( PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return rc; }
737 | const XML_Char *base,static int my_ExternalEntityRefHandler (XML_Parser parser, const XML_Char *context, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (*(void * *)(parser)) ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); int rc=0; if (have_handler(self, ExternalEntityRef )) { if (flush_character_buffer(self) < 0) return rc; args = Py_BuildValue ("(O&NNN)", conv_string_to_unicode ,context , string_intern(self, base), string_intern(self, systemId), string_intern (self, publicId)) ; if (!args) { flag_error(self); return rc; } self->in_callback = 1; rv = call_with_frame(getcode(ExternalEntityRef ,"ExternalEntityRef",745), self->handlers[ExternalEntityRef ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return rc; } rc = PyLong_AsLong(rv); do { if (_Py_RefTotal-- , --(( PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return rc; }
738 | const XML_Char *systemId,static int my_ExternalEntityRefHandler (XML_Parser parser, const XML_Char *context, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (*(void * *)(parser)) ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); int rc=0; if (have_handler(self, ExternalEntityRef )) { if (flush_character_buffer(self) < 0) return rc; args = Py_BuildValue ("(O&NNN)", conv_string_to_unicode ,context , string_intern(self, base), string_intern(self, systemId), string_intern (self, publicId)) ; if (!args) { flag_error(self); return rc; } self->in_callback = 1; rv = call_with_frame(getcode(ExternalEntityRef ,"ExternalEntityRef",745), self->handlers[ExternalEntityRef ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return rc; } rc = PyLong_AsLong(rv); do { if (_Py_RefTotal-- , --(( PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return rc; }
739 | const XML_Char *publicId),static int my_ExternalEntityRefHandler (XML_Parser parser, const XML_Char *context, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (*(void * *)(parser)) ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); int rc=0; if (have_handler(self, ExternalEntityRef )) { if (flush_character_buffer(self) < 0) return rc; args = Py_BuildValue ("(O&NNN)", conv_string_to_unicode ,context , string_intern(self, base), string_intern(self, systemId), string_intern (self, publicId)) ; if (!args) { flag_error(self); return rc; } self->in_callback = 1; rv = call_with_frame(getcode(ExternalEntityRef ,"ExternalEntityRef",745), self->handlers[ExternalEntityRef ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return rc; } rc = PyLong_AsLong(rv); do { if (_Py_RefTotal-- , --(( PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return rc; }
740 | int rc=0;,static int my_ExternalEntityRefHandler (XML_Parser parser, const XML_Char *context, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (*(void * *)(parser)) ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); int rc=0; if (have_handler(self, ExternalEntityRef )) { if (flush_character_buffer(self) < 0) return rc; args = Py_BuildValue ("(O&NNN)", conv_string_to_unicode ,context , string_intern(self, base), string_intern(self, systemId), string_intern (self, publicId)) ; if (!args) { flag_error(self); return rc; } self->in_callback = 1; rv = call_with_frame(getcode(ExternalEntityRef ,"ExternalEntityRef",745), self->handlers[ExternalEntityRef ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return rc; } rc = PyLong_AsLong(rv); do { if (_Py_RefTotal-- , --(( PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return rc; }
741 | ("(O&NNN)",static int my_ExternalEntityRefHandler (XML_Parser parser, const XML_Char *context, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (*(void * *)(parser)) ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); int rc=0; if (have_handler(self, ExternalEntityRef )) { if (flush_character_buffer(self) < 0) return rc; args = Py_BuildValue ("(O&NNN)", conv_string_to_unicode ,context , string_intern(self, base), string_intern(self, systemId), string_intern (self, publicId)) ; if (!args) { flag_error(self); return rc; } self->in_callback = 1; rv = call_with_frame(getcode(ExternalEntityRef ,"ExternalEntityRef",745), self->handlers[ExternalEntityRef ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return rc; } rc = PyLong_AsLong(rv); do { if (_Py_RefTotal-- , --(( PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return rc; }
742 | conv_string_to_unicode ,context, string_intern(self, base),static int my_ExternalEntityRefHandler (XML_Parser parser, const XML_Char *context, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (*(void * *)(parser)) ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); int rc=0; if (have_handler(self, ExternalEntityRef )) { if (flush_character_buffer(self) < 0) return rc; args = Py_BuildValue ("(O&NNN)", conv_string_to_unicode ,context , string_intern(self, base), string_intern(self, systemId), string_intern (self, publicId)) ; if (!args) { flag_error(self); return rc; } self->in_callback = 1; rv = call_with_frame(getcode(ExternalEntityRef ,"ExternalEntityRef",745), self->handlers[ExternalEntityRef ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return rc; } rc = PyLong_AsLong(rv); do { if (_Py_RefTotal-- , --(( PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return rc; }
743 | string_intern(self, systemId), string_intern(self, publicId)),static int my_ExternalEntityRefHandler (XML_Parser parser, const XML_Char *context, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (*(void * *)(parser)) ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); int rc=0; if (have_handler(self, ExternalEntityRef )) { if (flush_character_buffer(self) < 0) return rc; args = Py_BuildValue ("(O&NNN)", conv_string_to_unicode ,context , string_intern(self, base), string_intern(self, systemId), string_intern (self, publicId)) ; if (!args) { flag_error(self); return rc; } self->in_callback = 1; rv = call_with_frame(getcode(ExternalEntityRef ,"ExternalEntityRef",745), self->handlers[ExternalEntityRef ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return rc; } rc = PyLong_AsLong(rv); do { if (_Py_RefTotal-- , --(( PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return rc; }
744 | rc = PyLong_AsLong(rv);, rc,static int my_ExternalEntityRefHandler (XML_Parser parser, const XML_Char *context, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (*(void * *)(parser)) ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); int rc=0; if (have_handler(self, ExternalEntityRef )) { if (flush_character_buffer(self) < 0) return rc; args = Py_BuildValue ("(O&NNN)", conv_string_to_unicode ,context , string_intern(self, base), string_intern(self, systemId), string_intern (self, publicId)) ; if (!args) { flag_error(self); return rc; } self->in_callback = 1; rv = call_with_frame(getcode(ExternalEntityRef ,"ExternalEntityRef",745), self->handlers[ExternalEntityRef ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return rc; } rc = PyLong_AsLong(rv); do { if (_Py_RefTotal-- , --(( PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return rc; }
745 | XML_GetUserData(parser))static int my_ExternalEntityRefHandler (XML_Parser parser, const XML_Char *context, const XML_Char *base, const XML_Char *systemId , const XML_Char *publicId) { xmlparseobject *self = (*(void * *)(parser)) ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); int rc=0; if (have_handler(self, ExternalEntityRef )) { if (flush_character_buffer(self) < 0) return rc; args = Py_BuildValue ("(O&NNN)", conv_string_to_unicode ,context , string_intern(self, base), string_intern(self, systemId), string_intern (self, publicId)) ; if (!args) { flag_error(self); return rc; } self->in_callback = 1; rv = call_with_frame(getcode(ExternalEntityRef ,"ExternalEntityRef",745), self->handlers[ExternalEntityRef ], args, self); self->in_callback = 0; do { if (_Py_RefTotal -- , --((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject *)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return rc; } rc = PyLong_AsLong(rv); do { if (_Py_RefTotal-- , --(( PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 745, (PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv) ); } while (0); } return rc; }
746 |
747 | /* XXX UnknownEncodingHandler */
748 |
749 | VOID_HANDLER(StartDoctypeDecl,static void my_StartDoctypeDeclHandler (void *userData, const XML_Char *doctypeName, const XML_Char *sysid, const XML_Char *pubid, int has_internal_subset) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, StartDoctypeDecl)) { if ( flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(NNNi)", string_intern(self, doctypeName), string_intern(self , sysid), string_intern(self, pubid), has_internal_subset) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(StartDoctypeDecl,"StartDoctypeDecl" ,755), self->handlers[StartDoctypeDecl], args, self); self ->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject* )(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 755, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 755, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
750 | (void *userData, const XML_Char *doctypeName,static void my_StartDoctypeDeclHandler (void *userData, const XML_Char *doctypeName, const XML_Char *sysid, const XML_Char *pubid, int has_internal_subset) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, StartDoctypeDecl)) { if ( flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(NNNi)", string_intern(self, doctypeName), string_intern(self , sysid), string_intern(self, pubid), has_internal_subset) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(StartDoctypeDecl,"StartDoctypeDecl" ,755), self->handlers[StartDoctypeDecl], args, self); self ->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject* )(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 755, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 755, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
751 | const XML_Char *sysid, const XML_Char *pubid,static void my_StartDoctypeDeclHandler (void *userData, const XML_Char *doctypeName, const XML_Char *sysid, const XML_Char *pubid, int has_internal_subset) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, StartDoctypeDecl)) { if ( flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(NNNi)", string_intern(self, doctypeName), string_intern(self , sysid), string_intern(self, pubid), has_internal_subset) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(StartDoctypeDecl,"StartDoctypeDecl" ,755), self->handlers[StartDoctypeDecl], args, self); self ->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject* )(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 755, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 755, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
752 | int has_internal_subset),static void my_StartDoctypeDeclHandler (void *userData, const XML_Char *doctypeName, const XML_Char *sysid, const XML_Char *pubid, int has_internal_subset) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, StartDoctypeDecl)) { if ( flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(NNNi)", string_intern(self, doctypeName), string_intern(self , sysid), string_intern(self, pubid), has_internal_subset) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(StartDoctypeDecl,"StartDoctypeDecl" ,755), self->handlers[StartDoctypeDecl], args, self); self ->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject* )(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 755, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 755, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
753 | ("(NNNi)", string_intern(self, doctypeName),static void my_StartDoctypeDeclHandler (void *userData, const XML_Char *doctypeName, const XML_Char *sysid, const XML_Char *pubid, int has_internal_subset) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, StartDoctypeDecl)) { if ( flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(NNNi)", string_intern(self, doctypeName), string_intern(self , sysid), string_intern(self, pubid), has_internal_subset) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(StartDoctypeDecl,"StartDoctypeDecl" ,755), self->handlers[StartDoctypeDecl], args, self); self ->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject* )(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 755, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 755, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
754 | string_intern(self, sysid), string_intern(self, pubid),static void my_StartDoctypeDeclHandler (void *userData, const XML_Char *doctypeName, const XML_Char *sysid, const XML_Char *pubid, int has_internal_subset) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, StartDoctypeDecl)) { if ( flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(NNNi)", string_intern(self, doctypeName), string_intern(self , sysid), string_intern(self, pubid), has_internal_subset) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(StartDoctypeDecl,"StartDoctypeDecl" ,755), self->handlers[StartDoctypeDecl], args, self); self ->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject* )(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 755, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 755, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
755 | has_internal_subset))static void my_StartDoctypeDeclHandler (void *userData, const XML_Char *doctypeName, const XML_Char *sysid, const XML_Char *pubid, int has_internal_subset) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = (( void *)0); ; if (have_handler(self, StartDoctypeDecl)) { if ( flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("(NNNi)", string_intern(self, doctypeName), string_intern(self , sysid), string_intern(self, pubid), has_internal_subset) ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(StartDoctypeDecl,"StartDoctypeDecl" ,755), self->handlers[StartDoctypeDecl], args, self); self ->in_callback = 0; do { if (_Py_RefTotal-- , --((PyObject* )(args))->ob_refcnt != 0) { if (((PyObject*)args)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 755, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 755, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
756 |
757 | VOID_HANDLER(EndDoctypeDecl, (void *userData), ("()"))static void my_EndDoctypeDeclHandler (void *userData) { xmlparseobject *self = (xmlparseobject *)userData ; PyObject *args = ((void *)0); PyObject *rv = ((void *)0); ; if (have_handler(self, EndDoctypeDecl )) { if (flush_character_buffer(self) < 0) return ;; args = Py_BuildValue ("()") ; if (!args) { flag_error(self); return ;;} self->in_callback = 1; rv = call_with_frame(getcode(EndDoctypeDecl ,"EndDoctypeDecl",757), self->handlers[EndDoctypeDecl], args , self); self->in_callback = 0; do { if (_Py_RefTotal-- , -- ((PyObject*)(args))->ob_refcnt != 0) { if (((PyObject*)args )->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 757, (PyObject *)(args)); } else _Py_Dealloc((PyObject *)(args )); } while (0); if (rv == ((void *)0)) { flag_error(self); return ;; } ; do { if (_Py_RefTotal-- , --((PyObject*)(rv))->ob_refcnt != 0) { if (((PyObject*)rv)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 757, ( PyObject *)(rv)); } else _Py_Dealloc((PyObject *)(rv)); } while (0); } return ;; }
758 |
759 | /* ---------------------------------------------------------------- */
760 |
761 | static PyObject *
762 | get_parse_result(xmlparseobject *self, int rv)
763 | {
764 | if (PyErr_Occurred()) {
765 | return NULL((void *)0);
766 | }
767 | if (rv == 0) {
768 | return set_error(self, XML_GetErrorCodePyExpat_XML_GetErrorCode(self->itself));
769 | }
770 | if (flush_character_buffer(self) < 0) {
771 | return NULL((void *)0);
772 | }
773 | return PyLong_FromLong(rv);
774 | }
775 |
776 | PyDoc_STRVAR(xmlparse_Parse__doc__,static char xmlparse_Parse__doc__[] = "Parse(data[, isfinal])\nParse XML data. `isfinal' should be true at end of input."
777 | "Parse(data[, isfinal])\n\static char xmlparse_Parse__doc__[] = "Parse(data[, isfinal])\nParse XML data. `isfinal' should be true at end of input."
778 | Parse XML data. `isfinal' should be true at end of input.")static char xmlparse_Parse__doc__[] = "Parse(data[, isfinal])\nParse XML data. `isfinal' should be true at end of input.";
779 |
780 | static PyObject *
781 | xmlparse_Parse(xmlparseobject *self, PyObject *args)
782 | {
783 | char *s;
784 | int slen;
785 | int isFinal = 0;
786 |
787 | if (!PyArg_ParseTuple(args, "s#|i:Parse", &s, &slen, &isFinal))
788 | return NULL((void *)0);
789 |
790 | return get_parse_result(self, XML_ParsePyExpat_XML_Parse(self->itself, s, slen, isFinal));
791 | }
792 |
793 | /* File reading copied from cPickle */
794 |
795 | #define BUF_SIZE2048 2048
796 |
797 | static int
798 | readinst(char *buf, int buf_size, PyObject *meth)
799 | {
800 | PyObject *str;
801 | Py_ssize_t len;
802 | char *ptr;
803 |
804 | str = PyObject_CallFunction(meth, "n", buf_size);
805 | if (str == NULL((void *)0))
806 | goto error;
807 |
808 | if (PyBytes_Check(str)((((((PyObject*)(str))->ob_type))->tp_flags & ((1L<< 27))) != 0))
809 | ptr = PyBytes_AS_STRING(str)((__builtin_expect(!(((((((PyObject*)(str))->ob_type))-> tp_flags & ((1L<<27))) != 0)), 0) ? __assert_rtn(__func__ , "/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 809, "PyBytes_Check(str)" ) : (void)0), (((PyBytesObject *)(str))->ob_sval));
810 | else if (PyByteArray_Check(str)((((PyObject*)(str))->ob_type) == (&PyByteArray_Type) || PyType_IsSubtype((((PyObject*)(str))->ob_type), (&PyByteArray_Type ))))
811 | ptr = PyByteArray_AS_STRING(str)((__builtin_expect(!(((((PyObject*)(str))->ob_type) == (& PyByteArray_Type) || PyType_IsSubtype((((PyObject*)(str))-> ob_type), (&PyByteArray_Type)))), 0) ? __assert_rtn(__func__ , "/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 811, "PyByteArray_Check(str)" ) : (void)0), (((PyVarObject*)(str))->ob_size) ? ((PyByteArrayObject *)(str))->ob_bytes : _PyByteArray_empty_string);
812 | else {
813 | PyErr_Format(PyExc_TypeError,
814 | "read() did not return a bytes object (type=%.400s)",
815 | Py_TYPE(str)(((PyObject*)(str))->ob_type)->tp_name);
816 | goto error;
817 | }
818 | len = Py_SIZE(str)(((PyVarObject*)(str))->ob_size);
819 | if (len > buf_size) {
820 | PyErr_Format(PyExc_ValueError,
821 | "read() returned too much data: "
822 | "%i bytes requested, %zd returned",
823 | buf_size, len);
824 | goto error;
825 | }
826 | memcpy(buf, ptr, len)((__builtin_object_size (buf, 0) != (size_t) -1) ? __builtin___memcpy_chk (buf, ptr, len, __builtin_object_size (buf, 0)) : __inline_memcpy_chk (buf, ptr, len));
827 | Py_DECREF(str)do { if (_Py_RefTotal-- , --((PyObject*)(str))->ob_refcnt != 0) { if (((PyObject*)str)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 827, ( PyObject *)(str)); } else _Py_Dealloc((PyObject *)(str)); } while (0);
828 | /* len <= buf_size <= INT_MAX */
829 | return (int)len;
830 |
831 | error:
832 | Py_XDECREF(str)do { if ((str) == ((void *)0)) ; else do { if (_Py_RefTotal-- , --((PyObject*)(str))->ob_refcnt != 0) { if (((PyObject* )str)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 832, (PyObject *)(str)); } else _Py_Dealloc((PyObject *)(str )); } while (0); } while (0);
833 | return -1;
834 | }
835 |
836 | PyDoc_STRVAR(xmlparse_ParseFile__doc__,static char xmlparse_ParseFile__doc__[] = "ParseFile(file)\nParse XML data from file-like object."
837 | "ParseFile(file)\n\static char xmlparse_ParseFile__doc__[] = "ParseFile(file)\nParse XML data from file-like object."
838 | Parse XML data from file-like object.")static char xmlparse_ParseFile__doc__[] = "ParseFile(file)\nParse XML data from file-like object.";
839 |
840 | static PyObject *
841 | xmlparse_ParseFile(xmlparseobject *self, PyObject *f)
842 | {
843 | int rv = 1;
844 | PyObject *readmethod = NULL((void *)0);
845 |
846 |
847 | readmethod = PyObject_GetAttrString(f, "read");
848 | if (readmethod == NULL((void *)0)) {
849 | PyErr_Clear();
850 | PyErr_SetString(PyExc_TypeError,
851 | "argument must have 'read' attribute");
852 | return NULL((void *)0);
853 | }
854 | for (;;) {
855 | int bytes_read;
856 | void *buf = XML_GetBufferPyExpat_XML_GetBuffer(self->itself, BUF_SIZE2048);
857 | if (buf == NULL((void *)0)) {
858 | Py_XDECREF(readmethod)do { if ((readmethod) == ((void *)0)) ; else do { if (_Py_RefTotal -- , --((PyObject*)(readmethod))->ob_refcnt != 0) { if ((( PyObject*)readmethod)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 858, ( PyObject *)(readmethod)); } else _Py_Dealloc((PyObject *)(readmethod )); } while (0); } while (0);
859 | return PyErr_NoMemory();
860 | }
861 |
862 | bytes_read = readinst(buf, BUF_SIZE2048, readmethod);
863 | if (bytes_read < 0) {
864 | Py_DECREF(readmethod)do { if (_Py_RefTotal-- , --((PyObject*)(readmethod))->ob_refcnt != 0) { if (((PyObject*)readmethod)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 864, ( PyObject *)(readmethod)); } else _Py_Dealloc((PyObject *)(readmethod )); } while (0);
865 | return NULL((void *)0);
866 | }
867 | rv = XML_ParseBufferPyExpat_XML_ParseBuffer(self->itself, bytes_read, bytes_read == 0);
868 | if (PyErr_Occurred()) {
869 | Py_XDECREF(readmethod)do { if ((readmethod) == ((void *)0)) ; else do { if (_Py_RefTotal -- , --((PyObject*)(readmethod))->ob_refcnt != 0) { if ((( PyObject*)readmethod)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 869, ( PyObject *)(readmethod)); } else _Py_Dealloc((PyObject *)(readmethod )); } while (0); } while (0);
870 | return NULL((void *)0);
871 | }
872 |
873 | if (!rv || bytes_read == 0)
874 | break;
875 | }
876 | Py_XDECREF(readmethod)do { if ((readmethod) == ((void *)0)) ; else do { if (_Py_RefTotal -- , --((PyObject*)(readmethod))->ob_refcnt != 0) { if ((( PyObject*)readmethod)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 876, ( PyObject *)(readmethod)); } else _Py_Dealloc((PyObject *)(readmethod )); } while (0); } while (0);
877 | return get_parse_result(self, rv);
878 | }
879 |
880 | PyDoc_STRVAR(xmlparse_SetBase__doc__,static char xmlparse_SetBase__doc__[] = "SetBase(base_url)\nSet the base URL for the parser."
881 | "SetBase(base_url)\n\static char xmlparse_SetBase__doc__[] = "SetBase(base_url)\nSet the base URL for the parser."
882 | Set the base URL for the parser.")static char xmlparse_SetBase__doc__[] = "SetBase(base_url)\nSet the base URL for the parser.";
883 |
884 | static PyObject *
885 | xmlparse_SetBase(xmlparseobject *self, PyObject *args)
886 | {
887 | char *base;
888 |
889 | if (!PyArg_ParseTuple(args, "s:SetBase", &base))
890 | return NULL((void *)0);
891 | if (!XML_SetBasePyExpat_XML_SetBase(self->itself, base)) {
892 | return PyErr_NoMemory();
893 | }
894 | Py_INCREF(Py_None)( _Py_RefTotal++ , ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt ++);
895 | return Py_None(&_Py_NoneStruct);
896 | }
897 |
898 | PyDoc_STRVAR(xmlparse_GetBase__doc__,static char xmlparse_GetBase__doc__[] = "GetBase() -> url\nReturn base URL string for the parser."
899 | "GetBase() -> url\n\static char xmlparse_GetBase__doc__[] = "GetBase() -> url\nReturn base URL string for the parser."
900 | Return base URL string for the parser.")static char xmlparse_GetBase__doc__[] = "GetBase() -> url\nReturn base URL string for the parser.";
901 |
902 | static PyObject *
903 | xmlparse_GetBase(xmlparseobject *self, PyObject *unused)
904 | {
905 | return Py_BuildValue("z", XML_GetBasePyExpat_XML_GetBase(self->itself));
906 | }
907 |
908 | PyDoc_STRVAR(xmlparse_GetInputContext__doc__,static char xmlparse_GetInputContext__doc__[] = "GetInputContext() -> string\nReturn the untranslated text of the input that caused the current event.\nIf the event was generated by a large amount of text (such as a start tag\nfor an element with many attributes), not all of the text may be available."
909 | "GetInputContext() -> string\n\static char xmlparse_GetInputContext__doc__[] = "GetInputContext() -> string\nReturn the untranslated text of the input that caused the current event.\nIf the event was generated by a large amount of text (such as a start tag\nfor an element with many attributes), not all of the text may be available."
910 | Return the untranslated text of the input that caused the current event.\n\static char xmlparse_GetInputContext__doc__[] = "GetInputContext() -> string\nReturn the untranslated text of the input that caused the current event.\nIf the event was generated by a large amount of text (such as a start tag\nfor an element with many attributes), not all of the text may be available."
911 | If the event was generated by a large amount of text (such as a start tag\n\static char xmlparse_GetInputContext__doc__[] = "GetInputContext() -> string\nReturn the untranslated text of the input that caused the current event.\nIf the event was generated by a large amount of text (such as a start tag\nfor an element with many attributes), not all of the text may be available."
912 | for an element with many attributes), not all of the text may be available.")static char xmlparse_GetInputContext__doc__[] = "GetInputContext() -> string\nReturn the untranslated text of the input that caused the current event.\nIf the event was generated by a large amount of text (such as a start tag\nfor an element with many attributes), not all of the text may be available.";
913 |
914 | static PyObject *
915 | xmlparse_GetInputContext(xmlparseobject *self, PyObject *unused)
916 | {
917 | if (self->in_callback) {
918 | int offset, size;
919 | const char *buffer
920 | = XML_GetInputContextPyExpat_XML_GetInputContext(self->itself, &offset, &size);
921 |
922 | if (buffer != NULL((void *)0))
923 | return PyBytes_FromStringAndSize(buffer + offset,
924 | size - offset);
925 | else
926 | Py_RETURN_NONEreturn ( _Py_RefTotal++ , ((PyObject*)((&_Py_NoneStruct)) )->ob_refcnt++), (&_Py_NoneStruct);
927 | }
928 | else
929 | Py_RETURN_NONEreturn ( _Py_RefTotal++ , ((PyObject*)((&_Py_NoneStruct)) )->ob_refcnt++), (&_Py_NoneStruct);
930 | }
931 |
932 | PyDoc_STRVAR(xmlparse_ExternalEntityParserCreate__doc__,static char xmlparse_ExternalEntityParserCreate__doc__[] = "ExternalEntityParserCreate(context[, encoding])\nCreate a parser for parsing an external entity based on the\ninformation passed to the ExternalEntityRefHandler."
933 | "ExternalEntityParserCreate(context[, encoding])\n\static char xmlparse_ExternalEntityParserCreate__doc__[] = "ExternalEntityParserCreate(context[, encoding])\nCreate a parser for parsing an external entity based on the\ninformation passed to the ExternalEntityRefHandler."
934 | Create a parser for parsing an external entity based on the\n\static char xmlparse_ExternalEntityParserCreate__doc__[] = "ExternalEntityParserCreate(context[, encoding])\nCreate a parser for parsing an external entity based on the\ninformation passed to the ExternalEntityRefHandler."
935 | information passed to the ExternalEntityRefHandler.")static char xmlparse_ExternalEntityParserCreate__doc__[] = "ExternalEntityParserCreate(context[, encoding])\nCreate a parser for parsing an external entity based on the\ninformation passed to the ExternalEntityRefHandler.";
936 |
937 | static PyObject *
938 | xmlparse_ExternalEntityParserCreate(xmlparseobject *self, PyObject *args)
939 | {
940 | char *context;
941 | char *encoding = NULL((void *)0);
942 | xmlparseobject *new_parser;
943 | int i;
944 |
945 | if (!PyArg_ParseTuple(args, "z|s:ExternalEntityParserCreate",
1 | Taking false branch
946 | &context, &encoding)) {
947 | return NULL((void *)0);
948 | }
949 |
950 | new_parser = PyObject_GC_New(xmlparseobject, &Xmlparsetype)( (xmlparseobject *) _PyObject_GC_New(&Xmlparsetype) );
951 | if (new_parser == NULL((void *)0))
2 | Taking false branch
952 | return NULL((void *)0);
953 | new_parser->buffer_size = self->buffer_size;
954 | new_parser->buffer_used = 0;
955 | new_parser->buffer = NULL((void *)0);
956 | new_parser->ordered_attributes = self->ordered_attributes;
957 | new_parser->specified_attributes = self->specified_attributes;
958 | new_parser->in_callback = 0;
959 | new_parser->ns_prefixes = self->ns_prefixes;
960 | new_parser->itself = XML_ExternalEntityParserCreatePyExpat_XML_ExternalEntityParserCreate(self->itself, context,
961 | encoding);
962 | new_parser->handlers = 0;
963 | new_parser->intern = self->intern;
964 | Py_XINCREF(new_parser->intern)do { if ((new_parser->intern) == ((void *)0)) ; else ( _Py_RefTotal ++ , ((PyObject*)(new_parser->intern))->ob_refcnt++); } while (0);
965 | PyObject_GC_Track(new_parser);
966 |
967 | if (self->buffer != NULL((void *)0)) {
3 | Taking false branch
968 | new_parser->buffer = malloc(new_parser->buffer_size);
969 | if (new_parser->buffer == NULL((void *)0)) {
970 | Py_DECREF(new_parser)do { if (_Py_RefTotal-- , --((PyObject*)(new_parser))->ob_refcnt != 0) { if (((PyObject*)new_parser)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 970, ( PyObject *)(new_parser)); } else _Py_Dealloc((PyObject *)(new_parser )); } while (0);
971 | return PyErr_NoMemory();
972 | }
973 | }
974 | if (!new_parser->itself) {
4 | Taking false branch
975 | Py_DECREF(new_parser)do { if (_Py_RefTotal-- , --((PyObject*)(new_parser))->ob_refcnt != 0) { if (((PyObject*)new_parser)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 975, ( PyObject *)(new_parser)); } else _Py_Dealloc((PyObject *)(new_parser )); } while (0);
976 | return PyErr_NoMemory();
977 | }
978 |
979 | XML_SetUserDataPyExpat_XML_SetUserData(new_parser->itself, (void *)new_parser);
980 |
981 | /* allocate and clear handlers first */
982 | for (i = 0; handler_info[i].name != NULL((void *)0); i++)
5 | Loop condition is false. Execution continues on line 985
983 | /* do nothing */;
984 |
985 | new_parser->handlers = malloc(sizeof(PyObject *) * i);
6 | Call to 'malloc' has an allocation size of 0 bytes
986 | if (!new_parser->handlers) {
987 | Py_DECREF(new_parser)do { if (_Py_RefTotal-- , --((PyObject*)(new_parser))->ob_refcnt != 0) { if (((PyObject*)new_parser)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 987, ( PyObject *)(new_parser)); } else _Py_Dealloc((PyObject *)(new_parser )); } while (0);
988 | return PyErr_NoMemory();
989 | }
990 | clear_handlers(new_parser, 1);
991 |
992 | /* then copy handlers from self */
993 | for (i = 0; handler_info[i].name != NULL((void *)0); i++) {
994 | PyObject *handler = self->handlers[i];
995 | if (handler != NULL((void *)0)) {
996 | Py_INCREF(handler)( _Py_RefTotal++ , ((PyObject*)(handler))->ob_refcnt++);
997 | new_parser->handlers[i] = handler;
998 | handler_info[i].setter(new_parser->itself,
999 | handler_info[i].handler);
1000 | }
1001 | }
1002 | return (PyObject *)new_parser;
1003 | }
1004 |
1005 | PyDoc_STRVAR(xmlparse_SetParamEntityParsing__doc__,static char xmlparse_SetParamEntityParsing__doc__[] = "SetParamEntityParsing(flag) -> success\nControls parsing of parameter entities (including the external DTD\nsubset). Possible flag values are XML_PARAM_ENTITY_PARSING_NEVER,\nXML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE and\nXML_PARAM_ENTITY_PARSING_ALWAYS. Returns true if setting the flag\nwas successful."
1006 | "SetParamEntityParsing(flag) -> success\n\static char xmlparse_SetParamEntityParsing__doc__[] = "SetParamEntityParsing(flag) -> success\nControls parsing of parameter entities (including the external DTD\nsubset). Possible flag values are XML_PARAM_ENTITY_PARSING_NEVER,\nXML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE and\nXML_PARAM_ENTITY_PARSING_ALWAYS. Returns true if setting the flag\nwas successful."
1007 | Controls parsing of parameter entities (including the external DTD\n\static char xmlparse_SetParamEntityParsing__doc__[] = "SetParamEntityParsing(flag) -> success\nControls parsing of parameter entities (including the external DTD\nsubset). Possible flag values are XML_PARAM_ENTITY_PARSING_NEVER,\nXML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE and\nXML_PARAM_ENTITY_PARSING_ALWAYS. Returns true if setting the flag\nwas successful."
1008 | subset). Possible flag values are XML_PARAM_ENTITY_PARSING_NEVER,\n\static char xmlparse_SetParamEntityParsing__doc__[] = "SetParamEntityParsing(flag) -> success\nControls parsing of parameter entities (including the external DTD\nsubset). Possible flag values are XML_PARAM_ENTITY_PARSING_NEVER,\nXML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE and\nXML_PARAM_ENTITY_PARSING_ALWAYS. Returns true if setting the flag\nwas successful."
1009 | XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE and\n\static char xmlparse_SetParamEntityParsing__doc__[] = "SetParamEntityParsing(flag) -> success\nControls parsing of parameter entities (including the external DTD\nsubset). Possible flag values are XML_PARAM_ENTITY_PARSING_NEVER,\nXML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE and\nXML_PARAM_ENTITY_PARSING_ALWAYS. Returns true if setting the flag\nwas successful."
1010 | XML_PARAM_ENTITY_PARSING_ALWAYS. Returns true if setting the flag\n\static char xmlparse_SetParamEntityParsing__doc__[] = "SetParamEntityParsing(flag) -> success\nControls parsing of parameter entities (including the external DTD\nsubset). Possible flag values are XML_PARAM_ENTITY_PARSING_NEVER,\nXML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE and\nXML_PARAM_ENTITY_PARSING_ALWAYS. Returns true if setting the flag\nwas successful."
1011 | was successful.")static char xmlparse_SetParamEntityParsing__doc__[] = "SetParamEntityParsing(flag) -> success\nControls parsing of parameter entities (including the external DTD\nsubset). Possible flag values are XML_PARAM_ENTITY_PARSING_NEVER,\nXML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE and\nXML_PARAM_ENTITY_PARSING_ALWAYS. Returns true if setting the flag\nwas successful.";
1012 |
1013 | static PyObject*
1014 | xmlparse_SetParamEntityParsing(xmlparseobject *p, PyObject* args)
1015 | {
1016 | int flag;
1017 | if (!PyArg_ParseTuple(args, "i", &flag))
1018 | return NULL((void *)0);
1019 | flag = XML_SetParamEntityParsingPyExpat_XML_SetParamEntityParsing(p->itself, flag);
1020 | return PyLong_FromLong(flag);
1021 | }
1022 |
1023 |
1024 | #if XML_COMBINED_VERSION(10000*2 +100*0 +0) >= 19505
1025 | PyDoc_STRVAR(xmlparse_UseForeignDTD__doc__,static char xmlparse_UseForeignDTD__doc__[] = "UseForeignDTD([flag])\nAllows the application to provide an artificial external subset if one is\nnot specified as part of the document instance. This readily allows the\nuse of a 'default' document type controlled by the application, while still\ngetting the advantage of providing document type information to the parser.\n'flag' defaults to True if not provided."
1026 | "UseForeignDTD([flag])\n\static char xmlparse_UseForeignDTD__doc__[] = "UseForeignDTD([flag])\nAllows the application to provide an artificial external subset if one is\nnot specified as part of the document instance. This readily allows the\nuse of a 'default' document type controlled by the application, while still\ngetting the advantage of providing document type information to the parser.\n'flag' defaults to True if not provided."
1027 | Allows the application to provide an artificial external subset if one is\n\static char xmlparse_UseForeignDTD__doc__[] = "UseForeignDTD([flag])\nAllows the application to provide an artificial external subset if one is\nnot specified as part of the document instance. This readily allows the\nuse of a 'default' document type controlled by the application, while still\ngetting the advantage of providing document type information to the parser.\n'flag' defaults to True if not provided."
1028 | not specified as part of the document instance. This readily allows the\n\static char xmlparse_UseForeignDTD__doc__[] = "UseForeignDTD([flag])\nAllows the application to provide an artificial external subset if one is\nnot specified as part of the document instance. This readily allows the\nuse of a 'default' document type controlled by the application, while still\ngetting the advantage of providing document type information to the parser.\n'flag' defaults to True if not provided."
1029 | use of a 'default' document type controlled by the application, while still\n\static char xmlparse_UseForeignDTD__doc__[] = "UseForeignDTD([flag])\nAllows the application to provide an artificial external subset if one is\nnot specified as part of the document instance. This readily allows the\nuse of a 'default' document type controlled by the application, while still\ngetting the advantage of providing document type information to the parser.\n'flag' defaults to True if not provided."
1030 | getting the advantage of providing document type information to the parser.\n\static char xmlparse_UseForeignDTD__doc__[] = "UseForeignDTD([flag])\nAllows the application to provide an artificial external subset if one is\nnot specified as part of the document instance. This readily allows the\nuse of a 'default' document type controlled by the application, while still\ngetting the advantage of providing document type information to the parser.\n'flag' defaults to True if not provided."
1031 | 'flag' defaults to True if not provided.")static char xmlparse_UseForeignDTD__doc__[] = "UseForeignDTD([flag])\nAllows the application to provide an artificial external subset if one is\nnot specified as part of the document instance. This readily allows the\nuse of a 'default' document type controlled by the application, while still\ngetting the advantage of providing document type information to the parser.\n'flag' defaults to True if not provided.";
1032 |
1033 | static PyObject *
1034 | xmlparse_UseForeignDTD(xmlparseobject *self, PyObject *args)
1035 | {
1036 | PyObject *flagobj = NULL((void *)0);
1037 | XML_Bool flag = XML_TRUE((XML_Bool) 1);
1038 | enum XML_Error rc;
1039 | if (!PyArg_UnpackTuple(args, "UseForeignDTD", 0, 1, &flagobj))
1040 | return NULL((void *)0);
1041 | if (flagobj != NULL((void *)0))
1042 | flag = PyObject_IsTrue(flagobj) ? XML_TRUE((XML_Bool) 1) : XML_FALSE((XML_Bool) 0);
1043 | rc = XML_UseForeignDTDPyExpat_XML_UseForeignDTD(self->itself, flag);
1044 | if (rc != XML_ERROR_NONE) {
1045 | return set_error(self, rc);
1046 | }
1047 | Py_INCREF(Py_None)( _Py_RefTotal++ , ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt ++);
1048 | return Py_None(&_Py_NoneStruct);
1049 | }
1050 | #endif
1051 |
1052 | static PyObject *xmlparse_dir(PyObject *self, PyObject* noargs);
1053 |
1054 | static struct PyMethodDef xmlparse_methods[] = {
1055 | {"Parse", (PyCFunction)xmlparse_Parse,
1056 | METH_VARARGS0x0001, xmlparse_Parse__doc__},
1057 | {"ParseFile", (PyCFunction)xmlparse_ParseFile,
1058 | METH_O0x0008, xmlparse_ParseFile__doc__},
1059 | {"SetBase", (PyCFunction)xmlparse_SetBase,
1060 | METH_VARARGS0x0001, xmlparse_SetBase__doc__},
1061 | {"GetBase", (PyCFunction)xmlparse_GetBase,
1062 | METH_NOARGS0x0004, xmlparse_GetBase__doc__},
1063 | {"ExternalEntityParserCreate", (PyCFunction)xmlparse_ExternalEntityParserCreate,
1064 | METH_VARARGS0x0001, xmlparse_ExternalEntityParserCreate__doc__},
1065 | {"SetParamEntityParsing", (PyCFunction)xmlparse_SetParamEntityParsing,
1066 | METH_VARARGS0x0001, xmlparse_SetParamEntityParsing__doc__},
1067 | {"GetInputContext", (PyCFunction)xmlparse_GetInputContext,
1068 | METH_NOARGS0x0004, xmlparse_GetInputContext__doc__},
1069 | #if XML_COMBINED_VERSION(10000*2 +100*0 +0) >= 19505
1070 | {"UseForeignDTD", (PyCFunction)xmlparse_UseForeignDTD,
1071 | METH_VARARGS0x0001, xmlparse_UseForeignDTD__doc__},
1072 | #endif
1073 | {"__dir__", xmlparse_dir, METH_NOARGS0x0004},
1074 | {NULL((void *)0), NULL((void *)0)} /* sentinel */
1075 | };
1076 |
1077 | /* ---------- */
1078 |
1079 |
1080 |
1081 | /* pyexpat international encoding support.
1082 | Make it as simple as possible.
1083 | */
1084 |
1085 | static char template_buffer[257];
1086 |
1087 | static void
1088 | init_template_buffer(void)
1089 | {
1090 | int i;
1091 | for (i = 0; i < 256; i++) {
1092 | template_buffer[i] = i;
1093 | }
1094 | template_buffer[256] = 0;
1095 | }
1096 |
1097 | static int
1098 | PyUnknownEncodingHandler(void *encodingHandlerData,
1099 | const XML_Char *name,
1100 | XML_Encoding *info)
1101 | {
1102 | PyUnicodeObject *_u_string = NULL((void *)0);
1103 | int result = 0;
1104 | int i;
1105 |
1106 | /* Yes, supports only 8bit encodings */
1107 | _u_string = (PyUnicodeObject *)
1108 | PyUnicode_DecodePyUnicodeUCS2_Decode(template_buffer, 256, name, "replace");
1109 |
1110 | if (_u_string == NULL((void *)0))
1111 | return result;
1112 |
1113 | for (i = 0; i < 256; i++) {
1114 | /* Stupid to access directly, but fast */
1115 | Py_UNICODE c = _u_string->str[i];
1116 | if (c == Py_UNICODE_REPLACEMENT_CHARACTER((Py_UNICODE) 0xFFFD))
1117 | info->map[i] = -1;
1118 | else
1119 | info->map[i] = c;
1120 | }
1121 | info->data = NULL((void *)0);
1122 | info->convert = NULL((void *)0);
1123 | info->release = NULL((void *)0);
1124 | result = 1;
1125 | Py_DECREF(_u_string)do { if (_Py_RefTotal-- , --((PyObject*)(_u_string))->ob_refcnt != 0) { if (((PyObject*)_u_string)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 1125, ( PyObject *)(_u_string)); } else _Py_Dealloc((PyObject *)(_u_string )); } while (0);
1126 | return result;
1127 | }
1128 |
1129 |
1130 | static PyObject *
1131 | newxmlparseobject(char *encoding, char *namespace_separator, PyObject *intern)
1132 | {
1133 | int i;
1134 | xmlparseobject *self;
1135 |
1136 | self = PyObject_GC_New(xmlparseobject, &Xmlparsetype)( (xmlparseobject *) _PyObject_GC_New(&Xmlparsetype) );
1137 | if (self == NULL((void *)0))
1138 | return NULL((void *)0);
1139 |
1140 | self->buffer = NULL((void *)0);
1141 | self->buffer_size = CHARACTER_DATA_BUFFER_SIZE8192;
1142 | self->buffer_used = 0;
1143 | self->ordered_attributes = 0;
1144 | self->specified_attributes = 0;
1145 | self->in_callback = 0;
1146 | self->ns_prefixes = 0;
1147 | self->handlers = NULL((void *)0);
1148 | if (namespace_separator != NULL((void *)0)) {
1149 | self->itself = XML_ParserCreateNSPyExpat_XML_ParserCreateNS(encoding, *namespace_separator);
1150 | }
1151 | else {
1152 | self->itself = XML_ParserCreatePyExpat_XML_ParserCreate(encoding);
1153 | }
1154 | self->intern = intern;
1155 | Py_XINCREF(self->intern)do { if ((self->intern) == ((void *)0)) ; else ( _Py_RefTotal ++ , ((PyObject*)(self->intern))->ob_refcnt++); } while (0);
1156 | PyObject_GC_Track(self);
1157 | if (self->itself == NULL((void *)0)) {
1158 | PyErr_SetString(PyExc_RuntimeError,
1159 | "XML_ParserCreate failed");
1160 | Py_DECREF(self)do { if (_Py_RefTotal-- , --((PyObject*)(self))->ob_refcnt != 0) { if (((PyObject*)self)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 1160, ( PyObject *)(self)); } else _Py_Dealloc((PyObject *)(self)); } while (0);
1161 | return NULL((void *)0);
1162 | }
1163 | XML_SetUserDataPyExpat_XML_SetUserData(self->itself, (void *)self);
1164 | XML_SetUnknownEncodingHandlerPyExpat_XML_SetUnknownEncodingHandler(self->itself,
1165 | (XML_UnknownEncodingHandler) PyUnknownEncodingHandler, NULL((void *)0));
1166 |
1167 | for (i = 0; handler_info[i].name != NULL((void *)0); i++)
1168 | /* do nothing */;
1169 |
1170 | self->handlers = malloc(sizeof(PyObject *) * i);
1171 | if (!self->handlers) {
1172 | Py_DECREF(self)do { if (_Py_RefTotal-- , --((PyObject*)(self))->ob_refcnt != 0) { if (((PyObject*)self)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 1172, ( PyObject *)(self)); } else _Py_Dealloc((PyObject *)(self)); } while (0);
1173 | return PyErr_NoMemory();
1174 | }
1175 | clear_handlers(self, 1);
1176 |
1177 | return (PyObject*)self;
1178 | }
1179 |
1180 |
1181 | static void
1182 | xmlparse_dealloc(xmlparseobject *self)
1183 | {
1184 | int i;
1185 | PyObject_GC_UnTrack(self);
1186 | if (self->itself != NULL((void *)0))
1187 | XML_ParserFreePyExpat_XML_ParserFree(self->itself);
1188 | self->itself = NULL((void *)0);
1189 |
1190 | if (self->handlers != NULL((void *)0)) {
1191 | PyObject *temp;
1192 | for (i = 0; handler_info[i].name != NULL((void *)0); i++) {
1193 | temp = self->handlers[i];
1194 | self->handlers[i] = NULL((void *)0);
1195 | Py_XDECREF(temp)do { if ((temp) == ((void *)0)) ; else do { if (_Py_RefTotal-- , --((PyObject*)(temp))->ob_refcnt != 0) { if (((PyObject *)temp)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 1195, (PyObject *)(temp)); } else _Py_Dealloc((PyObject *)( temp)); } while (0); } while (0);
1196 | }
1197 | free(self->handlers);
1198 | self->handlers = NULL((void *)0);
1199 | }
1200 | if (self->buffer != NULL((void *)0)) {
1201 | free(self->buffer);
1202 | self->buffer = NULL((void *)0);
1203 | }
1204 | Py_XDECREF(self->intern)do { if ((self->intern) == ((void *)0)) ; else do { if (_Py_RefTotal -- , --((PyObject*)(self->intern))->ob_refcnt != 0) { if (((PyObject*)self->intern)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 1204, ( PyObject *)(self->intern)); } else _Py_Dealloc((PyObject * )(self->intern)); } while (0); } while (0);
1205 | PyObject_GC_Del(self);
1206 | }
1207 |
1208 | static int
1209 | handlername2int(PyObject *name)
1210 | {
1211 | int i;
1212 | for (i = 0; handler_info[i].name != NULL((void *)0); i++) {
1213 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(
1214 | name, handler_info[i].name) == 0) {
1215 | return i;
1216 | }
1217 | }
1218 | return -1;
1219 | }
1220 |
1221 | static PyObject *
1222 | get_pybool(int istrue)
1223 | {
1224 | PyObject *result = istrue ? Py_True((PyObject *) &_Py_TrueStruct) : Py_False((PyObject *) &_Py_FalseStruct);
1225 | Py_INCREF(result)( _Py_RefTotal++ , ((PyObject*)(result))->ob_refcnt++);
1226 | return result;
1227 | }
1228 |
1229 | static PyObject *
1230 | xmlparse_getattro(xmlparseobject *self, PyObject *nameobj)
1231 | {
1232 | Py_UNICODE *name;
1233 | int handlernum = -1;
1234 |
1235 | if (!PyUnicode_Check(nameobj)((((((PyObject*)(nameobj))->ob_type))->tp_flags & ( (1L<<28))) != 0))
1236 | goto generic;
1237 |
1238 | handlernum = handlername2int(nameobj);
1239 |
1240 | if (handlernum != -1) {
1241 | PyObject *result = self->handlers[handlernum];
1242 | if (result == NULL((void *)0))
1243 | result = Py_None(&_Py_NoneStruct);
1244 | Py_INCREF(result)( _Py_RefTotal++ , ((PyObject*)(result))->ob_refcnt++);
1245 | return result;
1246 | }
1247 |
1248 | name = PyUnicode_AS_UNICODE(nameobj)((__builtin_expect(!(((((((PyObject*)(nameobj))->ob_type)) ->tp_flags & ((1L<<28))) != 0)), 0) ? __assert_rtn (__func__, "/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 1248, "PyUnicode_Check(nameobj)") : (void)0),(((PyUnicodeObject *)(nameobj))->str));
1249 | if (name[0] == 'E') {
1250 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(nameobj, "ErrorCode") == 0)
1251 | return PyLong_FromLong((long)
1252 | XML_GetErrorCodePyExpat_XML_GetErrorCode(self->itself));
1253 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(nameobj, "ErrorLineNumber") == 0)
1254 | return PyLong_FromLong((long)
1255 | XML_GetErrorLineNumberPyExpat_XML_GetCurrentLineNumber(self->itself));
1256 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(nameobj, "ErrorColumnNumber") == 0)
1257 | return PyLong_FromLong((long)
1258 | XML_GetErrorColumnNumberPyExpat_XML_GetCurrentColumnNumber(self->itself));
1259 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(nameobj, "ErrorByteIndex") == 0)
1260 | return PyLong_FromLong((long)
1261 | XML_GetErrorByteIndexPyExpat_XML_GetCurrentByteIndex(self->itself));
1262 | }
1263 | if (name[0] == 'C') {
1264 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(nameobj, "CurrentLineNumber") == 0)
1265 | return PyLong_FromLong((long)
1266 | XML_GetCurrentLineNumberPyExpat_XML_GetCurrentLineNumber(self->itself));
1267 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(nameobj, "CurrentColumnNumber") == 0)
1268 | return PyLong_FromLong((long)
1269 | XML_GetCurrentColumnNumberPyExpat_XML_GetCurrentColumnNumber(self->itself));
1270 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(nameobj, "CurrentByteIndex") == 0)
1271 | return PyLong_FromLong((long)
1272 | XML_GetCurrentByteIndexPyExpat_XML_GetCurrentByteIndex(self->itself));
1273 | }
1274 | if (name[0] == 'b') {
1275 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(nameobj, "buffer_size") == 0)
1276 | return PyLong_FromLong((long) self->buffer_size);
1277 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(nameobj, "buffer_text") == 0)
1278 | return get_pybool(self->buffer != NULL((void *)0));
1279 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(nameobj, "buffer_used") == 0)
1280 | return PyLong_FromLong((long) self->buffer_used);
1281 | }
1282 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(nameobj, "namespace_prefixes") == 0)
1283 | return get_pybool(self->ns_prefixes);
1284 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(nameobj, "ordered_attributes") == 0)
1285 | return get_pybool(self->ordered_attributes);
1286 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(nameobj, "specified_attributes") == 0)
1287 | return get_pybool((long) self->specified_attributes);
1288 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(nameobj, "intern") == 0) {
1289 | if (self->intern == NULL((void *)0)) {
1290 | Py_INCREF(Py_None)( _Py_RefTotal++ , ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt ++);
1291 | return Py_None(&_Py_NoneStruct);
1292 | }
1293 | else {
1294 | Py_INCREF(self->intern)( _Py_RefTotal++ , ((PyObject*)(self->intern))->ob_refcnt ++);
1295 | return self->intern;
1296 | }
1297 | }
1298 | generic:
1299 | return PyObject_GenericGetAttr((PyObject*)self, nameobj);
1300 | }
1301 |
1302 | static PyObject *
1303 | xmlparse_dir(PyObject *self, PyObject* noargs)
1304 | {
1305 | #define APPEND(list, str) \
1306 | do { \
1307 | PyObject *o = PyUnicode_FromStringPyUnicodeUCS2_FromString(str); \
1308 | if (o != NULL((void *)0)) \
1309 | PyList_Append(list, o); \
1310 | Py_XDECREF(o)do { if ((o) == ((void *)0)) ; else do { if (_Py_RefTotal-- , --((PyObject*)(o))->ob_refcnt != 0) { if (((PyObject*)o)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 1310, (PyObject *)(o)); } else _Py_Dealloc((PyObject *)(o)) ; } while (0); } while (0); \
1311 | } while (0)
1312 |
1313 | int i;
1314 | PyObject *rc = PyList_New(0);
1315 | if (!rc)
1316 | return NULL((void *)0);
1317 | for (i = 0; handler_info[i].name != NULL((void *)0); i++) {
1318 | PyObject *o = get_handler_name(&handler_info[i]);
1319 | if (o != NULL((void *)0))
1320 | PyList_Append(rc, o);
1321 | Py_XDECREF(o)do { if ((o) == ((void *)0)) ; else do { if (_Py_RefTotal-- , --((PyObject*)(o))->ob_refcnt != 0) { if (((PyObject*)o)-> ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 1321, (PyObject *)(o)); } else _Py_Dealloc((PyObject *)(o)) ; } while (0); } while (0);
1322 | }
1323 | APPEND(rc, "ErrorCode");
1324 | APPEND(rc, "ErrorLineNumber");
1325 | APPEND(rc, "ErrorColumnNumber");
1326 | APPEND(rc, "ErrorByteIndex");
1327 | APPEND(rc, "CurrentLineNumber");
1328 | APPEND(rc, "CurrentColumnNumber");
1329 | APPEND(rc, "CurrentByteIndex");
1330 | APPEND(rc, "buffer_size");
1331 | APPEND(rc, "buffer_text");
1332 | APPEND(rc, "buffer_used");
1333 | APPEND(rc, "namespace_prefixes");
1334 | APPEND(rc, "ordered_attributes");
1335 | APPEND(rc, "specified_attributes");
1336 | APPEND(rc, "intern");
1337 |
1338 | #undef APPEND
1339 |
1340 | if (PyErr_Occurred()) {
1341 | Py_DECREF(rc)do { if (_Py_RefTotal-- , --((PyObject*)(rc))->ob_refcnt != 0) { if (((PyObject*)rc)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 1341, ( PyObject *)(rc)); } else _Py_Dealloc((PyObject *)(rc)); } while (0);
1342 | rc = NULL((void *)0);
1343 | }
1344 |
1345 | return rc;
1346 | }
1347 |
1348 | static int
1349 | sethandler(xmlparseobject *self, PyObject *name, PyObject* v)
1350 | {
1351 | int handlernum = handlername2int(name);
1352 | if (handlernum >= 0) {
1353 | xmlhandler c_handler = NULL((void *)0);
1354 | PyObject *temp = self->handlers[handlernum];
1355 |
1356 | if (v == Py_None(&_Py_NoneStruct)) {
1357 | /* If this is the character data handler, and a character
1358 | data handler is already active, we need to be more
1359 | careful. What we can safely do is replace the existing
1360 | character data handler callback function with a no-op
1361 | function that will refuse to call Python. The downside
1362 | is that this doesn't completely remove the character
1363 | data handler from the C layer if there's any callback
1364 | active, so Expat does a little more work than it
1365 | otherwise would, but that's really an odd case. A more
1366 | elaborate system of handlers and state could remove the
1367 | C handler more effectively. */
1368 | if (handlernum == CharacterData && self->in_callback)
1369 | c_handler = noop_character_data_handler;
1370 | v = NULL((void *)0);
1371 | }
1372 | else if (v != NULL((void *)0)) {
1373 | Py_INCREF(v)( _Py_RefTotal++ , ((PyObject*)(v))->ob_refcnt++);
1374 | c_handler = handler_info[handlernum].handler;
1375 | }
1376 | self->handlers[handlernum] = v;
1377 | Py_XDECREF(temp)do { if ((temp) == ((void *)0)) ; else do { if (_Py_RefTotal-- , --((PyObject*)(temp))->ob_refcnt != 0) { if (((PyObject *)temp)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 1377, (PyObject *)(temp)); } else _Py_Dealloc((PyObject *)( temp)); } while (0); } while (0);
1378 | handler_info[handlernum].setter(self->itself, c_handler);
1379 | return 1;
1380 | }
1381 | return 0;
1382 | }
1383 |
1384 | static int
1385 | xmlparse_setattro(xmlparseobject *self, PyObject *name, PyObject *v)
1386 | {
1387 | /* Set attribute 'name' to value 'v'. v==NULL means delete */
1388 | if (v == NULL((void *)0)) {
1389 | PyErr_SetString(PyExc_RuntimeError, "Cannot delete attribute");
1390 | return -1;
1391 | }
1392 | assert(PyUnicode_Check(name))(__builtin_expect(!(((((((PyObject*)(name))->ob_type))-> tp_flags & ((1L<<28))) != 0)), 0) ? __assert_rtn(__func__ , "/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 1392, "PyUnicode_Check(name)") : (void)0);
1393 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(name, "buffer_text") == 0) {
1394 | if (PyObject_IsTrue(v)) {
1395 | if (self->buffer == NULL((void *)0)) {
1396 | self->buffer = malloc(self->buffer_size);
1397 | if (self->buffer == NULL((void *)0)) {
1398 | PyErr_NoMemory();
1399 | return -1;
1400 | }
1401 | self->buffer_used = 0;
1402 | }
1403 | }
1404 | else if (self->buffer != NULL((void *)0)) {
1405 | if (flush_character_buffer(self) < 0)
1406 | return -1;
1407 | free(self->buffer);
1408 | self->buffer = NULL((void *)0);
1409 | }
1410 | return 0;
1411 | }
1412 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(name, "namespace_prefixes") == 0) {
1413 | if (PyObject_IsTrue(v))
1414 | self->ns_prefixes = 1;
1415 | else
1416 | self->ns_prefixes = 0;
1417 | XML_SetReturnNSTripletPyExpat_XML_SetReturnNSTriplet(self->itself, self->ns_prefixes);
1418 | return 0;
1419 | }
1420 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(name, "ordered_attributes") == 0) {
1421 | if (PyObject_IsTrue(v))
1422 | self->ordered_attributes = 1;
1423 | else
1424 | self->ordered_attributes = 0;
1425 | return 0;
1426 | }
1427 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(name, "specified_attributes") == 0) {
1428 | if (PyObject_IsTrue(v))
1429 | self->specified_attributes = 1;
1430 | else
1431 | self->specified_attributes = 0;
1432 | return 0;
1433 | }
1434 |
1435 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(name, "buffer_size") == 0) {
1436 | long new_buffer_size;
1437 | if (!PyLong_Check(v)((((((PyObject*)(v))->ob_type))->tp_flags & ((1L<< 24))) != 0)) {
1438 | PyErr_SetString(PyExc_TypeError, "buffer_size must be an integer");
1439 | return -1;
1440 | }
1441 |
1442 | new_buffer_size=PyLong_AS_LONG(v)PyLong_AsLong(v);
1443 | /* trivial case -- no change */
1444 | if (new_buffer_size == self->buffer_size) {
1445 | return 0;
1446 | }
1447 |
1448 | if (new_buffer_size <= 0) {
1449 | PyErr_SetString(PyExc_ValueError, "buffer_size must be greater than zero");
1450 | return -1;
1451 | }
1452 |
1453 | /* check maximum */
1454 | if (new_buffer_size > INT_MAX2147483647) {
1455 | char errmsg[100];
1456 | sprintf(errmsg, "buffer_size must not be greater than %i", INT_MAX)__builtin___sprintf_chk (errmsg, 0, __builtin_object_size (errmsg , 2 > 1), "buffer_size must not be greater than %i", 2147483647 );
1457 | PyErr_SetString(PyExc_ValueError, errmsg);
1458 | return -1;
1459 | }
1460 |
1461 | if (self->buffer != NULL((void *)0)) {
1462 | /* there is already a buffer */
1463 | if (self->buffer_used != 0) {
1464 | flush_character_buffer(self);
1465 | }
1466 | /* free existing buffer */
1467 | free(self->buffer);
1468 | }
1469 | self->buffer = malloc(new_buffer_size);
1470 | if (self->buffer == NULL((void *)0)) {
1471 | PyErr_NoMemory();
1472 | return -1;
1473 | }
1474 | self->buffer_size = new_buffer_size;
1475 | return 0;
1476 | }
1477 |
1478 | if (PyUnicode_CompareWithASCIIStringPyUnicodeUCS2_CompareWithASCIIString(name, "CharacterDataHandler") == 0) {
1479 | /* If we're changing the character data handler, flush all
1480 | * cached data with the old handler. Not sure there's a
1481 | * "right" thing to do, though, but this probably won't
1482 | * happen.
1483 | */
1484 | if (flush_character_buffer(self) < 0)
1485 | return -1;
1486 | }
1487 | if (sethandler(self, name, v)) {
1488 | return 0;
1489 | }
1490 | PyErr_SetObject(PyExc_AttributeError, name);
1491 | return -1;
1492 | }
1493 |
1494 | static int
1495 | xmlparse_traverse(xmlparseobject *op, visitproc visit, void *arg)
1496 | {
1497 | int i;
1498 | for (i = 0; handler_info[i].name != NULL((void *)0); i++)
1499 | Py_VISIT(op->handlers[i])do { if (op->handlers[i]) { int vret = visit((PyObject *)( op->handlers[i]), arg); if (vret) return vret; } } while ( 0);
1500 | return 0;
1501 | }
1502 |
1503 | static int
1504 | xmlparse_clear(xmlparseobject *op)
1505 | {
1506 | clear_handlers(op, 0);
1507 | Py_CLEAR(op->intern)do { if (op->intern) { PyObject *_py_tmp = (PyObject *)(op ->intern); (op->intern) = ((void *)0); do { if (_Py_RefTotal -- , --((PyObject*)(_py_tmp))->ob_refcnt != 0) { if (((PyObject *)_py_tmp)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 1507, (PyObject *)(_py_tmp)); } else _Py_Dealloc((PyObject * )(_py_tmp)); } while (0); } } while (0);
1508 | return 0;
1509 | }
1510 |
1511 | PyDoc_STRVAR(Xmlparsetype__doc__, "XML parser")static char Xmlparsetype__doc__[] = "XML parser";
1512 |
1513 | static PyTypeObject Xmlparsetype = {
1514 | PyVarObject_HEAD_INIT(NULL, 0){ { 0, 0, 1, ((void *)0) }, 0 },
1515 | "pyexpat.xmlparser", /*tp_name*/
1516 | sizeof(xmlparseobject), /*tp_basicsize*/
1517 | 0, /*tp_itemsize*/
1518 | /* methods */
1519 | (destructor)xmlparse_dealloc, /*tp_dealloc*/
1520 | (printfunc)0, /*tp_print*/
1521 | 0, /*tp_getattr*/
1522 | 0, /*tp_setattr*/
1523 | 0, /*tp_reserved*/
1524 | (reprfunc)0, /*tp_repr*/
1525 | 0, /*tp_as_number*/
1526 | 0, /*tp_as_sequence*/
1527 | 0, /*tp_as_mapping*/
1528 | (hashfunc)0, /*tp_hash*/
1529 | (ternaryfunc)0, /*tp_call*/
1530 | (reprfunc)0, /*tp_str*/
1531 | (getattrofunc)xmlparse_getattro, /* tp_getattro */
1532 | (setattrofunc)xmlparse_setattro, /* tp_setattro */
1533 | 0, /* tp_as_buffer */
1534 | Py_TPFLAGS_DEFAULT( 0 | (1L<<18) | 0) | Py_TPFLAGS_HAVE_GC(1L<<14), /*tp_flags*/
1535 | Xmlparsetype__doc__, /* tp_doc - Documentation string */
1536 | (traverseproc)xmlparse_traverse, /* tp_traverse */
1537 | (inquiry)xmlparse_clear, /* tp_clear */
1538 | 0, /* tp_richcompare */
1539 | 0, /* tp_weaklistoffset */
1540 | 0, /* tp_iter */
1541 | 0, /* tp_iternext */
1542 | xmlparse_methods, /* tp_methods */
1543 | };
1544 |
1545 | /* End of code for xmlparser objects */
1546 | /* -------------------------------------------------------- */
1547 |
1548 | PyDoc_STRVAR(pyexpat_ParserCreate__doc__,static char pyexpat_ParserCreate__doc__[] = "ParserCreate([encoding[, namespace_separator]]) -> parser\nReturn a new XML parser object."
1549 | "ParserCreate([encoding[, namespace_separator]]) -> parser\n\static char pyexpat_ParserCreate__doc__[] = "ParserCreate([encoding[, namespace_separator]]) -> parser\nReturn a new XML parser object."
1550 | Return a new XML parser object.")static char pyexpat_ParserCreate__doc__[] = "ParserCreate([encoding[, namespace_separator]]) -> parser\nReturn a new XML parser object.";
1551 |
1552 | static PyObject *
1553 | pyexpat_ParserCreate(PyObject *notused, PyObject *args, PyObject *kw)
1554 | {
1555 | char *encoding = NULL((void *)0);
1556 | char *namespace_separator = NULL((void *)0);
1557 | PyObject *intern = NULL((void *)0);
1558 | PyObject *result;
1559 | int intern_decref = 0;
1560 | static char *kwlist[] = {"encoding", "namespace_separator",
1561 | "intern", NULL((void *)0)};
1562 |
1563 | if (!PyArg_ParseTupleAndKeywords(args, kw, "|zzO:ParserCreate", kwlist,
1564 | &encoding, &namespace_separator, &intern))
1565 | return NULL((void *)0);
1566 | if (namespace_separator != NULL((void *)0)
1567 | && strlen(namespace_separator) > 1) {
1568 | PyErr_SetString(PyExc_ValueError,
1569 | "namespace_separator must be at most one"
1570 | " character, omitted, or None");
1571 | return NULL((void *)0);
1572 | }
1573 | /* Explicitly passing None means no interning is desired.
1574 | Not passing anything means that a new dictionary is used. */
1575 | if (intern == Py_None(&_Py_NoneStruct))
1576 | intern = NULL((void *)0);
1577 | else if (intern == NULL((void *)0)) {
1578 | intern = PyDict_New();
1579 | if (!intern)
1580 | return NULL((void *)0);
1581 | intern_decref = 1;
1582 | }
1583 | else if (!PyDict_Check(intern)((((((PyObject*)(intern))->ob_type))->tp_flags & (( 1L<<29))) != 0)) {
1584 | PyErr_SetString(PyExc_TypeError, "intern must be a dictionary");
1585 | return NULL((void *)0);
1586 | }
1587 |
1588 | result = newxmlparseobject(encoding, namespace_separator, intern);
1589 | if (intern_decref) {
1590 | Py_DECREF(intern)do { if (_Py_RefTotal-- , --((PyObject*)(intern))->ob_refcnt != 0) { if (((PyObject*)intern)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 1590, ( PyObject *)(intern)); } else _Py_Dealloc((PyObject *)(intern) ); } while (0);
1591 | }
1592 | return result;
1593 | }
1594 |
1595 | PyDoc_STRVAR(pyexpat_ErrorString__doc__,static char pyexpat_ErrorString__doc__[] = "ErrorString(errno) -> string\nReturns string error for given number."
1596 | "ErrorString(errno) -> string\n\static char pyexpat_ErrorString__doc__[] = "ErrorString(errno) -> string\nReturns string error for given number."
1597 | Returns string error for given number.")static char pyexpat_ErrorString__doc__[] = "ErrorString(errno) -> string\nReturns string error for given number.";
1598 |
1599 | static PyObject *
1600 | pyexpat_ErrorString(PyObject *self, PyObject *args)
1601 | {
1602 | long code = 0;
1603 |
1604 | if (!PyArg_ParseTuple(args, "l:ErrorString", &code))
1605 | return NULL((void *)0);
1606 | return Py_BuildValue("z", XML_ErrorStringPyExpat_XML_ErrorString((int)code));
1607 | }
1608 |
1609 | /* List of methods defined in the module */
1610 |
1611 | static struct PyMethodDef pyexpat_methods[] = {
1612 | {"ParserCreate", (PyCFunction)pyexpat_ParserCreate,
1613 | METH_VARARGS0x0001|METH_KEYWORDS0x0002, pyexpat_ParserCreate__doc__},
1614 | {"ErrorString", (PyCFunction)pyexpat_ErrorString,
1615 | METH_VARARGS0x0001, pyexpat_ErrorString__doc__},
1616 |
1617 | {NULL((void *)0), (PyCFunction)NULL((void *)0), 0, NULL((void *)0)} /* sentinel */
1618 | };
1619 |
1620 | /* Module docstring */
1621 |
1622 | PyDoc_STRVAR(pyexpat_module_documentation,static char pyexpat_module_documentation[] = "Python wrapper for Expat parser."
1623 | "Python wrapper for Expat parser.")static char pyexpat_module_documentation[] = "Python wrapper for Expat parser.";
1624 |
1625 | /* Return a Python string that represents the version number without the
1626 | * extra cruft added by revision control, even if the right options were
1627 | * given to the "cvs export" command to make it not include the extra
1628 | * cruft.
1629 | */
1630 | static PyObject *
1631 | get_version_string(void)
1632 | {
1633 | static char *rcsid = "$Revision: 87911 $";
1634 | char *rev = rcsid;
1635 | int i = 0;
1636 |
1637 | while (!isdigit(Py_CHARMASK(*rev)((unsigned char)((*rev) & 0xff))))
1638 | ++rev;
1639 | while (rev[i] != ' ' && rev[i] != '\0')
1640 | ++i;
1641 |
1642 | return PyUnicode_FromStringAndSizePyUnicodeUCS2_FromStringAndSize(rev, i);
1643 | }
1644 |
1645 | /* Initialization function for the module */
1646 |
1647 | #ifndef MODULE_NAME"pyexpat"
1648 | #define MODULE_NAME"pyexpat" "pyexpat"
1649 | #endif
1650 |
1651 | #ifndef MODULE_INITFUNCPyInit_pyexpat
1652 | #define MODULE_INITFUNCPyInit_pyexpat PyInit_pyexpat
1653 | #endif
1654 |
1655 | #ifndef PyMODINIT_FUNCPyObject*
1656 | # ifdef MS_WINDOWS
1657 | # define PyMODINIT_FUNCPyObject* __declspec(dllexport) void
1658 | # else
1659 | # define PyMODINIT_FUNCPyObject* void
1660 | # endif
1661 | #endif
1662 |
1663 | PyMODINIT_FUNCPyObject* MODULE_INITFUNCPyInit_pyexpat(void); /* avoid compiler warnings */
1664 |
1665 | static struct PyModuleDef pyexpatmodule = {
1666 | PyModuleDef_HEAD_INIT{ { 0, 0, 1, ((void *)0) }, ((void *)0), 0, ((void *)0), },
1667 | MODULE_NAME"pyexpat",
1668 | pyexpat_module_documentation,
1669 | -1,
1670 | pyexpat_methods,
1671 | NULL((void *)0),
1672 | NULL((void *)0),
1673 | NULL((void *)0),
1674 | NULL((void *)0)
1675 | };
1676 |
1677 | PyMODINIT_FUNCPyObject*
1678 | MODULE_INITFUNCPyInit_pyexpat(void)
1679 | {
1680 | PyObject *m, *d;
1681 | PyObject *errmod_name = PyUnicode_FromStringPyUnicodeUCS2_FromString(MODULE_NAME"pyexpat" ".errors");
1682 | PyObject *errors_module;
1683 | PyObject *modelmod_name;
1684 | PyObject *model_module;
1685 | PyObject *sys_modules;
1686 | PyObject *tmpnum, *tmpstr;
1687 | PyObject *codes_dict;
1688 | PyObject *rev_codes_dict;
1689 | int res;
1690 | static struct PyExpat_CAPI capi;
1691 | PyObject *capi_object;
1692 |
1693 | if (errmod_name == NULL((void *)0))
1694 | return NULL((void *)0);
1695 | modelmod_name = PyUnicode_FromStringPyUnicodeUCS2_FromString(MODULE_NAME"pyexpat" ".model");
1696 | if (modelmod_name == NULL((void *)0))
1697 | return NULL((void *)0);
1698 |
1699 | if (PyType_Ready(&Xmlparsetype) < 0)
1700 | return NULL((void *)0);
1701 |
1702 | /* Create the module and add the functions */
1703 | m = PyModule_Create(&pyexpatmodule)PyModule_Create2TraceRefs(&pyexpatmodule, 1013);
1704 | if (m == NULL((void *)0))
1705 | return NULL((void *)0);
1706 |
1707 | /* Add some symbolic constants to the module */
1708 | if (ErrorObject == NULL((void *)0)) {
1709 | ErrorObject = PyErr_NewException("xml.parsers.expat.ExpatError",
1710 | NULL((void *)0), NULL((void *)0));
1711 | if (ErrorObject == NULL((void *)0))
1712 | return NULL((void *)0);
1713 | }
1714 | Py_INCREF(ErrorObject)( _Py_RefTotal++ , ((PyObject*)(ErrorObject))->ob_refcnt++ );
1715 | PyModule_AddObject(m, "error", ErrorObject);
1716 | Py_INCREF(ErrorObject)( _Py_RefTotal++ , ((PyObject*)(ErrorObject))->ob_refcnt++ );
1717 | PyModule_AddObject(m, "ExpatError", ErrorObject);
1718 | Py_INCREF(&Xmlparsetype)( _Py_RefTotal++ , ((PyObject*)(&Xmlparsetype))->ob_refcnt ++);
1719 | PyModule_AddObject(m, "XMLParserType", (PyObject *) &Xmlparsetype);
1720 |
1721 | PyModule_AddObject(m, "__version__", get_version_string());
1722 | PyModule_AddStringConstant(m, "EXPAT_VERSION",
1723 | (char *) XML_ExpatVersionPyExpat_XML_ExpatVersion());
1724 | {
1725 | XML_Expat_Version info = XML_ExpatVersionInfoPyExpat_XML_ExpatVersionInfo();
1726 | PyModule_AddObject(m, "version_info",
1727 | Py_BuildValue("(iii)", info.major,
1728 | info.minor, info.micro));
1729 | }
1730 | init_template_buffer();
1731 | /* XXX When Expat supports some way of figuring out how it was
1732 | compiled, this should check and set native_encoding
1733 | appropriately.
1734 | */
1735 | PyModule_AddStringConstant(m, "native_encoding", "UTF-8");
1736 |
1737 | sys_modules = PySys_GetObject("modules");
1738 | d = PyModule_GetDict(m);
1739 | errors_module = PyDict_GetItem(d, errmod_name);
1740 | if (errors_module == NULL((void *)0)) {
1741 | errors_module = PyModule_New(MODULE_NAME"pyexpat" ".errors");
1742 | if (errors_module != NULL((void *)0)) {
1743 | PyDict_SetItem(sys_modules, errmod_name, errors_module);
1744 | /* gives away the reference to errors_module */
1745 | PyModule_AddObject(m, "errors", errors_module);
1746 | }
1747 | }
1748 | Py_DECREF(errmod_name)do { if (_Py_RefTotal-- , --((PyObject*)(errmod_name))->ob_refcnt != 0) { if (((PyObject*)errmod_name)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 1748, ( PyObject *)(errmod_name)); } else _Py_Dealloc((PyObject *)(errmod_name )); } while (0);
1749 | model_module = PyDict_GetItem(d, modelmod_name);
1750 | if (model_module == NULL((void *)0)) {
1751 | model_module = PyModule_New(MODULE_NAME"pyexpat" ".model");
1752 | if (model_module != NULL((void *)0)) {
1753 | PyDict_SetItem(sys_modules, modelmod_name, model_module);
1754 | /* gives away the reference to model_module */
1755 | PyModule_AddObject(m, "model", model_module);
1756 | }
1757 | }
1758 | Py_DECREF(modelmod_name)do { if (_Py_RefTotal-- , --((PyObject*)(modelmod_name))-> ob_refcnt != 0) { if (((PyObject*)modelmod_name)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 1758, (PyObject *)(modelmod_name)); } else _Py_Dealloc((PyObject *)(modelmod_name)); } while (0);
1759 | if (errors_module == NULL((void *)0) || model_module == NULL((void *)0))
1760 | /* Don't core dump later! */
1761 | return NULL((void *)0);
1762 |
1763 | #if XML_COMBINED_VERSION(10000*2 +100*0 +0) > 19505
1764 | {
1765 | const XML_Feature *features = XML_GetFeatureListPyExpat_XML_GetFeatureList();
1766 | PyObject *list = PyList_New(0);
1767 | if (list == NULL((void *)0))
1768 | /* just ignore it */
1769 | PyErr_Clear();
1770 | else {
1771 | int i = 0;
1772 | for (; features[i].feature != XML_FEATURE_END; ++i) {
1773 | int ok;
1774 | PyObject *item = Py_BuildValue("si", features[i].name,
1775 | features[i].value);
1776 | if (item == NULL((void *)0)) {
1777 | Py_DECREF(list)do { if (_Py_RefTotal-- , --((PyObject*)(list))->ob_refcnt != 0) { if (((PyObject*)list)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 1777, ( PyObject *)(list)); } else _Py_Dealloc((PyObject *)(list)); } while (0);
1778 | list = NULL((void *)0);
1779 | break;
1780 | }
1781 | ok = PyList_Append(list, item);
1782 | Py_DECREF(item)do { if (_Py_RefTotal-- , --((PyObject*)(item))->ob_refcnt != 0) { if (((PyObject*)item)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 1782, ( PyObject *)(item)); } else _Py_Dealloc((PyObject *)(item)); } while (0);
1783 | if (ok < 0) {
1784 | PyErr_Clear();
1785 | break;
1786 | }
1787 | }
1788 | if (list != NULL((void *)0))
1789 | PyModule_AddObject(m, "features", list);
1790 | }
1791 | }
1792 | #endif
1793 |
1794 | codes_dict = PyDict_New();
1795 | rev_codes_dict = PyDict_New();
1796 | if (codes_dict == NULL((void *)0) || rev_codes_dict == NULL((void *)0)) {
1797 | Py_XDECREF(codes_dict)do { if ((codes_dict) == ((void *)0)) ; else do { if (_Py_RefTotal -- , --((PyObject*)(codes_dict))->ob_refcnt != 0) { if ((( PyObject*)codes_dict)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 1797, ( PyObject *)(codes_dict)); } else _Py_Dealloc((PyObject *)(codes_dict )); } while (0); } while (0);
1798 | Py_XDECREF(rev_codes_dict)do { if ((rev_codes_dict) == ((void *)0)) ; else do { if (_Py_RefTotal -- , --((PyObject*)(rev_codes_dict))->ob_refcnt != 0) { if (((PyObject*)rev_codes_dict)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 1798, ( PyObject *)(rev_codes_dict)); } else _Py_Dealloc((PyObject *) (rev_codes_dict)); } while (0); } while (0);
1799 | return NULL((void *)0);
1800 | }
1801 |
1802 | #define MYCONST(name) \
1803 | if (PyModule_AddStringConstant(errors_module, #name, \
1804 | (char *)XML_ErrorStringPyExpat_XML_ErrorString(name)) < 0) \
1805 | return NULL((void *)0); \
1806 | tmpnum = PyLong_FromLong(name); \
1807 | if (tmpnum == NULL((void *)0)) return NULL((void *)0); \
1808 | res = PyDict_SetItemString(codes_dict, \
1809 | XML_ErrorStringPyExpat_XML_ErrorString(name), tmpnum); \
1810 | if (res < 0) return NULL((void *)0); \
1811 | tmpstr = PyUnicode_FromStringPyUnicodeUCS2_FromString(XML_ErrorStringPyExpat_XML_ErrorString(name)); \
1812 | if (tmpstr == NULL((void *)0)) return NULL((void *)0); \
1813 | res = PyDict_SetItem(rev_codes_dict, tmpnum, tmpstr); \
1814 | Py_DECREF(tmpstr)do { if (_Py_RefTotal-- , --((PyObject*)(tmpstr))->ob_refcnt != 0) { if (((PyObject*)tmpstr)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 1814, ( PyObject *)(tmpstr)); } else _Py_Dealloc((PyObject *)(tmpstr) ); } while (0); \
1815 | Py_DECREF(tmpnum)do { if (_Py_RefTotal-- , --((PyObject*)(tmpnum))->ob_refcnt != 0) { if (((PyObject*)tmpnum)->ob_refcnt < 0) _Py_NegativeRefcount ("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c", 1815, ( PyObject *)(tmpnum)); } else _Py_Dealloc((PyObject *)(tmpnum) ); } while (0); \
1816 | if (res < 0) return NULL((void *)0); \
1817 |
1818 | MYCONST(XML_ERROR_NO_MEMORY);
1819 | MYCONST(XML_ERROR_SYNTAX);
1820 | MYCONST(XML_ERROR_NO_ELEMENTS);
1821 | MYCONST(XML_ERROR_INVALID_TOKEN);
1822 | MYCONST(XML_ERROR_UNCLOSED_TOKEN);
1823 | MYCONST(XML_ERROR_PARTIAL_CHAR);
1824 | MYCONST(XML_ERROR_TAG_MISMATCH);
1825 | MYCONST(XML_ERROR_DUPLICATE_ATTRIBUTE);
1826 | MYCONST(XML_ERROR_JUNK_AFTER_DOC_ELEMENT);
1827 | MYCONST(XML_ERROR_PARAM_ENTITY_REF);
1828 | MYCONST(XML_ERROR_UNDEFINED_ENTITY);
1829 | MYCONST(XML_ERROR_RECURSIVE_ENTITY_REF);
1830 | MYCONST(XML_ERROR_ASYNC_ENTITY);
1831 | MYCONST(XML_ERROR_BAD_CHAR_REF);
1832 | MYCONST(XML_ERROR_BINARY_ENTITY_REF);
1833 | MYCONST(XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF);
1834 | MYCONST(XML_ERROR_MISPLACED_XML_PI);
1835 | MYCONST(XML_ERROR_UNKNOWN_ENCODING);
1836 | MYCONST(XML_ERROR_INCORRECT_ENCODING);
1837 | MYCONST(XML_ERROR_UNCLOSED_CDATA_SECTION);
1838 | MYCONST(XML_ERROR_EXTERNAL_ENTITY_HANDLING);
1839 | MYCONST(XML_ERROR_NOT_STANDALONE);
1840 | MYCONST(XML_ERROR_UNEXPECTED_STATE);
1841 | MYCONST(XML_ERROR_ENTITY_DECLARED_IN_PE);
1842 | MYCONST(XML_ERROR_FEATURE_REQUIRES_XML_DTD);
1843 | MYCONST(XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING);
1844 | /* Added in Expat 1.95.7. */
1845 | MYCONST(XML_ERROR_UNBOUND_PREFIX);
1846 | /* Added in Expat 1.95.8. */
1847 | MYCONST(XML_ERROR_UNDECLARING_PREFIX);
1848 | MYCONST(XML_ERROR_INCOMPLETE_PE);
1849 | MYCONST(XML_ERROR_XML_DECL);
1850 | MYCONST(XML_ERROR_TEXT_DECL);
1851 | MYCONST(XML_ERROR_PUBLICID);
1852 | MYCONST(XML_ERROR_SUSPENDED);
1853 | MYCONST(XML_ERROR_NOT_SUSPENDED);
1854 | MYCONST(XML_ERROR_ABORTED);
1855 | MYCONST(XML_ERROR_FINISHED);
1856 | MYCONST(XML_ERROR_SUSPEND_PE);
1857 |
1858 | if (PyModule_AddStringConstant(errors_module, "__doc__",
1859 | "Constants used to describe "
1860 | "error conditions.") < 0)
1861 | return NULL((void *)0);
1862 |
1863 | if (PyModule_AddObject(errors_module, "codes", codes_dict) < 0)
1864 | return NULL((void *)0);
1865 | if (PyModule_AddObject(errors_module, "messages", rev_codes_dict) < 0)
1866 | return NULL((void *)0);
1867 |
1868 | #undef MYCONST
1869 |
1870 | #define MYCONST(c) PyModule_AddIntConstant(m, #c, c)
1871 | MYCONST(XML_PARAM_ENTITY_PARSING_NEVER);
1872 | MYCONST(XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE);
1873 | MYCONST(XML_PARAM_ENTITY_PARSING_ALWAYS);
1874 | #undef MYCONST
1875 |
1876 | #define MYCONST(c) PyModule_AddIntConstant(model_module, #c, c)
1877 | PyModule_AddStringConstant(model_module, "__doc__",
1878 | "Constants used to interpret content model information.");
1879 |
1880 | MYCONST(XML_CTYPE_EMPTY);
1881 | MYCONST(XML_CTYPE_ANY);
1882 | MYCONST(XML_CTYPE_MIXED);
1883 | MYCONST(XML_CTYPE_NAME);
1884 | MYCONST(XML_CTYPE_CHOICE);
1885 | MYCONST(XML_CTYPE_SEQ);
1886 |
1887 | MYCONST(XML_CQUANT_NONE);
1888 | MYCONST(XML_CQUANT_OPT);
1889 | MYCONST(XML_CQUANT_REP);
1890 | MYCONST(XML_CQUANT_PLUS);
1891 | #undef MYCONST
1892 |
1893 | /* initialize pyexpat dispatch table */
1894 | capi.size = sizeof(capi);
1895 | capi.magic = PyExpat_CAPI_MAGIC"pyexpat.expat_CAPI 1.0";
1896 | capi.MAJOR_VERSION = XML_MAJOR_VERSION2;
1897 | capi.MINOR_VERSION = XML_MINOR_VERSION0;
1898 | capi.MICRO_VERSION = XML_MICRO_VERSION0;
1899 | capi.ErrorString = XML_ErrorStringPyExpat_XML_ErrorString;
1900 | capi.GetErrorCode = XML_GetErrorCodePyExpat_XML_GetErrorCode;
1901 | capi.GetErrorColumnNumber = XML_GetErrorColumnNumberPyExpat_XML_GetCurrentColumnNumber;
1902 | capi.GetErrorLineNumber = XML_GetErrorLineNumberPyExpat_XML_GetCurrentLineNumber;
1903 | capi.Parse = XML_ParsePyExpat_XML_Parse;
1904 | capi.ParserCreate_MM = XML_ParserCreate_MMPyExpat_XML_ParserCreate_MM;
1905 | capi.ParserFree = XML_ParserFreePyExpat_XML_ParserFree;
1906 | capi.SetCharacterDataHandler = XML_SetCharacterDataHandlerPyExpat_XML_SetCharacterDataHandler;
1907 | capi.SetCommentHandler = XML_SetCommentHandlerPyExpat_XML_SetCommentHandler;
1908 | capi.SetDefaultHandlerExpand = XML_SetDefaultHandlerExpandPyExpat_XML_SetDefaultHandlerExpand;
1909 | capi.SetElementHandler = XML_SetElementHandlerPyExpat_XML_SetElementHandler;
1910 | capi.SetNamespaceDeclHandler = XML_SetNamespaceDeclHandlerPyExpat_XML_SetNamespaceDeclHandler;
1911 | capi.SetProcessingInstructionHandler = XML_SetProcessingInstructionHandlerPyExpat_XML_SetProcessingInstructionHandler;
1912 | capi.SetUnknownEncodingHandler = XML_SetUnknownEncodingHandlerPyExpat_XML_SetUnknownEncodingHandler;
1913 | capi.SetUserData = XML_SetUserDataPyExpat_XML_SetUserData;
1914 |
1915 | /* export using capsule */
1916 | capi_object = PyCapsule_New(&capi, PyExpat_CAPSULE_NAME"pyexpat.expat_CAPI", NULL((void *)0));
1917 | if (capi_object)
1918 | PyModule_AddObject(m, "expat_CAPI", capi_object);
1919 | return m;
1920 | }
1921 |
1922 | static void
1923 | clear_handlers(xmlparseobject *self, int initial)
1924 | {
1925 | int i = 0;
1926 | PyObject *temp;
1927 |
1928 | for (; handler_info[i].name != NULL((void *)0); i++) {
1929 | if (initial)
1930 | self->handlers[i] = NULL((void *)0);
1931 | else {
1932 | temp = self->handlers[i];
1933 | self->handlers[i] = NULL((void *)0);
1934 | Py_XDECREF(temp)do { if ((temp) == ((void *)0)) ; else do { if (_Py_RefTotal-- , --((PyObject*)(temp))->ob_refcnt != 0) { if (((PyObject *)temp)->ob_refcnt < 0) _Py_NegativeRefcount("/Users/brett/Dev/python/3.x/py3k/Modules/pyexpat.c" , 1934, (PyObject *)(temp)); } else _Py_Dealloc((PyObject *)( temp)); } while (0); } while (0);
1935 | handler_info[i].setter(self->itself, NULL((void *)0));
1936 | }
1937 | }
1938 | }
1939 |
1940 | static struct HandlerInfo handler_info[] = {
1941 | {"StartElementHandler",
1942 | (xmlhandlersetter)XML_SetStartElementHandlerPyExpat_XML_SetStartElementHandler,
1943 | (xmlhandler)my_StartElementHandler},
1944 | {"EndElementHandler",
1945 | (xmlhandlersetter)XML_SetEndElementHandlerPyExpat_XML_SetEndElementHandler,
1946 | (xmlhandler)my_EndElementHandler},
1947 | {"ProcessingInstructionHandler",
1948 | (xmlhandlersetter)XML_SetProcessingInstructionHandlerPyExpat_XML_SetProcessingInstructionHandler,
1949 | (xmlhandler)my_ProcessingInstructionHandler},
1950 | {"CharacterDataHandler",
1951 | (xmlhandlersetter)XML_SetCharacterDataHandlerPyExpat_XML_SetCharacterDataHandler,
1952 | (xmlhandler)my_CharacterDataHandler},
1953 | {"UnparsedEntityDeclHandler",
1954 | (xmlhandlersetter)XML_SetUnparsedEntityDeclHandlerPyExpat_XML_SetUnparsedEntityDeclHandler,
1955 | (xmlhandler)my_UnparsedEntityDeclHandler},
1956 | {"NotationDeclHandler",
1957 | (xmlhandlersetter)XML_SetNotationDeclHandlerPyExpat_XML_SetNotationDeclHandler,
1958 | (xmlhandler)my_NotationDeclHandler},
1959 | {"StartNamespaceDeclHandler",
1960 | (xmlhandlersetter)XML_SetStartNamespaceDeclHandlerPyExpat_XML_SetStartNamespaceDeclHandler,
1961 | (xmlhandler)my_StartNamespaceDeclHandler},
1962 | {"EndNamespaceDeclHandler",
1963 | (xmlhandlersetter)XML_SetEndNamespaceDeclHandlerPyExpat_XML_SetEndNamespaceDeclHandler,
1964 | (xmlhandler)my_EndNamespaceDeclHandler},
1965 | {"CommentHandler",
1966 | (xmlhandlersetter)XML_SetCommentHandlerPyExpat_XML_SetCommentHandler,
1967 | (xmlhandler)my_CommentHandler},
1968 | {"StartCdataSectionHandler",
1969 | (xmlhandlersetter)XML_SetStartCdataSectionHandlerPyExpat_XML_SetStartCdataSectionHandler,
1970 | (xmlhandler)my_StartCdataSectionHandler},
1971 | {"EndCdataSectionHandler",
1972 | (xmlhandlersetter)XML_SetEndCdataSectionHandlerPyExpat_XML_SetEndCdataSectionHandler,
1973 | (xmlhandler)my_EndCdataSectionHandler},
1974 | {"DefaultHandler",
1975 | (xmlhandlersetter)XML_SetDefaultHandlerPyExpat_XML_SetDefaultHandler,
1976 | (xmlhandler)my_DefaultHandler},
1977 | {"DefaultHandlerExpand",
1978 | (xmlhandlersetter)XML_SetDefaultHandlerExpandPyExpat_XML_SetDefaultHandlerExpand,
1979 | (xmlhandler)my_DefaultHandlerExpandHandler},
1980 | {"NotStandaloneHandler",
1981 | (xmlhandlersetter)XML_SetNotStandaloneHandlerPyExpat_XML_SetNotStandaloneHandler,
1982 | (xmlhandler)my_NotStandaloneHandler},
1983 | {"ExternalEntityRefHandler",
1984 | (xmlhandlersetter)XML_SetExternalEntityRefHandlerPyExpat_XML_SetExternalEntityRefHandler,
1985 | (xmlhandler)my_ExternalEntityRefHandler},
1986 | {"StartDoctypeDeclHandler",
1987 | (xmlhandlersetter)XML_SetStartDoctypeDeclHandlerPyExpat_XML_SetStartDoctypeDeclHandler,
1988 | (xmlhandler)my_StartDoctypeDeclHandler},
1989 | {"EndDoctypeDeclHandler",
1990 | (xmlhandlersetter)XML_SetEndDoctypeDeclHandlerPyExpat_XML_SetEndDoctypeDeclHandler,
1991 | (xmlhandler)my_EndDoctypeDeclHandler},
1992 | {"EntityDeclHandler",
1993 | (xmlhandlersetter)XML_SetEntityDeclHandlerPyExpat_XML_SetEntityDeclHandler,
1994 | (xmlhandler)my_EntityDeclHandler},
1995 | {"XmlDeclHandler",
1996 | (xmlhandlersetter)XML_SetXmlDeclHandlerPyExpat_XML_SetXmlDeclHandler,
1997 | (xmlhandler)my_XmlDeclHandler},
1998 | {"ElementDeclHandler",
1999 | (xmlhandlersetter)XML_SetElementDeclHandlerPyExpat_XML_SetElementDeclHandler,
2000 | (xmlhandler)my_ElementDeclHandler},
2001 | {"AttlistDeclHandler",
2002 | (xmlhandlersetter)XML_SetAttlistDeclHandlerPyExpat_XML_SetAttlistDeclHandler,
2003 | (xmlhandler)my_AttlistDeclHandler},
2004 | #if XML_COMBINED_VERSION(10000*2 +100*0 +0) >= 19504
2005 | {"SkippedEntityHandler",
2006 | (xmlhandlersetter)XML_SetSkippedEntityHandlerPyExpat_XML_SetSkippedEntityHandler,
2007 | (xmlhandler)my_SkippedEntityHandler},
2008 | #endif
2009 |
2010 | {NULL((void *)0), NULL((void *)0), NULL((void *)0)} /* sentinel */
2011 | };