Skip to content

Commit 6c4c52b

Browse files
committed
Move to pycore_pystate.h
1 parent 3971408 commit 6c4c52b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Include/cpython/pystate.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,6 @@ 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-
307303
PyAPI_FUNC(int) PyThreadState_Ensure(PyInterpreterRef interp_ref);
308304

309305
PyAPI_FUNC(void) PyThreadState_Release(void);

Include/internal/pycore_pystate.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,10 @@ _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+
331335
#ifdef __cplusplus
332336
}
333337
#endif

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy