gh-108765: Cleanup #include in Python/*.c files (#108977)

Mention one symbol imported by each #include.
This commit is contained in:
Victor Stinner 2023-09-06 15:56:08 +02:00 committed by GitHub
parent 14d6e197cc
commit b298b395e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 57 additions and 48 deletions

View file

@ -17,7 +17,7 @@
#include "pycore_list.h" // _PyList_Fini()
#include "pycore_long.h" // _PyLong_InitTypes()
#include "pycore_object.h" // _PyDebug_PrintTotalRefs()
#include "pycore_pathconfig.h" // _PyConfig_WritePathConfig()
#include "pycore_pathconfig.h" // _PyPathConfig_UpdateGlobal()
#include "pycore_pyerrors.h" // _PyErr_Occurred()
#include "pycore_pylifecycle.h" // _PyErr_Print()
#include "pycore_pymem.h" // _PyObject_DebugMallocStats()
@ -32,13 +32,14 @@
#include "pycore_typevarobject.h" // _Py_clear_generic_types()
#include "pycore_unicodeobject.h" // _PyUnicode_InitTypes()
#include "pycore_weakref.h" // _PyWeakref_GET_REF()
#include "opcode.h"
#include <locale.h> // setlocale()
#include <stdlib.h> // getenv()
#if defined(__APPLE__)
#include <mach-o/loader.h>
# include <mach-o/loader.h>
#endif
#ifdef HAVE_SIGNAL_H