forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpo-36097: Use only public C-API in the_xxsubinterpreters module (add…
…ing as necessary). (pythongh-12359)
- Loading branch information
1 parent
842a2f0
commit c11183c
Showing
12 changed files
with
483 additions
and
393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef Py_CPYTHON_INTERPRETERIDOBJECT_H | ||
# error "this header file must not be included directly" | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/* Interpreter ID Object */ | ||
|
||
PyAPI_DATA(PyTypeObject) _PyInterpreterID_Type; | ||
|
||
PyAPI_FUNC(PyObject *) _PyInterpreterID_New(int64_t); | ||
PyAPI_FUNC(PyObject *) _PyInterpreterState_GetIDObject(PyInterpreterState *); | ||
PyAPI_FUNC(PyInterpreterState *) _PyInterpreterID_LookUp(PyObject *); | ||
|
||
PyAPI_FUNC(int64_t) _Py_CoerceID(PyObject *); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef Py_INTERPRETERIDOBJECT_H | ||
#define Py_INTERPRETERIDOBJECT_H | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#ifndef Py_LIMITED_API | ||
# define Py_CPYTHON_INTERPRETERIDOBJECT_H | ||
# include "cpython/interpreteridobject.h" | ||
# undef Py_CPYTHON_INTERPRETERIDOBJECT_H | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
#endif /* !Py_INTERPRETERIDOBJECT_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.