diff options
author | Victor Stinner <vstinner@python.org> | 2022-04-07 00:29:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-07 00:29:52 (GMT) |
commit | 85addfb9c6496eb3d26082348cf5aca848c877ef (patch) | |
tree | b6a0cd3eda126249ee74b718cc7b2c2a3f4d5876 /Python | |
parent | 5c4d1f6e0e192653560ae2941a6677fbf4fbd1f2 (diff) | |
download | cpython-85addfb9c6496eb3d26082348cf5aca848c877ef.zip cpython-85addfb9c6496eb3d26082348cf5aca848c877ef.tar.gz cpython-85addfb9c6496eb3d26082348cf5aca848c877ef.tar.bz2 |
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 <Python.h> header file.
Python.h includes directly Include/cpython/code.h instead.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 1 | ||||
-rw-r--r-- | Python/marshal.c | 1 | ||||
-rw-r--r-- | Python/pythonrun.c | 1 | ||||
-rw-r--r-- | Python/sysmodule.c | 1 | ||||
-rw-r--r-- | Python/traceback.c | 1 |
5 files changed, 0 insertions, 5 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 487e09b..5384aac 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 e7cf655..19abcc8 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 38ca952..d117b79 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 de4e10a..ac44b80 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 0d0eb95..488c1b1 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() |