diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-10-02 21:51:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-02 21:51:20 (GMT) |
commit | 61691d833631fed42b86605b09e1535e3e8d40e5 (patch) | |
tree | 766d3ec48508213f7e371728b29c9cf49cdecee9 /Include/internal/pycore_pystate.h | |
parent | b3e7045f8314e7b62cd95861d207fe2f97e47198 (diff) | |
download | cpython-61691d833631fed42b86605b09e1535e3e8d40e5.zip cpython-61691d833631fed42b86605b09e1535e3e8d40e5.tar.gz cpython-61691d833631fed42b86605b09e1535e3e8d40e5.tar.bz2 |
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.
Diffstat (limited to 'Include/internal/pycore_pystate.h')
-rw-r--r-- | Include/internal/pycore_pystate.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Include/internal/pycore_pystate.h b/Include/internal/pycore_pystate.h index 8e5a022..91003db 100644 --- a/Include/internal/pycore_pystate.h +++ b/Include/internal/pycore_pystate.h @@ -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 */ |