File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -72,11 +72,11 @@ pyexpat_get_state(PyObject *module)
72
72
73
73
/* Declarations for objects of type xmlparser */
74
74
75
- typedef struct xmlparseobject {
75
+ typedef struct {
76
76
PyObject_HEAD
77
77
78
78
XML_Parser itself ;
79
- struct xmlparseobject * parent ;
79
+ PyObject * parent ; /* Parent xmlparseobject (for ref counting) */
80
80
int ordered_attributes ; /* Return attributes as a list. */
81
81
int specified_attributes ; /* Report only specified attributes. */
82
82
int in_callback ; /* Is a callback active? */
@@ -1080,7 +1080,7 @@ pyexpat_xmlparser_ExternalEntityParserCreate_impl(xmlparseobject *self,
1080
1080
new_parser -> ns_prefixes = self -> ns_prefixes ;
1081
1081
new_parser -> itself = XML_ExternalEntityParserCreate (self -> itself , context ,
1082
1082
encoding );
1083
- new_parser -> parent = self ;
1083
+ new_parser -> parent = ( PyObject * ) self ;
1084
1084
new_parser -> handlers = 0 ;
1085
1085
new_parser -> intern = Py_XNewRef (self -> intern );
1086
1086
You can’t perform that action at this time.
0 commit comments