@@ -9,8 +9,8 @@ extern "C" {
99#endif
1010
1111/* Forward declarations */
12- typedef struct _PyArgv _PyArgv ;
13- typedef struct pyruntimestate _PyRuntimeState ;
12+ struct _PyArgv ;
13+ struct pyruntimestate ;
1414
1515/* True if the main interpreter thread exited due to an unhandled
1616 * KeyboardInterrupt exception, suggesting the user pressed ^C. */
@@ -38,14 +38,14 @@ extern PyStatus _PyFaulthandler_Init(int enable);
3838extern int _PyTraceMalloc_Init (int enable );
3939extern PyObject * _PyBuiltin_Init (PyThreadState * tstate );
4040extern PyStatus _PySys_Create (
41- _PyRuntimeState * runtime ,
41+ struct pyruntimestate * runtime ,
4242 PyThreadState * tstate ,
4343 PyObject * * sysmod_p );
4444extern PyStatus _PySys_SetPreliminaryStderr (PyObject * sysdict );
4545extern PyStatus _PySys_ReadPreinitWarnOptions (PyWideStringList * options );
4646extern PyStatus _PySys_ReadPreinitXOptions (PyConfig * config );
4747extern int _PySys_InitMain (
48- _PyRuntimeState * runtime ,
48+ struct pyruntimestate * runtime ,
4949 PyThreadState * tstate );
5050extern PyStatus _PyImport_Init (PyThreadState * tstate );
5151extern PyStatus _PyExc_Init (void );
@@ -78,7 +78,7 @@ extern void PyOS_FiniInterrupts(void);
7878extern void _PyExc_Fini (void );
7979extern void _PyImport_Fini (void );
8080extern void _PyImport_Fini2 (void );
81- extern void _PyGC_Fini (_PyRuntimeState * runtime );
81+ extern void _PyGC_Fini (struct pyruntimestate * runtime );
8282extern void _PyType_Fini (void );
8383extern void _Py_HashRandomization_Fini (void );
8484extern void _PyUnicode_Fini (void );
@@ -89,18 +89,18 @@ extern void _PyTraceMalloc_Fini(void);
8989extern void _PyWarnings_Fini (PyInterpreterState * interp );
9090
9191extern void _PyGILState_Init (
92- _PyRuntimeState * runtime ,
92+ struct pyruntimestate * runtime ,
9393 PyThreadState * tstate );
94- extern void _PyGILState_Fini (_PyRuntimeState * runtime );
94+ extern void _PyGILState_Fini (struct pyruntimestate * runtime );
9595
96- PyAPI_FUNC (void ) _PyGC_DumpShutdownStats (_PyRuntimeState * runtime );
96+ PyAPI_FUNC (void ) _PyGC_DumpShutdownStats (struct pyruntimestate * runtime );
9797
9898PyAPI_FUNC (PyStatus ) _Py_PreInitializeFromPyArgv (
9999 const PyPreConfig * src_config ,
100- const _PyArgv * args );
100+ const struct _PyArgv * args );
101101PyAPI_FUNC (PyStatus ) _Py_PreInitializeFromConfig (
102102 const PyConfig * config ,
103- const _PyArgv * args );
103+ const struct _PyArgv * args );
104104
105105
106106PyAPI_FUNC (int ) _Py_HandleSystemExit (int * exitcode_p );
@@ -111,7 +111,7 @@ PyAPI_FUNC(void) _PyErr_Print(PyThreadState *tstate);
111111PyAPI_FUNC (void ) _PyErr_Display (PyObject * file , PyObject * exception ,
112112 PyObject * value , PyObject * tb );
113113
114- PyAPI_FUNC (void ) _PyThreadState_DeleteCurrent (_PyRuntimeState * runtime );
114+ PyAPI_FUNC (void ) _PyThreadState_DeleteCurrent (struct pyruntimestate * runtime );
115115
116116#ifdef __cplusplus
117117}
0 commit comments