summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-04-25 22:14:30 (GMT)
committerGitHub <noreply@github.com>2022-04-25 22:14:30 (GMT)
commit64a54e511debaac6d3a6e53685824fce435c440c (patch)
tree7a549d47fbe8b480b14198555e427e57581db4ec /Objects
parent20cc69528677b3e5191139d1cb587531f4893b55 (diff)
downloadcpython-64a54e511debaac6d3a6e53685824fce435c440c.zip
cpython-64a54e511debaac6d3a6e53685824fce435c440c.tar.gz
cpython-64a54e511debaac6d3a6e53685824fce435c440c.tar.bz2
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
Diffstat (limited to 'Objects')
-rw-r--r--Objects/codeobject.c1
-rw-r--r--Objects/frameobject.c5
-rw-r--r--Objects/genobject.c4
3 files changed, 6 insertions, 4 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index 4fc4b8f..e3e4ca1 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -5,6 +5,7 @@
#include "structmember.h" // PyMemberDef
#include "pycore_code.h" // _PyCodeConstructor
#include "pycore_interp.h" // PyInterpreterState.co_extra_freefuncs
+#include "pycore_opcode.h" // _PyOpcode_Deopt
#include "pycore_pystate.h" // _PyInterpreterState_GET()
#include "pycore_tuple.h" // _PyTuple_ITEMS()
#include "clinic/codeobject.c.h"
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index 7278ca1..56c4fce 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -2,10 +2,11 @@
#include "Python.h"
#include "pycore_ceval.h" // _PyEval_BuiltinsFromGlobals()
-#include "pycore_moduleobject.h" // _PyModule_GetDict()
-#include "pycore_object.h" // _PyObject_GC_UNTRACK()
#include "pycore_code.h" // CO_FAST_LOCAL, etc.
#include "pycore_function.h" // _PyFunction_FromConstructor()
+#include "pycore_moduleobject.h" // _PyModule_GetDict()
+#include "pycore_object.h" // _PyObject_GC_UNTRACK()
+#include "pycore_opcode.h" // _PyOpcode_Caches
#include "frameobject.h" // PyFrameObject
#include "pycore_frame.h"
diff --git a/Objects/genobject.c b/Objects/genobject.c
index e58118b..7920a10 100644
--- a/Objects/genobject.c
+++ b/Objects/genobject.c
@@ -3,12 +3,12 @@
#include "Python.h"
#include "pycore_call.h" // _PyObject_CallNoArgs()
#include "pycore_ceval.h" // _PyEval_EvalFrame()
+#include "pycore_frame.h" // _PyInterpreterFrame
#include "pycore_genobject.h" // struct _Py_async_gen_state
#include "pycore_object.h" // _PyObject_GC_UNTRACK()
+#include "pycore_opcode.h" // _PyOpcode_Deopt
#include "pycore_pyerrors.h" // _PyErr_ClearExcState()
#include "pycore_pystate.h" // _PyThreadState_GET()
-#include "pycore_frame.h" // _PyInterpreterFrame
-#include "frameobject.h" // PyFrameObject
#include "structmember.h" // PyMemberDef
#include "opcode.h" // SEND