mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
bpo-38353: Cleanup includes in the internal C API (GH-16548)
Use forward declaration of types to avoid includes in the internal C API. Add also comment to justify other includes.
This commit is contained in:
parent
b3e7045f83
commit
61691d8336
16 changed files with 27 additions and 31 deletions
|
@ -8,16 +8,9 @@ extern "C" {
|
|||
# error "this header requires Py_BUILD_CORE define"
|
||||
#endif
|
||||
|
||||
#include "cpython/initconfig.h"
|
||||
#include "fileobject.h"
|
||||
#include "pystate.h"
|
||||
#include "pythread.h"
|
||||
#include "sysmodule.h"
|
||||
|
||||
#include "pycore_gil.h" /* _gil_runtime_state */
|
||||
#include "pycore_pathconfig.h"
|
||||
#include "pycore_pymem.h"
|
||||
#include "pycore_warnings.h"
|
||||
#include "pycore_gil.h" /* struct _gil_runtime_state */
|
||||
#include "pycore_pymem.h" /* struct _gc_runtime_state */
|
||||
#include "pycore_warnings.h" /* struct _warnings_runtime_state */
|
||||
|
||||
|
||||
/* ceval state */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue