mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
excise the remains of STOP_CODE, which hasn't done anything useful for years
This commit is contained in:
parent
42d1320c06
commit
76f7f4d979
6 changed files with 1 additions and 13 deletions
|
@ -1347,8 +1347,6 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
|
|||
x to NULL, err to nonzero, or why to anything but WHY_NOT,
|
||||
and that no operation that succeeds does this! */
|
||||
|
||||
/* case STOP_CODE: this is an error! */
|
||||
|
||||
TARGET(NOP)
|
||||
FAST_DISPATCH();
|
||||
|
||||
|
|
|
@ -23,9 +23,6 @@ def write_contents(f):
|
|||
opcode = find_module("opcode")
|
||||
targets = ['_unknown_opcode'] * 256
|
||||
for opname, op in opcode.opmap.items():
|
||||
if opname == "STOP_CODE":
|
||||
# XXX opcode not implemented
|
||||
continue
|
||||
targets[op] = "TARGET_%s" % opname
|
||||
f.write("static void *opcode_targets[256] = {\n")
|
||||
f.write(",\n".join([" &&%s" % s for s in targets]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue