mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
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.
This commit is contained in:
parent
5c4d1f6e0e
commit
85addfb9c6
14 changed files with 17 additions and 33 deletions
|
@ -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"
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue