Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit46ac85e

Browse files
gh-129989: Change Py_TAIL_CALL_INTERP ifndef to ! (#130269)
Change Py_TAIL_CALL_INTERP ifndef to !
1 parentdab456d commit46ac85e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

‎Python/bytecodes.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ dummy_func(
13581358

13591359
tier1inst(CLEANUP_THROW, (sub_iter,last_sent_val,exc_value_st--none,value)) {
13601360
PyObject*exc_value=PyStackRef_AsPyObjectBorrow(exc_value_st);
1361-
#ifndefPy_TAIL_CALL_INTERP
1361+
#if !Py_TAIL_CALL_INTERP
13621362
assert(throwflag);
13631363
#endif
13641364
assert(exc_value&&PyExceptionInstance_Check(exc_value));

‎Python/ceval.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
798798
#ifdefPy_STATS
799799
intlastopcode=0;
800800
#endif
801-
#ifndefPy_TAIL_CALL_INTERP
801+
#if !Py_TAIL_CALL_INTERP
802802
uint8_topcode;/* Current opcode */
803803
intoparg;/* Current opcode argument, if any */
804804
assert(tstate->current_frame==NULL||tstate->current_frame->stackpointer!=NULL);

‎Python/generated_cases.c.h‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎Tools/cases_generator/tier1_generator.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def generate_tier1(
160160
#define TIER_ONE 1
161161
""")
162162
outfile.write(f"""
163-
#ifndefPy_TAIL_CALL_INTERP
163+
#if !Py_TAIL_CALL_INTERP
164164
#if !USE_COMPUTED_GOTOS
165165
dispatch_opcode:
166166
switch (opcode)
@@ -173,7 +173,7 @@ def generate_tier1(
173173
generate_tier1_cases(analysis,outfile,lines)
174174
outfile.write(f"""
175175
{INSTRUCTION_END_MARKER}
176-
#ifndefPy_TAIL_CALL_INTERP
176+
#if !Py_TAIL_CALL_INTERP
177177
#if USE_COMPUTED_GOTOS
178178
_unknown_opcode:
179179
#else

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp