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:
@@ -20,7 +20,7 @@ _Ty_DECLARE_STR(anon_unknown, "<unknown>");
|
||||
static void* raw_malloc(size_t size);
|
||||
static void raw_free(void *ptr);
|
||||
static int _PyTraceMalloc_TraceRef(TyObject *op, PyRefTracerEvent event,
|
||||
void* Ty_UNUSED(ignore));
|
||||
void* Py_UNUSED(ignore));
|
||||
|
||||
#ifdef Ty_DEBUG
|
||||
# define TRACE_DEBUG
|
||||
@@ -1250,7 +1250,7 @@ _PyTraceMalloc_Fini(void)
|
||||
or if the object memory block is not already traced. */
|
||||
static int
|
||||
_PyTraceMalloc_TraceRef(TyObject *op, PyRefTracerEvent event,
|
||||
void* Ty_UNUSED(ignore))
|
||||
void* Py_UNUSED(ignore))
|
||||
{
|
||||
if (event != PyRefTracer_CREATE) {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user