@@ -430,7 +430,7 @@ interpreter_update_config(PyThreadState *tstate, int only_update_path_config)
430430 }
431431 }
432432
433- if (_Py_IsMainInterpreter (tstate )) {
433+ if (_Py_IsMainInterpreter (tstate -> interp )) {
434434 PyStatus status = _PyConfig_WritePathConfig (config );
435435 if (_PyStatus_EXCEPTION (status )) {
436436 _PyErr_SetFromPyStatus (status );
@@ -627,7 +627,7 @@ static PyStatus
627627pycore_init_types (PyThreadState * tstate )
628628{
629629 PyStatus status ;
630- int is_main_interp = _Py_IsMainInterpreter (tstate );
630+ int is_main_interp = _Py_IsMainInterpreter (tstate -> interp );
631631
632632 status = _PyGC_Init (tstate );
633633 if (_PyStatus_EXCEPTION (status )) {
@@ -1003,7 +1003,7 @@ init_interp_main(PyThreadState *tstate)
10031003 assert (!_PyErr_Occurred (tstate ));
10041004
10051005 PyStatus status ;
1006- int is_main_interp = _Py_IsMainInterpreter (tstate );
1006+ int is_main_interp = _Py_IsMainInterpreter (tstate -> interp );
10071007 PyInterpreterState * interp = tstate -> interp ;
10081008 const PyConfig * config = _PyInterpreterState_GetConfig (interp );
10091009
@@ -1597,7 +1597,7 @@ finalize_interp_types(PyThreadState *tstate)
15971597static void
15981598finalize_interp_clear (PyThreadState * tstate )
15991599{
1600- int is_main_interp = _Py_IsMainInterpreter (tstate );
1600+ int is_main_interp = _Py_IsMainInterpreter (tstate -> interp );
16011601
16021602 /* Clear interpreter state and all thread states */
16031603 _PyInterpreterState_Clear (tstate );
@@ -1622,7 +1622,7 @@ finalize_interp_clear(PyThreadState *tstate)
16221622static void
16231623finalize_interp_delete (PyThreadState * tstate )
16241624{
1625- if (_Py_IsMainInterpreter (tstate )) {
1625+ if (_Py_IsMainInterpreter (tstate -> interp )) {
16261626 /* Cleanup auto-thread-state */
16271627 _PyGILState_Fini (tstate );
16281628 }
0 commit comments