Fix more Py_ patterns - preconfig, stat, slots, strings

- Fixed PyPreConfig → TyPreConfig
- Fixed _Py_PreInitializeFromPyArgv → _Ty_PreInitializeFromPyArgv
- Fixed struct _Py_stat_struct → struct _Ty_stat_struct
- Fixed _Py_fstat_noraise → _Ty_fstat_noraise
- Fixed _Py_NO_RETURN → _Ty_NO_RETURN
- Fixed Py_tp_* slot patterns (tp_free, tp_dealloc, tp_repr, etc.)
- Fixed Py_mod_* module slot patterns
- Fixed Py_MAX_SCRIPT_PATH_SIZE, Py_RTFLAGS_FORK
- Fixed _Py_DECLARE_STR, _Py_STR → _Ty_DECLARE_STR, _Ty_STR

Build progressing further.

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-29 19:01:05 +00:00
parent 4880786dfa
commit a4901966cb
21 changed files with 151 additions and 151 deletions

View File

@@ -3405,7 +3405,7 @@ _TySys_SetFlagInt(Ty_ssize_t pos, int value)
static int
set_flags_from_config(TyInterpreterState *interp, TyObject *flags)
{
const PyPreConfig *preconfig = &interp->runtime->preconfig;
const TyPreConfig *preconfig = &interp->runtime->preconfig;
const PyConfig *config = _TyInterpreterState_GetConfig(interp);
// _TySys_UpdateConfig() modifies sys.flags in-place: