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:
@@ -491,13 +491,13 @@ static TyMemberDef weakref_members[] = {
|
||||
|
||||
static TyMethodDef weakref_methods[] = {
|
||||
{"__class_getitem__", Ty_GenericAlias,
|
||||
METH_O|METH_CLASS, PyDoc_STR("See PEP 585")},
|
||||
METH_O|METH_CLASS, TyDoc_STR("See PEP 585")},
|
||||
{NULL} /* Sentinel */
|
||||
};
|
||||
|
||||
TyTypeObject
|
||||
_TyWeakref_RefType = {
|
||||
PyVarObject_HEAD_INIT(&TyType_Type, 0)
|
||||
TyVarObject_HEAD_INIT(&TyType_Type, 0)
|
||||
.tp_name = "weakref.ReferenceType",
|
||||
.tp_basicsize = sizeof(PyWeakReference),
|
||||
.tp_dealloc = weakref_dealloc,
|
||||
@@ -850,7 +850,7 @@ static PyMappingMethods proxy_as_mapping = {
|
||||
|
||||
TyTypeObject
|
||||
_TyWeakref_ProxyType = {
|
||||
PyVarObject_HEAD_INIT(&TyType_Type, 0)
|
||||
TyVarObject_HEAD_INIT(&TyType_Type, 0)
|
||||
"weakref.ProxyType",
|
||||
sizeof(PyWeakReference),
|
||||
0,
|
||||
@@ -885,7 +885,7 @@ _TyWeakref_ProxyType = {
|
||||
|
||||
TyTypeObject
|
||||
_TyWeakref_CallableProxyType = {
|
||||
PyVarObject_HEAD_INIT(&TyType_Type, 0)
|
||||
TyVarObject_HEAD_INIT(&TyType_Type, 0)
|
||||
"weakref.CallableProxyType",
|
||||
sizeof(PyWeakReference),
|
||||
0,
|
||||
@@ -1101,7 +1101,7 @@ PyUnstable_Object_ClearWeakRefsNoCallbacks(TyObject *obj)
|
||||
* or anything else.
|
||||
*/
|
||||
void
|
||||
_PyStaticType_ClearWeakRefs(PyInterpreterState *interp, TyTypeObject *type)
|
||||
_PyStaticType_ClearWeakRefs(TyInterpreterState *interp, TyTypeObject *type)
|
||||
{
|
||||
managed_static_type_state *state = _PyStaticType_GetState(interp, type);
|
||||
TyObject **list = _PyStaticType_GET_WEAKREFS_LISTPTR(state);
|
||||
|
||||
Reference in New Issue
Block a user