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:
@@ -2171,7 +2171,7 @@ monitoring_use_tool_id_impl(TyObject *module, int tool_id, TyObject *name)
|
||||
return NULL;
|
||||
}
|
||||
interp->monitoring_tool_names[tool_id] = Ty_NewRef(name);
|
||||
Ty_RETURN_NONE;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
/*[clinic input]
|
||||
@@ -2198,7 +2198,7 @@ monitoring_clear_tool_id_impl(TyObject *module, int tool_id)
|
||||
}
|
||||
}
|
||||
|
||||
Ty_RETURN_NONE;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
/*[clinic input]
|
||||
@@ -2225,7 +2225,7 @@ monitoring_free_tool_id_impl(TyObject *module, int tool_id)
|
||||
}
|
||||
|
||||
Ty_CLEAR(interp->monitoring_tool_names[tool_id]);
|
||||
Ty_RETURN_NONE;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
/*[clinic input]
|
||||
@@ -2248,7 +2248,7 @@ monitoring_get_tool_impl(TyObject *module, int tool_id)
|
||||
PyInterpreterState *interp = _TyInterpreterState_GET();
|
||||
TyObject *name = interp->monitoring_tool_names[tool_id];
|
||||
if (name == NULL) {
|
||||
Ty_RETURN_NONE;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
return Ty_NewRef(name);
|
||||
}
|
||||
@@ -2289,7 +2289,7 @@ monitoring_register_callback_impl(TyObject *module, int tool_id, int event,
|
||||
}
|
||||
func = _PyMonitoring_RegisterCallback(tool_id, event_id, func);
|
||||
if (func == NULL) {
|
||||
Ty_RETURN_NONE;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
return func;
|
||||
}
|
||||
@@ -2346,7 +2346,7 @@ monitoring_set_events_impl(TyObject *module, int tool_id, int event_set)
|
||||
if (_PyMonitoring_SetEvents(tool_id, event_set)) {
|
||||
return NULL;
|
||||
}
|
||||
Ty_RETURN_NONE;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
/*[clinic input]
|
||||
@@ -2427,7 +2427,7 @@ monitoring_set_local_events_impl(TyObject *module, int tool_id,
|
||||
if (_PyMonitoring_SetLocalEvents((PyCodeObject*)code, tool_id, event_set)) {
|
||||
return NULL;
|
||||
}
|
||||
Ty_RETURN_NONE;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
/*[clinic input]
|
||||
@@ -2462,7 +2462,7 @@ monitoring_restart_events_impl(TyObject *module)
|
||||
if (res) {
|
||||
return NULL;
|
||||
}
|
||||
Ty_RETURN_NONE;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
Reference in New Issue
Block a user