diff options
author | Benjamin Peterson <benjamin@python.org> | 2017-10-25 05:35:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-25 05:35:15 (GMT) |
commit | 95f1a7bb09db03ae239c8cbf43e8890ab12fd782 (patch) | |
tree | bc327238c917e2dab9b2264c4c8da67a0e9e915a | |
parent | d7ac06126db86f76ba92cbca4cb702852a321f78 (diff) | |
download | cpython-95f1a7bb09db03ae239c8cbf43e8890ab12fd782.zip cpython-95f1a7bb09db03ae239c8cbf43e8890ab12fd782.tar.gz cpython-95f1a7bb09db03ae239c8cbf43e8890ab12fd782.tar.bz2 |
remove support for splitting the ceval switch into multiple switches (#4099)
This kludge is from 1992. Any C99 compiler is going to be able to handle the
ceval dispatch switch.
Anyway, we have much bigger switches than the ceval dispatch one around. (See,
e.g., Objects/unicodetype_db.h.)
-rw-r--r-- | Python/ceval.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index f9a798c..58a2513 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -22,9 +22,6 @@ #include <ctype.h> -/* Turn this on if your compiler chokes on the big switch: */ -/* #define CASE_TOO_BIG 1 */ - #ifdef Py_DEBUG /* For debugging the interpreter: */ #define LLTRACE 1 /* Low-level trace feature */ @@ -1662,9 +1659,6 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag) DISPATCH(); } -#ifdef CASE_TOO_BIG - default: switch (opcode) { -#endif TARGET(RAISE_VARARGS) { PyObject *cause = NULL, *exc = NULL; switch (oparg) { @@ -3373,10 +3367,6 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag) PyErr_SetString(PyExc_SystemError, "unknown opcode"); goto error; -#ifdef CASE_TOO_BIG - } -#endif - } /* switch */ /* This should never be reached. Every opcode should end with DISPATCH() |