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
Gwenaël Samain
cython
Commits
c7767247
Commit
c7767247
authored
Aug 25, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add C-API function declaration for PyInterpreterState_GetID(), which is new on Py3.7.
parent
5d65746e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
Cython/Includes/cpython/pystate.pxd
Cython/Includes/cpython/pystate.pxd
+3
-0
No files found.
Cython/Includes/cpython/pystate.pxd
View file @
c7767247
...
...
@@ -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
*
)
...
...
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