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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
cython
Commits
61fdc053
Commit
61fdc053
authored
Aug 04, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix CPython version checking for tp_finalize()
parent
c1a4f414
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
Cython/Utility/CythonFunction.c
Cython/Utility/CythonFunction.c
+2
-2
Cython/Utility/Generator.c
Cython/Utility/Generator.c
+5
-5
Cython/Utility/ModuleSetupCode.c
Cython/Utility/ModuleSetupCode.c
+4
-0
No files found.
Cython/Utility/CythonFunction.c
View file @
61fdc053
...
...
@@ -634,7 +634,7 @@ static PyTypeObject __pyx_CyFunctionType_type = {
#if PY_VERSION_HEX >= 0x02060000
0
,
/*tp_version_tag*/
#endif
#if PY_VERSION_HEX >= 0x03040
a00
#if PY_VERSION_HEX >= 0x03040
0a1
0
,
/*tp_finalize*/
#endif
};
...
...
@@ -1082,7 +1082,7 @@ static PyTypeObject __pyx_FusedFunctionType_type = {
#if PY_VERSION_HEX >= 0x02060000
0
,
/*tp_version_tag*/
#endif
#if PY_VERSION_HEX >= 0x03040
a00
#if PY_VERSION_HEX >= 0x03040
0a1
0
,
/*tp_finalize*/
#endif
};
...
...
Cython/Utility/Generator.c
View file @
61fdc053
...
...
@@ -482,7 +482,7 @@ static void __Pyx_Generator_del(PyObject *self) {
if
(
gen
->
resume_label
<=
0
)
return
;
#if PY_VERSION_HEX < 0x03040
a00
#if PY_VERSION_HEX < 0x03040
0a1
/* Temporarily resurrect the object. */
assert
(
self
->
ob_refcnt
==
0
);
self
->
ob_refcnt
=
1
;
...
...
@@ -501,7 +501,7 @@ static void __Pyx_Generator_del(PyObject *self) {
/* Restore the saved exception. */
__Pyx_ErrRestore
(
error_type
,
error_value
,
error_traceback
);
#if PY_VERSION_HEX < 0x03040
a00
#if PY_VERSION_HEX < 0x03040
0a1
/* Undo the temporary resurrection; can't use DECREF here, it would
* cause a recursive call.
*/
...
...
@@ -582,7 +582,7 @@ static PyTypeObject __pyx_GeneratorType_type = {
0
,
/*tp_getattro*/
0
,
/*tp_setattro*/
0
,
/*tp_as_buffer*/
Py_TPFLAGS_DEFAULT
|
Py_TPFLAGS_HAVE_GC
,
/* tp_flags*/
Py_TPFLAGS_DEFAULT
|
Py_TPFLAGS_HAVE_GC
|
Py_TPFLAGS_HAVE_FINALIZE
,
/* tp_flags*/
0
,
/*tp_doc*/
(
traverseproc
)
__Pyx_Generator_traverse
,
/*tp_traverse*/
0
,
/*tp_clear*/
...
...
@@ -608,7 +608,7 @@ static PyTypeObject __pyx_GeneratorType_type = {
0
,
/*tp_cache*/
0
,
/*tp_subclasses*/
0
,
/*tp_weaklist*/
#if PY_VERSION_HEX >= 0x03040
a00
#if PY_VERSION_HEX >= 0x03040
0a1
0
,
#else
__Pyx_Generator_del
,
/*tp_del*/
...
...
@@ -616,7 +616,7 @@ static PyTypeObject __pyx_GeneratorType_type = {
#if PY_VERSION_HEX >= 0x02060000
0
,
/*tp_version_tag*/
#endif
#if PY_VERSION_HEX >= 0x03040
a00
#if PY_VERSION_HEX >= 0x03040
0a1
__Pyx_Generator_del
,
/*tp_finalize*/
#endif
};
...
...
Cython/Utility/ModuleSetupCode.c
View file @
61fdc053
...
...
@@ -128,6 +128,10 @@
#define Py_TPFLAGS_HAVE_VERSION_TAG 0
#endif
#if PY_VERSION_HEX < 0x030400a1 && !defined(Py_TPFLAGS_HAVE_FINALIZE)
#define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
/* new Py3.3 unicode type (PEP 393) */
#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
#define CYTHON_PEP393_ENABLED 1
...
...
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