Fix more missed Py_ patterns - opcode, thread, exception

Fixed additional patterns:
- _PyOpcode_* → _TyOpcode_* (all opcode metadata)
- _PyUOpName → _TyUOpName
- _PyFunction_* → _TyFunction_*
- _PyListIterObject → _TyListIterObject
- _Py_T_OBJECT → _Ty_T_OBJECT
- Py_BEGIN_ALLOW_THREADS, Py_END_ALLOW_THREADS → Ty_*
- PyDoc_STRVAR, PyDoc_STR → TyDoc_*
- PyInterpreterState, PyThread_*, PyTime_t → Ty*
- PyStructSequence_* → TyStructSequence_*
- PyLockStatus → TyLockStatus
- PyVarObject_HEAD_INIT → TyVarObject_HEAD_INIT
- PyBaseExceptionObject → TyBaseExceptionObject
- Fixed _PyExc_ → _TyExc_ in exception macros

Build is progressing further.

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-29 18:27:36 +00:00
parent 3ce4b26be2
commit 71cf7bf14f
441 changed files with 7249 additions and 7249 deletions

View File

@@ -16,7 +16,7 @@
#include "pycore_compile.h" // _TyAST_Compile()
#include "pycore_fileutils.h" // _PyFile_Flush
#include "pycore_import.h" // _TyImport_GetImportlibExternalLoader()
#include "pycore_interp.h" // PyInterpreterState.importlib
#include "pycore_interp.h" // TyInterpreterState.importlib
#include "pycore_object.h" // _PyDebug_PrintTotalRefs()
#include "pycore_parser.h" // _TyParser_ASTFromString()
#include "pycore_pyerrors.h" // _TyErr_GetRaisedException()
@@ -435,7 +435,7 @@ maybe_pyc_file(FILE *fp, TyObject *filename, int closeit)
static int
set_main_loader(TyObject *d, TyObject *filename, const char *loader_name)
{
PyInterpreterState *interp = _TyInterpreterState_GET();
TyInterpreterState *interp = _TyInterpreterState_GET();
TyObject *loader_type = _TyImport_GetImportlibExternalLoader(interp,
loader_name);
if (loader_type == NULL) {
@@ -1089,7 +1089,7 @@ print_exception_cause_and_context(struct exception_print_context *ctx,
Ty_DECREF(cause);
return err;
}
if (((PyBaseExceptionObject *)value)->suppress_context) {
if (((TyBaseExceptionObject *)value)->suppress_context) {
return 0;
}
TyObject *context = PyException_GetContext(value);
@@ -1373,7 +1373,7 @@ run_mod(mod_ty mod, TyObject *filename, TyObject *globals, TyObject *locals,
TyThreadState *tstate = _TyThreadState_GET();
TyObject* interactive_filename = filename;
if (interactive_src) {
PyInterpreterState *interp = tstate->interp;
TyInterpreterState *interp = tstate->interp;
if (generate_new_source) {
interactive_filename = TyUnicode_FromFormat(
"%U-%d", filename, interp->_interactive_src_count++);