diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2018-08-25 17:37:39 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2018-08-25 17:37:39 +0200 |
commit | c77672473563ff9dea569abbf0a69bd197a831a5 (patch) | |
tree | 7768e526bba4ee81648b92422b67e919926d9f46 | |
parent | 5d65746e776ef5cbe8c4df36336ab9cc16cf306d (diff) | |
download | cython-c77672473563ff9dea569abbf0a69bd197a831a5.tar.gz |
Add C-API function declaration for PyInterpreterState_GetID(), which is new on Py3.7.
-rw-r--r-- | Cython/Includes/cpython/pystate.pxd | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Cython/Includes/cpython/pystate.pxd b/Cython/Includes/cpython/pystate.pxd index 9c3b4a0ed..4dd2e7dee 100644 --- a/Cython/Includes/cpython/pystate.pxd +++ b/Cython/Includes/cpython/pystate.pxd @@ -7,6 +7,8 @@ cdef extern from "Python.h": # We make these an opaque types. If the user wants specific attributes, # they can be declared manually. + ctypedef long PY_INT64_T # FIXME: Py2.7+, not defined here but used here + ctypedef struct PyInterpreterState: pass @@ -39,6 +41,7 @@ cdef extern from "Python.h": PyInterpreterState * PyInterpreterState_New() void PyInterpreterState_Clear(PyInterpreterState *) void PyInterpreterState_Delete(PyInterpreterState *) + PY_INT64_T PyInterpreterState_GetID(PyInterpreterState *) PyThreadState * PyThreadState_New(PyInterpreterState *) void PyThreadState_Clear(PyThreadState *) |