summaryrefslogtreecommitdiff
path: root/Cython/Includes/cpython
diff options
context:
space:
mode:
authorJeroen Demeyer <jdemeyer@cage.ugent.be>2017-11-06 14:39:15 +0100
committerJeroen Demeyer <jdemeyer@cage.ugent.be>2017-11-13 12:05:22 +0100
commit8f0caeb6450ad62c59995580709803aa3984ccb7 (patch)
tree776bbc9e9c9ae5950471bd633a6f3856f8d890e8 /Cython/Includes/cpython
parent65ba9eec9adbabc385d88882b7d5fbd2b6292cc7 (diff)
downloadcython-8f0caeb6450ad62c59995580709803aa3984ccb7.tar.gz
Add declaration for tp_free
Diffstat (limited to 'Cython/Includes/cpython')
-rw-r--r--Cython/Includes/cpython/object.pxd2
1 files changed, 2 insertions, 0 deletions
diff --git a/Cython/Includes/cpython/object.pxd b/Cython/Includes/cpython/object.pxd
index 23bf35947..2d8deca9e 100644
--- a/Cython/Includes/cpython/object.pxd
+++ b/Cython/Includes/cpython/object.pxd
@@ -30,6 +30,7 @@ cdef extern from "Python.h":
ctypedef void (*destructor)(PyObject*)
ctypedef int (*visitproc)(PyObject*, void *) except -1
ctypedef int (*traverseproc)(PyObject*, visitproc, void*) except -1
+ ctypedef void (*freefunc)(void*)
ctypedef object (*descrgetfunc)(object, object, object)
ctypedef int (*descrsetfunc)(object, object, object) except -1
@@ -46,6 +47,7 @@ cdef extern from "Python.h":
destructor tp_dealloc
traverseproc tp_traverse
inquiry tp_clear
+ freefunc tp_free
ternaryfunc tp_call
hashfunc tp_hash