Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 95f1a7b

Browse files
authored
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.)
1 parent d7ac061 commit 95f1a7b

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

Python/ceval.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222

2323
#include <ctype.h>
2424

25-
/* Turn this on if your compiler chokes on the big switch: */
26-
/* #define CASE_TOO_BIG 1 */
27-
2825
#ifdef Py_DEBUG
2926
/* For debugging the interpreter: */
3027
#define LLTRACE 1 /* Low-level trace feature */
@@ -1662,9 +1659,6 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
16621659
DISPATCH();
16631660
}
16641661

1665-
#ifdef CASE_TOO_BIG
1666-
default: switch (opcode) {
1667-
#endif
16681662
TARGET(RAISE_VARARGS) {
16691663
PyObject *cause = NULL, *exc = NULL;
16701664
switch (oparg) {
@@ -3373,10 +3367,6 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
33733367
PyErr_SetString(PyExc_SystemError, "unknown opcode");
33743368
goto error;
33753369

3376-
#ifdef CASE_TOO_BIG
3377-
}
3378-
#endif
3379-
33803370
} /* switch */
33813371

33823372
/* This should never be reached. Every opcode should end with DISPATCH()

0 commit comments

Comments
 (0)