diff options
author | Guido van Rossum <guido@python.org> | 2022-11-05 00:40:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 00:40:43 (GMT) |
commit | d04899abb0da4cc7c0a390f5bc52d57ace8955fd (patch) | |
tree | 316bdca3f423c13221a139e4f9ce830514b20965 /Python/bytecodes.c | |
parent | 6a8d3c57afd6729c410fa17cf0efc08d1b065e15 (diff) | |
download | cpython-d04899abb0da4cc7c0a390f5bc52d57ace8955fd.zip cpython-d04899abb0da4cc7c0a390f5bc52d57ace8955fd.tar.gz cpython-d04899abb0da4cc7c0a390f5bc52d57ace8955fd.tar.bz2 |
GH-99104: Update headers for bytecodes.c and generate_cases.py (#99112)
Also tweak the labels near the end of bytecodes.c.
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r-- | Python/bytecodes.c | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 16ac1d9..e87ca6e 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -1,3 +1,11 @@ +// This file contains instruction definitions. +// It is read by Tools/cases_generator/generate_cases.py +// to generate Python/generated_cases.c.h. +// Note that there is some dummy C code at the top and bottom of the file +// to fool text editors like VS Code into believing this is valid C code. +// The actual instruction definitions start at // BEGIN BYTECODES //. +// See Tools/cases_generator/README.md for more information. + #include "Python.h" #include "pycore_abstract.h" // _PyIndex_Check() #include "pycore_call.h" // _PyObject_FastCallDictTstate() @@ -4003,13 +4011,14 @@ dummy_func( // END BYTECODES // } - error:; - exception_unwind:; - handle_eval_breaker:; - resume_frame:; - resume_with_error:; - start_frame:; - unbound_local_error:; + error: + exception_unwind: + handle_eval_breaker: + resume_frame: + resume_with_error: + start_frame: + unbound_local_error: + ; } // Families go below this point // |