From 64a54e511debaac6d3a6e53685824fce435c440c Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 26 Apr 2022 00:14:30 +0200 Subject: gh-91719: Add pycore_opcode.h internal header file (#91906) Move the following API from Include/opcode.h (public C API) to a new Include/internal/pycore_opcode.h header file (internal C API): * EXTRA_CASES * _PyOpcode_Caches * _PyOpcode_Deopt * _PyOpcode_Jump * _PyOpcode_OpName * _PyOpcode_RelativeJump --- Python/compile.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index d66ee17293..42b011ce93 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -23,17 +23,18 @@ #include +// 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 -- cgit v1.2.1