From 85addfb9c6496eb3d26082348cf5aca848c877ef Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 7 Apr 2022 02:29:52 +0200 Subject: bpo-35134: Remove the Include/code.h header file (GH-32385) Remove the Include/code.h header file. C extensions should only include the main header file. Python.h includes directly Include/cpython/code.h instead. --- Python/ceval.c | 1 - Python/marshal.c | 1 - Python/pythonrun.c | 1 - Python/sysmodule.c | 1 - Python/traceback.c | 1 - 5 files changed, 5 deletions(-) (limited to 'Python') diff --git a/Python/ceval.c b/Python/ceval.c index 487e09bc664..5384aac5d6e 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -23,7 +23,6 @@ #include "pycore_tuple.h" // _PyTuple_ITEMS() #include "pycore_emscripten_signal.h" // _Py_CHECK_EMSCRIPTEN_SIGNALS -#include "code.h" #include "pycore_dict.h" #include "dictobject.h" #include "frameobject.h" diff --git a/Python/marshal.c b/Python/marshal.c index e7cf6553bd1..19abcc8ffe4 100644 --- a/Python/marshal.c +++ b/Python/marshal.c @@ -12,7 +12,6 @@ #include "pycore_call.h" // _PyObject_CallNoArgs() #include "pycore_code.h" // _PyCode_New() #include "pycore_hashtable.h" // _Py_hashtable_t -#include "code.h" #include "marshal.h" // Py_MARSHAL_VERSION /*[clinic input] diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 38ca952838a..d117b790dfd 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -25,7 +25,6 @@ #include "token.h" // INDENT #include "errcode.h" // E_EOF -#include "code.h" // PyCodeObject #include "marshal.h" // PyMarshal_ReadLongFromFile() #ifdef MS_WINDOWS diff --git a/Python/sysmodule.c b/Python/sysmodule.c index de4e10a7e11..ac44b803b23 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -31,7 +31,6 @@ Data members: #include "pycore_structseq.h" // _PyStructSequence_InitType() #include "pycore_tuple.h" // _PyTuple_FromArray() -#include "code.h" #include "frameobject.h" // PyFrame_GetBack() #include "pydtrace.h" #include "osdefs.h" // DELIM diff --git a/Python/traceback.c b/Python/traceback.c index 0d0eb954c23..488c1b17cf5 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -3,7 +3,6 @@ #include "Python.h" -#include "code.h" // PyCode_Addr2Line etc #include "frameobject.h" // PyFrame_GetBack() #include "pycore_ast.h" // asdl_seq_* #include "pycore_call.h" // _PyObject_CallMethodFormat() -- cgit v1.3.1