gh-135755: Make Py_TAIL_CALL_INTERP macro private (#138981)

Rename Py_TAIL_CALL_INTERP to _Py_TAIL_CALL_INTERP.
This commit is contained in:
Victor Stinner 2025-09-18 13:33:07 +01:00 committed by GitHub
parent 2191497933
commit 6504f20cce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 315 additions and 315 deletions

View file

@ -1219,7 +1219,7 @@ dummy_func(
tstate->current_frame = frame->previous;
assert(!_PyErr_Occurred(tstate));
PyObject *result = PyStackRef_AsPyObjectSteal(retval);
#if !Py_TAIL_CALL_INTERP
#if !_Py_TAIL_CALL_INTERP
assert(frame == &entry.frame);
#endif
#ifdef _Py_TIER2
@ -1509,7 +1509,7 @@ dummy_func(
tier1 inst(CLEANUP_THROW, (sub_iter, last_sent_val, exc_value_st -- none, value)) {
PyObject *exc_value = PyStackRef_AsPyObjectBorrow(exc_value_st);
#if !Py_TAIL_CALL_INTERP
#if !_Py_TAIL_CALL_INTERP
assert(throwflag);
#endif
assert(exc_value && PyExceptionInstance_Check(exc_value));
@ -5515,7 +5515,7 @@ dummy_func(
}
#endif
RELOAD_STACK();
#if Py_TAIL_CALL_INTERP
#if _Py_TAIL_CALL_INTERP
int opcode;
#endif
DISPATCH();
@ -5533,7 +5533,7 @@ dummy_func(
if (frame->owner == FRAME_OWNED_BY_INTERPRETER) {
/* Restore previous frame and exit */
tstate->current_frame = frame->previous;
#if !Py_TAIL_CALL_INTERP
#if !_Py_TAIL_CALL_INTERP
assert(frame == &entry.frame);
#endif
#ifdef _Py_TIER2
@ -5569,7 +5569,7 @@ dummy_func(
assert(!_PyErr_Occurred(tstate));
#endif
RELOAD_STACK();
#if Py_TAIL_CALL_INTERP
#if _Py_TAIL_CALL_INTERP
int opcode;
#endif
DISPATCH();