From c3b9f8c4582882cd1f768b0727eca75475bb4f94 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Thu, 12 Jul 2018 23:40:30 -0700 Subject: track embedded python distribution --- python/gevent/python.pxd | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 python/gevent/python.pxd (limited to 'python/gevent/python.pxd') diff --git a/python/gevent/python.pxd b/python/gevent/python.pxd new file mode 100644 index 0000000..b4635b1 --- /dev/null +++ b/python/gevent/python.pxd @@ -0,0 +1,17 @@ +cdef extern from "Python.h": + struct PyObject: + pass + ctypedef PyObject* PyObjectPtr "PyObject*" + void Py_INCREF(PyObjectPtr) + void Py_DECREF(PyObjectPtr) + void Py_XDECREF(PyObjectPtr) + int Py_ReprEnter(PyObjectPtr) + void Py_ReprLeave(PyObjectPtr) + int PyCallable_Check(PyObjectPtr) + +cdef extern from "frameobject.h": + ctypedef struct PyThreadState: + PyObjectPtr exc_type + PyObjectPtr exc_value + PyObjectPtr exc_traceback + PyThreadState* PyThreadState_GET() -- cgit v1.2.3