diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 1 | ||||
-rw-r--r-- | Python/compile.c | 11 | ||||
-rw-r--r-- | Python/specialize.c | 2 |
3 files changed, 8 insertions, 6 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 90068bc51a7..6e7a2483112 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -15,6 +15,7 @@ #include "pycore_long.h" // _PyLong_GetZero() #include "pycore_object.h" // _PyObject_GC_TRACK() #include "pycore_moduleobject.h" // PyModuleObject +#include "pycore_opcode.h" // EXTRA_CASES #include "pycore_pyerrors.h" // _PyErr_Fetch() #include "pycore_pylifecycle.h" // _PyErr_Print() #include "pycore_pymem.h" // _PyMem_IsPtrFreed() diff --git a/Python/compile.c b/Python/compile.c index d66ee17293a..42b011ce93e 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -23,17 +23,18 @@ #include <stdbool.h> +// Need _PyOpcode_RelativeJump of pycore_opcode.h +#define NEED_OPCODE_TABLES + #include "Python.h" #include "pycore_ast.h" // _PyAST_GetDocString() -#include "pycore_compile.h" // _PyFuture_FromAST() #include "pycore_code.h" // _PyCode_New() -#include "pycore_pymem.h" // _PyMem_IsPtrFreed() +#include "pycore_compile.h" // _PyFuture_FromAST() #include "pycore_long.h" // _PyLong_GetZero() +#include "pycore_opcode.h" // _PyOpcode_Caches +#include "pycore_pymem.h" // _PyMem_IsPtrFreed() #include "pycore_symtable.h" // PySTEntryObject -#define NEED_OPCODE_TABLES -#include "opcode.h" // EXTENDED_ARG - #define DEFAULT_BLOCK_SIZE 16 #define DEFAULT_CODE_SIZE 128 diff --git a/Python/specialize.c b/Python/specialize.c index 3a8b768549c..9449ac11797 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -6,7 +6,7 @@ #include "pycore_long.h" #include "pycore_moduleobject.h" #include "pycore_object.h" -#include "opcode.h" +#include "pycore_opcode.h" // _PyOpcode_Caches #include "structmember.h" // struct PyMemberDef, T_OFFSET_EX #include <stdlib.h> // rand() |