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:
@@ -556,7 +556,7 @@ _zstd_set_parameter_types_impl(TyObject *module, TyObject *c_parameter_type,
|
||||
Ty_INCREF(d_parameter_type);
|
||||
Ty_XSETREF(mod_state->DParameter_type, (TyTypeObject*)d_parameter_type);
|
||||
|
||||
Ty_RETURN_NONE;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
static TyMethodDef _zstd_methods[] = {
|
||||
|
||||
2
Modules/_zstd/clinic/decompressor.c.h
generated
2
Modules/_zstd/clinic/decompressor.c.h
generated
@@ -111,7 +111,7 @@ static TyObject *
|
||||
_zstd_ZstdDecompressor_unused_data_get_impl(ZstdDecompressor *self);
|
||||
|
||||
static TyObject *
|
||||
_zstd_ZstdDecompressor_unused_data_get(TyObject *self, void *Ty_UNUSED(context))
|
||||
_zstd_ZstdDecompressor_unused_data_get(TyObject *self, void *Py_UNUSED(context))
|
||||
{
|
||||
return _zstd_ZstdDecompressor_unused_data_get_impl((ZstdDecompressor *)self);
|
||||
}
|
||||
|
||||
8
Modules/_zstd/clinic/zstddict.c.h
generated
8
Modules/_zstd/clinic/zstddict.c.h
generated
@@ -114,7 +114,7 @@ static TyObject *
|
||||
_zstd_ZstdDict_dict_content_get_impl(ZstdDict *self);
|
||||
|
||||
static TyObject *
|
||||
_zstd_ZstdDict_dict_content_get(TyObject *self, void *Ty_UNUSED(context))
|
||||
_zstd_ZstdDict_dict_content_get(TyObject *self, void *Py_UNUSED(context))
|
||||
{
|
||||
return _zstd_ZstdDict_dict_content_get_impl((ZstdDict *)self);
|
||||
}
|
||||
@@ -150,7 +150,7 @@ static TyObject *
|
||||
_zstd_ZstdDict_as_digested_dict_get_impl(ZstdDict *self);
|
||||
|
||||
static TyObject *
|
||||
_zstd_ZstdDict_as_digested_dict_get(TyObject *self, void *Ty_UNUSED(context))
|
||||
_zstd_ZstdDict_as_digested_dict_get(TyObject *self, void *Py_UNUSED(context))
|
||||
{
|
||||
return _zstd_ZstdDict_as_digested_dict_get_impl((ZstdDict *)self);
|
||||
}
|
||||
@@ -184,7 +184,7 @@ static TyObject *
|
||||
_zstd_ZstdDict_as_undigested_dict_get_impl(ZstdDict *self);
|
||||
|
||||
static TyObject *
|
||||
_zstd_ZstdDict_as_undigested_dict_get(TyObject *self, void *Ty_UNUSED(context))
|
||||
_zstd_ZstdDict_as_undigested_dict_get(TyObject *self, void *Py_UNUSED(context))
|
||||
{
|
||||
return _zstd_ZstdDict_as_undigested_dict_get_impl((ZstdDict *)self);
|
||||
}
|
||||
@@ -218,7 +218,7 @@ static TyObject *
|
||||
_zstd_ZstdDict_as_prefix_get_impl(ZstdDict *self);
|
||||
|
||||
static TyObject *
|
||||
_zstd_ZstdDict_as_prefix_get(TyObject *self, void *Ty_UNUSED(context))
|
||||
_zstd_ZstdDict_as_prefix_get(TyObject *self, void *Py_UNUSED(context))
|
||||
{
|
||||
return _zstd_ZstdDict_as_prefix_get_impl((ZstdDict *)self);
|
||||
}
|
||||
|
||||
@@ -737,7 +737,7 @@ _zstd_ZstdCompressor_set_pledged_input_size_impl(ZstdCompressor *self,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Ty_RETURN_NONE;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
static TyMethodDef ZstdCompressor_methods[] = {
|
||||
@@ -755,7 +755,7 @@ PyDoc_STRVAR(ZstdCompressor_last_mode_doc,
|
||||
|
||||
static TyMemberDef ZstdCompressor_members[] = {
|
||||
{"last_mode", Ty_T_INT, offsetof(ZstdCompressor, last_mode),
|
||||
Ty_READONLY, ZstdCompressor_last_mode_doc},
|
||||
Py_READONLY, ZstdCompressor_last_mode_doc},
|
||||
{NULL}
|
||||
};
|
||||
|
||||
|
||||
@@ -668,9 +668,9 @@ PyDoc_STRVAR(ZstdDecompressor_needs_input_doc,
|
||||
|
||||
static TyMemberDef ZstdDecompressor_members[] = {
|
||||
{"eof", Ty_T_BOOL, offsetof(ZstdDecompressor, eof),
|
||||
Ty_READONLY, ZstdDecompressor_eof_doc},
|
||||
Py_READONLY, ZstdDecompressor_eof_doc},
|
||||
{"needs_input", Ty_T_BOOL, offsetof(ZstdDecompressor, needs_input),
|
||||
Ty_READONLY, ZstdDecompressor_needs_input_doc},
|
||||
Py_READONLY, ZstdDecompressor_needs_input_doc},
|
||||
{NULL}
|
||||
};
|
||||
|
||||
|
||||
@@ -134,7 +134,7 @@ ZstdDict_repr(TyObject *ob)
|
||||
}
|
||||
|
||||
static TyMemberDef ZstdDict_members[] = {
|
||||
{"dict_id", Ty_T_UINT, offsetof(ZstdDict, dict_id), Ty_READONLY, ZstdDict_dictid_doc},
|
||||
{"dict_id", Ty_T_UINT, offsetof(ZstdDict, dict_id), Py_READONLY, ZstdDict_dictid_doc},
|
||||
{NULL}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user