mirror of
https://github.com/johndoe6345789/typthon.git
synced 2026-05-01 09:05:08 +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:
@@ -286,7 +286,7 @@ enum_next(TyObject *op)
|
||||
}
|
||||
|
||||
static TyObject *
|
||||
enum_reduce(TyObject *op, TyObject *Ty_UNUSED(ignored))
|
||||
enum_reduce(TyObject *op, TyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
enumobject *en = _enumobject_CAST(op);
|
||||
TyObject *result;
|
||||
@@ -475,7 +475,7 @@ reversed_next(TyObject *op)
|
||||
}
|
||||
|
||||
static TyObject *
|
||||
reversed_len(TyObject *op, TyObject *Ty_UNUSED(ignored))
|
||||
reversed_len(TyObject *op, TyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
reversedobject *ro = _reversedobject_CAST(op);
|
||||
Ty_ssize_t position, seqsize;
|
||||
@@ -494,7 +494,7 @@ reversed_len(TyObject *op, TyObject *Ty_UNUSED(ignored))
|
||||
PyDoc_STRVAR(length_hint_doc, "Private method returning an estimate of len(list(it)).");
|
||||
|
||||
static TyObject *
|
||||
reversed_reduce(TyObject *op, TyObject *Ty_UNUSED(ignored))
|
||||
reversed_reduce(TyObject *op, TyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
reversedobject *ro = _reversedobject_CAST(op);
|
||||
Ty_ssize_t index = FT_ATOMIC_LOAD_SSIZE_RELAXED(ro->index);
|
||||
@@ -527,7 +527,7 @@ reversed_setstate(TyObject *op, TyObject *state)
|
||||
index = n-1;
|
||||
FT_ATOMIC_STORE_SSIZE_RELAXED(ro->index, index);
|
||||
}
|
||||
Ty_RETURN_NONE;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(setstate_doc, "Set state information for unpickling.");
|
||||
|
||||
Reference in New Issue
Block a user