]> granicus.if.org Git - python/commit
bpo-38353: Cleanup includes in the internal C API (GH-16548)
authorVictor Stinner <vstinner@redhat.com>
Wed, 2 Oct 2019 21:51:20 +0000 (23:51 +0200)
committerGitHub <noreply@github.com>
Wed, 2 Oct 2019 21:51:20 +0000 (23:51 +0200)
commit61691d833631fed42b86605b09e1535e3e8d40e5
tree766d3ec48508213f7e371728b29c9cf49cdecee9
parentb3e7045f8314e7b62cd95861d207fe2f97e47198
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.
16 files changed:
Include/internal/pycore_atomic.h
Include/internal/pycore_ceval.h
Include/internal/pycore_context.h
Include/internal/pycore_gil.h
Include/internal/pycore_initconfig.h
Include/internal/pycore_object.h
Include/internal/pycore_pylifecycle.h
Include/internal/pycore_pymem.h
Include/internal/pycore_pystate.h
Include/internal/pycore_traceback.h
Include/internal/pycore_tupleobject.h
Include/internal/pycore_warnings.h
Modules/main.c
Objects/unicodeobject.c
PC/getpathp.c
Python/import.c