Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
8c620c38
Commit
8c620c38
authored
Jan 13, 2020
by
ThePrez
Committed by
Stefan Behnel
Jan 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change goto label to avoid compile conflict (GH-3241)
Closes GH-3238
parent
070ef54e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
Cython/Utility/ExtensionTypes.c
Cython/Utility/ExtensionTypes.c
+17
-17
No files found.
Cython/Utility/ExtensionTypes.c
View file @
8c620c38
...
@@ -166,49 +166,49 @@ static int __Pyx_setup_reduce(PyObject* type_obj) {
...
@@ -166,49 +166,49 @@ static int __Pyx_setup_reduce(PyObject* type_obj) {
PyObject
*
setstate_cython
=
NULL
;
PyObject
*
setstate_cython
=
NULL
;
#if CYTHON_USE_PYTYPE_LOOKUP
#if CYTHON_USE_PYTYPE_LOOKUP
if
(
_PyType_Lookup
((
PyTypeObject
*
)
type_obj
,
PYIDENT
(
"__getstate__"
)))
goto
GOOD
;
if
(
_PyType_Lookup
((
PyTypeObject
*
)
type_obj
,
PYIDENT
(
"__getstate__"
)))
goto
__PYX_
GOOD
;
#else
#else
if
(
PyObject_HasAttr
(
type_obj
,
PYIDENT
(
"__getstate__"
)))
goto
GOOD
;
if
(
PyObject_HasAttr
(
type_obj
,
PYIDENT
(
"__getstate__"
)))
goto
__PYX_
GOOD
;
#endif
#endif
#if CYTHON_USE_PYTYPE_LOOKUP
#if CYTHON_USE_PYTYPE_LOOKUP
object_reduce_ex
=
_PyType_Lookup
(
&
PyBaseObject_Type
,
PYIDENT
(
"__reduce_ex__"
));
if
(
!
object_reduce_ex
)
goto
BAD
;
object_reduce_ex
=
_PyType_Lookup
(
&
PyBaseObject_Type
,
PYIDENT
(
"__reduce_ex__"
));
if
(
!
object_reduce_ex
)
goto
__PYX_
BAD
;
#else
#else
object_reduce_ex
=
__Pyx_PyObject_GetAttrStr
((
PyObject
*
)
&
PyBaseObject_Type
,
PYIDENT
(
"__reduce_ex__"
));
if
(
!
object_reduce_ex
)
goto
BAD
;
object_reduce_ex
=
__Pyx_PyObject_GetAttrStr
((
PyObject
*
)
&
PyBaseObject_Type
,
PYIDENT
(
"__reduce_ex__"
));
if
(
!
object_reduce_ex
)
goto
__PYX_
BAD
;
#endif
#endif
reduce_ex
=
__Pyx_PyObject_GetAttrStr
(
type_obj
,
PYIDENT
(
"__reduce_ex__"
));
if
(
unlikely
(
!
reduce_ex
))
goto
BAD
;
reduce_ex
=
__Pyx_PyObject_GetAttrStr
(
type_obj
,
PYIDENT
(
"__reduce_ex__"
));
if
(
unlikely
(
!
reduce_ex
))
goto
__PYX_
BAD
;
if
(
reduce_ex
==
object_reduce_ex
)
{
if
(
reduce_ex
==
object_reduce_ex
)
{
#if CYTHON_USE_PYTYPE_LOOKUP
#if CYTHON_USE_PYTYPE_LOOKUP
object_reduce
=
_PyType_Lookup
(
&
PyBaseObject_Type
,
PYIDENT
(
"__reduce__"
));
if
(
!
object_reduce
)
goto
BAD
;
object_reduce
=
_PyType_Lookup
(
&
PyBaseObject_Type
,
PYIDENT
(
"__reduce__"
));
if
(
!
object_reduce
)
goto
__PYX_
BAD
;
#else
#else
object_reduce
=
__Pyx_PyObject_GetAttrStr
((
PyObject
*
)
&
PyBaseObject_Type
,
PYIDENT
(
"__reduce__"
));
if
(
!
object_reduce
)
goto
BAD
;
object_reduce
=
__Pyx_PyObject_GetAttrStr
((
PyObject
*
)
&
PyBaseObject_Type
,
PYIDENT
(
"__reduce__"
));
if
(
!
object_reduce
)
goto
__PYX_
BAD
;
#endif
#endif
reduce
=
__Pyx_PyObject_GetAttrStr
(
type_obj
,
PYIDENT
(
"__reduce__"
));
if
(
unlikely
(
!
reduce
))
goto
BAD
;
reduce
=
__Pyx_PyObject_GetAttrStr
(
type_obj
,
PYIDENT
(
"__reduce__"
));
if
(
unlikely
(
!
reduce
))
goto
__PYX_
BAD
;
if
(
reduce
==
object_reduce
||
__Pyx_setup_reduce_is_named
(
reduce
,
PYIDENT
(
"__reduce_cython__"
)))
{
if
(
reduce
==
object_reduce
||
__Pyx_setup_reduce_is_named
(
reduce
,
PYIDENT
(
"__reduce_cython__"
)))
{
reduce_cython
=
__Pyx_PyObject_GetAttrStr
(
type_obj
,
PYIDENT
(
"__reduce_cython__"
));
if
(
unlikely
(
!
reduce_cython
))
goto
BAD
;
reduce_cython
=
__Pyx_PyObject_GetAttrStr
(
type_obj
,
PYIDENT
(
"__reduce_cython__"
));
if
(
unlikely
(
!
reduce_cython
))
goto
__PYX_
BAD
;
ret
=
PyDict_SetItem
(((
PyTypeObject
*
)
type_obj
)
->
tp_dict
,
PYIDENT
(
"__reduce__"
),
reduce_cython
);
if
(
unlikely
(
ret
<
0
))
goto
BAD
;
ret
=
PyDict_SetItem
(((
PyTypeObject
*
)
type_obj
)
->
tp_dict
,
PYIDENT
(
"__reduce__"
),
reduce_cython
);
if
(
unlikely
(
ret
<
0
))
goto
__PYX_
BAD
;
ret
=
PyDict_DelItem
(((
PyTypeObject
*
)
type_obj
)
->
tp_dict
,
PYIDENT
(
"__reduce_cython__"
));
if
(
unlikely
(
ret
<
0
))
goto
BAD
;
ret
=
PyDict_DelItem
(((
PyTypeObject
*
)
type_obj
)
->
tp_dict
,
PYIDENT
(
"__reduce_cython__"
));
if
(
unlikely
(
ret
<
0
))
goto
__PYX_
BAD
;
setstate
=
__Pyx_PyObject_GetAttrStr
(
type_obj
,
PYIDENT
(
"__setstate__"
));
setstate
=
__Pyx_PyObject_GetAttrStr
(
type_obj
,
PYIDENT
(
"__setstate__"
));
if
(
!
setstate
)
PyErr_Clear
();
if
(
!
setstate
)
PyErr_Clear
();
if
(
!
setstate
||
__Pyx_setup_reduce_is_named
(
setstate
,
PYIDENT
(
"__setstate_cython__"
)))
{
if
(
!
setstate
||
__Pyx_setup_reduce_is_named
(
setstate
,
PYIDENT
(
"__setstate_cython__"
)))
{
setstate_cython
=
__Pyx_PyObject_GetAttrStr
(
type_obj
,
PYIDENT
(
"__setstate_cython__"
));
if
(
unlikely
(
!
setstate_cython
))
goto
BAD
;
setstate_cython
=
__Pyx_PyObject_GetAttrStr
(
type_obj
,
PYIDENT
(
"__setstate_cython__"
));
if
(
unlikely
(
!
setstate_cython
))
goto
__PYX_
BAD
;
ret
=
PyDict_SetItem
(((
PyTypeObject
*
)
type_obj
)
->
tp_dict
,
PYIDENT
(
"__setstate__"
),
setstate_cython
);
if
(
unlikely
(
ret
<
0
))
goto
BAD
;
ret
=
PyDict_SetItem
(((
PyTypeObject
*
)
type_obj
)
->
tp_dict
,
PYIDENT
(
"__setstate__"
),
setstate_cython
);
if
(
unlikely
(
ret
<
0
))
goto
__PYX_
BAD
;
ret
=
PyDict_DelItem
(((
PyTypeObject
*
)
type_obj
)
->
tp_dict
,
PYIDENT
(
"__setstate_cython__"
));
if
(
unlikely
(
ret
<
0
))
goto
BAD
;
ret
=
PyDict_DelItem
(((
PyTypeObject
*
)
type_obj
)
->
tp_dict
,
PYIDENT
(
"__setstate_cython__"
));
if
(
unlikely
(
ret
<
0
))
goto
__PYX_
BAD
;
}
}
PyType_Modified
((
PyTypeObject
*
)
type_obj
);
PyType_Modified
((
PyTypeObject
*
)
type_obj
);
}
}
}
}
goto
GOOD
;
goto
__PYX_
GOOD
;
BAD:
__PYX_
BAD:
if
(
!
PyErr_Occurred
())
if
(
!
PyErr_Occurred
())
PyErr_Format
(
PyExc_RuntimeError
,
"Unable to initialize pickling for %s"
,
((
PyTypeObject
*
)
type_obj
)
->
tp_name
);
PyErr_Format
(
PyExc_RuntimeError
,
"Unable to initialize pickling for %s"
,
((
PyTypeObject
*
)
type_obj
)
->
tp_name
);
ret
=
-
1
;
ret
=
-
1
;
GOOD:
__PYX_
GOOD:
#if !CYTHON_USE_PYTYPE_LOOKUP
#if !CYTHON_USE_PYTYPE_LOOKUP
Py_XDECREF
(
object_reduce
);
Py_XDECREF
(
object_reduce
);
Py_XDECREF
(
object_reduce_ex
);
Py_XDECREF
(
object_reduce_ex
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment