bpo-36710: Use tstate in pylifecycle.c (GH-14249) · python/cpython@b45d259
@@ -21,7 +21,7 @@ extern int _Py_SetFileSystemEncoding(
2121const char *encoding,
2222const char *errors);
2323extern void _Py_ClearFileSystemEncoding(void);
24-extern PyStatus _PyUnicode_InitEncodings(PyInterpreterState *interp);
24+extern PyStatus _PyUnicode_InitEncodings(PyThreadState *tstate);
2525#ifdef MS_WINDOWS
2626extern int _PyUnicode_EnableLegacyWindowsFSEncoding(void);
2727#endif
@@ -37,20 +37,20 @@ extern int _PyStructSequence_Init(void);
3737extern int _PyLong_Init(void);
3838extern PyStatus _PyFaulthandler_Init(int enable);
3939extern int _PyTraceMalloc_Init(int enable);
40-extern PyObject * _PyBuiltin_Init(void);
40+extern PyObject * _PyBuiltin_Init(PyThreadState *tstate);
4141extern PyStatus _PySys_Create(
4242_PyRuntimeState *runtime,
43-PyInterpreterState *interp,
43+PyThreadState *tstate,
4444PyObject **sysmod_p);
4545extern PyStatus _PySys_SetPreliminaryStderr(PyObject *sysdict);
4646extern int _PySys_InitMain(
4747_PyRuntimeState *runtime,
4848PyThreadState *tstate);
49-extern PyStatus _PyImport_Init(PyInterpreterState *interp);
49+extern PyStatus _PyImport_Init(PyThreadState *tstate);
5050extern PyStatus _PyExc_Init(void);
5151extern PyStatus _PyErr_Init(void);
5252extern PyStatus _PyBuiltins_AddExceptions(PyObject * bltinmod);
53-extern PyStatus _PyImportHooks_Init(void);
53+extern PyStatus _PyImportHooks_Init(PyThreadState *tstate);
5454extern int _PyFloat_Init(void);
5555extern PyStatus _Py_HashRandomization_Init(const PyConfig *);
5656@@ -88,7 +88,6 @@ extern void _PyWarnings_Fini(PyInterpreterState *interp);
88888989extern void _PyGILState_Init(
9090_PyRuntimeState *runtime,
91-PyInterpreterState *interp,
9291PyThreadState *tstate);
9392extern void _PyGILState_Fini(_PyRuntimeState *runtime);
9493