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

@@ -5,7 +5,7 @@
#include "pycore_call.h" // _TyObject_CallMethodFormat()
#include "pycore_fileutils.h" // _Ty_BEGIN_SUPPRESS_IPH
#include "pycore_frame.h" // PyFrameObject
#include "pycore_interp.h" // PyInterpreterState.gc
#include "pycore_interp.h" // TyInterpreterState.gc
#include "pycore_interpframe.h" // _TyFrame_GetCode()
#include "pycore_pyerrors.h" // _TyErr_GetRaisedException()
#include "pycore_pystate.h" // _TyThreadState_GET()
@@ -260,7 +260,7 @@ tb_clear(TyObject *op)
}
TyTypeObject PyTraceBack_Type = {
PyVarObject_HEAD_INIT(&TyType_Type, 0)
TyVarObject_HEAD_INIT(&TyType_Type, 0)
"traceback",
sizeof(PyTracebackObject),
0,
@@ -1030,7 +1030,7 @@ tstate_is_freed(TyThreadState *tstate)
static int
interp_is_freed(PyInterpreterState *interp)
interp_is_freed(TyInterpreterState *interp)
{
return _TyMem_IsPtrFreed(interp);
}
@@ -1154,7 +1154,7 @@ write_thread_id(int fd, TyThreadState *tstate, int is_current)
The caller is responsible to call TyErr_CheckSignals() to call Python signal
handlers if signals were received. */
const char*
_Ty_DumpTracebackThreads(int fd, PyInterpreterState *interp,
_Ty_DumpTracebackThreads(int fd, TyInterpreterState *interp,
TyThreadState *current_tstate)
{
if (current_tstate == NULL) {