diff options
author | Victor Stinner <vstinner@python.org> | 2023-07-22 19:31:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-22 19:31:55 (GMT) |
commit | 22422e9d1a50b4970bc6957a88569618d579c47f (patch) | |
tree | 63af9e1bf2bc7d2fe10a6c3cd981d866a38eb2fd /Objects | |
parent | f8b7fe2f2647813ae8249675a80e59c117d30fe1 (diff) | |
download | cpython-22422e9d1a50b4970bc6957a88569618d579c47f.zip cpython-22422e9d1a50b4970bc6957a88569618d579c47f.tar.gz cpython-22422e9d1a50b4970bc6957a88569618d579c47f.tar.bz2 |
gh-106320: Remove private _PyInterpreterID C API (#107053)
Move the private _PyInterpreterID C API to the internal C API: add a
new pycore_interp_id.h header file.
Remove Include/interpreteridobject.h and
Include/cpython/interpreteridobject.h header files.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/interpreteridobject.c | 2 | ||||
-rw-r--r-- | Objects/object.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Objects/interpreteridobject.c b/Objects/interpreteridobject.c index 4623910..7a3e245 100644 --- a/Objects/interpreteridobject.c +++ b/Objects/interpreteridobject.c @@ -3,7 +3,7 @@ #include "Python.h" #include "pycore_abstract.h" // _PyIndex_Check() #include "pycore_interp.h" // _PyInterpreterState_LookUpID() -#include "interpreteridobject.h" +#include "pycore_interp_id.h" // _PyInterpreterID_Type typedef struct interpid { diff --git a/Objects/object.c b/Objects/object.c index 3b8839b..93396bf 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -8,16 +8,16 @@ #include "pycore_dict.h" // _PyObject_MakeDictFromInstanceAttributes() #include "pycore_floatobject.h" // _PyFloat_DebugMallocStats() #include "pycore_initconfig.h" // _PyStatus_EXCEPTION() +#include "pycore_interp_id.h" // _PyInterpreterID_Type #include "pycore_namespace.h" // _PyNamespace_Type #include "pycore_object.h" // PyAPI_DATA() _Py_SwappedOp definition #include "pycore_pyerrors.h" // _PyErr_Occurred() #include "pycore_pymem.h" // _PyMem_IsPtrFreed() #include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_symtable.h" // PySTEntry_Type -#include "pycore_typevarobject.h" // _PyTypeAlias_Type, _Py_initialize_generic #include "pycore_typeobject.h" // _PyBufferWrapper_Type +#include "pycore_typevarobject.h" // _PyTypeAlias_Type, _Py_initialize_generic #include "pycore_unionobject.h" // _PyUnion_Type -#include "interpreteridobject.h" // _PyInterpreterID_Type #ifdef Py_LIMITED_API // Prevent recursive call _Py_IncRef() <=> Py_INCREF() |