mirror of
https://github.com/johndoe6345789/typthon.git
synced 2026-04-24 13:45:05 +00:00
Fix incorrect replacements in Py_ to Ty_ renaming
Fixed several macros and constants that should not have been renamed: - _Py_CAST, _Py_NULL, _Py_RVALUE (internal utility macros) - Py_UNUSED (unused parameter macro) - Py_EQ, Py_NE, Py_LT, Py_LE, Py_GT, Py_GE (comparison constants) - Py_RETURN_* macros (NONE, TRUE, FALSE, NOTIMPLEMENTED, RICHCOMPARE) - Py_READONLY, Py_ULL, Py_CONTEXT_SWITCHED - TyGC_Head in generated clinic files Build is still in progress with some remaining issues to resolve. Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -197,14 +197,14 @@ ste_dealloc(TyObject *op)
|
||||
#define OFF(x) offsetof(PySTEntryObject, x)
|
||||
|
||||
static TyMemberDef ste_memberlist[] = {
|
||||
{"id", _Ty_T_OBJECT, OFF(ste_id), Ty_READONLY},
|
||||
{"name", _Ty_T_OBJECT, OFF(ste_name), Ty_READONLY},
|
||||
{"symbols", _Ty_T_OBJECT, OFF(ste_symbols), Ty_READONLY},
|
||||
{"varnames", _Ty_T_OBJECT, OFF(ste_varnames), Ty_READONLY},
|
||||
{"children", _Ty_T_OBJECT, OFF(ste_children), Ty_READONLY},
|
||||
{"nested", Ty_T_INT, OFF(ste_nested), Ty_READONLY},
|
||||
{"type", Ty_T_INT, OFF(ste_type), Ty_READONLY},
|
||||
{"lineno", Ty_T_INT, OFF(ste_loc.lineno), Ty_READONLY},
|
||||
{"id", _Ty_T_OBJECT, OFF(ste_id), Py_READONLY},
|
||||
{"name", _Ty_T_OBJECT, OFF(ste_name), Py_READONLY},
|
||||
{"symbols", _Ty_T_OBJECT, OFF(ste_symbols), Py_READONLY},
|
||||
{"varnames", _Ty_T_OBJECT, OFF(ste_varnames), Py_READONLY},
|
||||
{"children", _Ty_T_OBJECT, OFF(ste_children), Py_READONLY},
|
||||
{"nested", Ty_T_INT, OFF(ste_nested), Py_READONLY},
|
||||
{"type", Ty_T_INT, OFF(ste_type), Py_READONLY},
|
||||
{"lineno", Ty_T_INT, OFF(ste_loc.lineno), Py_READONLY},
|
||||
{NULL}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user