mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
gh-131238: Remove includes from pycore_interp.h (#131495)
Remove also now unused includes in C files.
This commit is contained in:
parent
34c1ea3109
commit
b69da006a4
27 changed files with 78 additions and 90 deletions
|
|
@ -8,7 +8,7 @@ extern "C" {
|
|||
# error "this header requires Py_BUILD_CORE define"
|
||||
#endif
|
||||
|
||||
#include "pycore_genobject.h" // _PyGen_FetchStopIterationValue
|
||||
#include "pycore_interp_structs.h" // PyInterpreterState
|
||||
|
||||
|
||||
/* interpreter state */
|
||||
|
|
@ -27,7 +27,6 @@ extern "C" {
|
|||
|
||||
extern void _PyInterpreterState_Clear(PyThreadState *tstate);
|
||||
|
||||
|
||||
static inline PyThreadState*
|
||||
_PyInterpreterState_GetFinalizing(PyInterpreterState *interp) {
|
||||
return (PyThreadState*)_Py_atomic_load_ptr_relaxed(&interp->_finalizing);
|
||||
|
|
@ -53,7 +52,6 @@ _PyInterpreterState_SetFinalizing(PyInterpreterState *interp, PyThreadState *tst
|
|||
}
|
||||
|
||||
|
||||
|
||||
// Exports for the _testinternalcapi module.
|
||||
PyAPI_FUNC(int64_t) _PyInterpreterState_ObjectToID(PyObject *);
|
||||
PyAPI_FUNC(PyInterpreterState *) _PyInterpreterState_LookUpID(int64_t);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue