Commit b89ca8ea authored by Jeroen Demeyer's avatar Jeroen Demeyer Committed by Stefan Behnel

Add tp_dict and tp_descr_* declarations

parent 23cf4735
......@@ -31,6 +31,9 @@ cdef extern from "Python.h":
ctypedef int (*visitproc)(PyObject*, void *)
ctypedef int (*traverseproc)(PyObject*, visitproc, void*)
ctypedef object (*descrgetfunc)(object, object, object)
ctypedef int (*descrsetfunc)(object, object, object) except -1
ctypedef struct PyTypeObject:
const char* tp_name
const char* tp_doc
......@@ -53,6 +56,10 @@ cdef extern from "Python.h":
richcmpfunc tp_richcompare
PyTypeObject* tp_base
PyObject* tp_dict
descrgetfunc tp_descr_get
descrsetfunc tp_descr_set
ctypedef struct PyObject:
Py_ssize_t ob_refcnt
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment