diff options
author | Brett Cannon <brett@python.org> | 2023-03-31 14:23:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-31 14:23:55 -0700 |
commit | d97aef8ebfbbb275384b17f06945e583fb3189ea (patch) | |
tree | 694b8a8d7fd348f976998930f97a361a4f736769 /Python/bytecodes.c | |
parent | 361a3eaf1b6bf3360e34388cc909307ddd20737b (diff) | |
download | cpython-git-d97aef8ebfbbb275384b17f06945e583fb3189ea.tar.gz |
Add missing variables to `bytecodes.c` (GH-103153)
The code works without this change, but it does cause C tooling to complain less about undeclared variables.
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r-- | Python/bytecodes.c | 48 |
1 files changed, 47 insertions, 1 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 484f6e6b1a..825fa705a4 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -74,10 +74,56 @@ dummy_func( PyObject **stack_pointer, PyObject *kwnames, int throwflag, - binaryfunc binary_ops[] + binaryfunc binary_ops[], + PyObject *args[] ) { + // Dummy labels. + pop_1_error: + // Dummy locals. + PyObject *annotations; + PyObject *attrs; + PyObject *bottom; + PyObject *callable; + PyObject *callargs; + PyObject *closure; + PyObject *codeobj; + PyObject *cond; + PyObject *defaults; + PyObject *descr; _PyInterpreterFrame entry_frame; + PyObject *exc; + PyObject *exit; + PyObject *fget; + PyObject *fmt_spec; + PyObject *func; + uint32_t func_version; + PyObject *getattribute; + PyObject *kwargs; + PyObject *kwdefaults; + PyObject *len_o; + PyObject *match; + PyObject *match_type; + PyObject *method; + PyObject *mgr; + Py_ssize_t min_args; + PyObject *names; + PyObject *new_exc; + PyObject *next; + PyObject *none; + PyObject *null; + PyObject *prev_exc; + PyObject *receiver; + PyObject *rest; + int result; + PyObject *self; + PyObject *seq; + PyObject *slice; + PyObject *step; + PyObject *subject; + PyObject *top; + PyObject *type; + int values_or_none; switch (opcode) { |