Skip to content

Commit 64920a8

Browse files
committed
Revert "Move to pycore_pystate.h"
This reverts commit 6c4c52b.
1 parent 6c4c52b commit 64920a8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Include/cpython/pystate.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,10 @@ PyAPI_FUNC(void) PyInterpreterWeakRef_Close(PyInterpreterWeakRef wref);
300300
ref = 0; \
301301
} while (0)
302302

303+
// Exports for '_testcapi' shared extension
304+
PyAPI_FUNC(Py_ssize_t) _PyInterpreterState_Refcount(PyInterpreterState *interp);
305+
PyAPI_FUNC(int) _PyInterpreterState_Incref(PyInterpreterState *interp);
306+
303307
PyAPI_FUNC(int) PyThreadState_Ensure(PyInterpreterRef interp_ref);
304308

305309
PyAPI_FUNC(void) PyThreadState_Release(void);

Include/internal/pycore_pystate.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,6 @@ _Py_RecursionLimit_GetMargin(PyThreadState *tstate)
328328
return Py_ARITHMETIC_RIGHT_SHIFT(intptr_t, here_addr - (intptr_t)_tstate->c_stack_soft_limit, PYOS_STACK_MARGIN_SHIFT);
329329
}
330330

331-
// Exports for '_testcapi' shared extension
332-
PyAPI_FUNC(Py_ssize_t) _PyInterpreterState_Refcount(PyInterpreterState *interp);
333-
PyAPI_FUNC(int) _PyInterpreterState_Incref(PyInterpreterState *interp);
334-
335331
#ifdef __cplusplus
336332
}
337333
#endif

0 commit comments

Comments
 (0)