Skip to content

Commit 8bf1899

Browse files
committed
Fix compilation errors.
1 parent 878803e commit 8bf1899

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

Include/cpython/pystate.h

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -337,20 +337,4 @@ PyAPI_FUNC(void) _PyInterpreterState_SetEvalFrameAllowSpecialization(
337337
PyInterpreterState *interp,
338338
int allow_specialization);
339339
PyAPI_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);

Include/pystate.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,22 @@ PyAPI_FUNC(void) PyGILState_Release(PyGILState_STATE);
120120
PyAPI_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"

0 commit comments

Comments
 (0)