File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -337,20 +337,4 @@ PyAPI_FUNC(void) _PyInterpreterState_SetEvalFrameAllowSpecialization(
337337 PyInterpreterState * interp ,
338338 int allow_specialization );
339339PyAPI_FUNC (int ) _PyInterpreterState_IsSpecializationEnabled (
340- PyInterpreterState * interp );
341-
342- /* PEP 788 -- Interpreter guards and views. */
343-
344- typedef struct _PyInterpreterGuard PyInterpreterGuard ;
345- typedef struct _PyInterpreterView PyInterpreterView ;
346-
347- PyAPI_FUNC (PyInterpreterGuard * ) PyInterpreterGuard_FromCurrent (void );
348- PyAPI_FUNC (void ) PyInterpreterGuard_Close (PyInterpreterGuard * guard );
349- PyAPI_FUNC (PyInterpreterGuard * ) PyInterpreterGuard_FromView (PyInterpreterView * view );
350-
351- PyAPI_FUNC (PyInterpreterView * ) PyInterpreterView_FromCurrent (void );
352- PyAPI_FUNC (void ) PyInterpreterView_Close (PyInterpreterView * view );
353- PyAPI_FUNC (PyInterpreterView * ) PyInterpreterView_FromMain (void );
354-
355- PyAPI_FUNC (PyThreadState * ) PyThreadState_Ensure (PyInterpreterGuard * guard );
356- PyAPI_FUNC (void ) PyThreadState_Release (PyThreadState * tstate );
340+ PyInterpreterState * interp );
Original file line number Diff line number Diff line change @@ -120,6 +120,22 @@ PyAPI_FUNC(void) PyGILState_Release(PyGILState_STATE);
120120PyAPI_FUNC (PyThreadState * ) PyGILState_GetThisThreadState (void );
121121
122122
123+ /* PEP 788 -- Interpreter guards and views. */
124+
125+ typedef struct _PyInterpreterGuard PyInterpreterGuard ;
126+ typedef struct _PyInterpreterView PyInterpreterView ;
127+
128+ PyAPI_FUNC (PyInterpreterGuard * ) PyInterpreterGuard_FromCurrent (void );
129+ PyAPI_FUNC (void ) PyInterpreterGuard_Close (PyInterpreterGuard * guard );
130+ PyAPI_FUNC (PyInterpreterGuard * ) PyInterpreterGuard_FromView (PyInterpreterView * view );
131+
132+ PyAPI_FUNC (PyInterpreterView * ) PyInterpreterView_FromCurrent (void );
133+ PyAPI_FUNC (void ) PyInterpreterView_Close (PyInterpreterView * view );
134+ PyAPI_FUNC (PyInterpreterView * ) PyInterpreterView_FromMain (void );
135+
136+ PyAPI_FUNC (PyThreadState * ) PyThreadState_Ensure (PyInterpreterGuard * guard );
137+ PyAPI_FUNC (void ) PyThreadState_Release (PyThreadState * tstate );
138+
123139#ifndef Py_LIMITED_API
124140# define Py_CPYTHON_PYSTATE_H
125141# include "cpython/pystate.h"
You can’t perform that action at this time.
0 commit comments