mirror of
https://github.com/johndoe6345789/typthon.git
synced 2026-04-24 13:45:05 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user