diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-06 13:56:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-06 13:56:08 (GMT) |
commit | b298b395e8ab1725c4f0dd736155b8c818664d42 (patch) | |
tree | 7946296ed34254283f71a70004b06fe7a7d2c30d /Python/sysmodule.c | |
parent | 14d6e197cc56e5256d501839a4e66e3864ab15f0 (diff) | |
download | cpython-b298b395e8ab1725c4f0dd736155b8c818664d42.zip cpython-b298b395e8ab1725c4f0dd736155b8c818664d42.tar.gz cpython-b298b395e8ab1725c4f0dd736155b8c818664d42.tar.bz2 |
gh-108765: Cleanup #include in Python/*.c files (#108977)
Mention one symbol imported by each #include.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 0ec763c..3835f76 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -23,7 +23,7 @@ Data members: #include "pycore_long.h" // _PY_LONG_MAX_STR_DIGITS_THRESHOLD #include "pycore_modsupport.h" // _PyModule_CreateInitialized() #include "pycore_namespace.h" // _PyNamespace_New() -#include "pycore_object.h" // _PyObject_IS_GC(), _PyObject_DebugTypeStats() +#include "pycore_object.h" // _PyObject_DebugTypeStats() #include "pycore_pathconfig.h" // _PyPathConfig_ComputeSysPath0() #include "pycore_pyerrors.h" // _PyErr_GetRaisedException() #include "pycore_pylifecycle.h" // _PyErr_WriteUnraisableDefaultHook() @@ -31,18 +31,19 @@ Data members: #include "pycore_pymem.h" // _PyMem_SetDefaultAllocator() #include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_structseq.h" // _PyStructSequence_InitBuiltinWithFlags() -#include "pycore_sysmodule.h" // Define _PySys_GetSizeOf() +#include "pycore_sysmodule.h" // export _PySys_GetSizeOf() #include "pycore_tuple.h" // _PyTuple_FromArray() #include "frameobject.h" // PyFrame_FastToLocalsWithError() -#include "pydtrace.h" +#include "pydtrace.h" // PyDTrace_AUDIT() #include "osdefs.h" // DELIM #include "stdlib_module_names.h" // _Py_stdlib_module_names + #include <locale.h> #ifdef MS_WINDOWS -#define WIN32_LEAN_AND_MEAN -#include <windows.h> +# define WIN32_LEAN_AND_MEAN +# include <windows.h> #endif /* MS_WINDOWS */ #ifdef MS_COREDLL @@ -52,11 +53,11 @@ extern const char *PyWin_DLLVersionString; #endif #ifdef __EMSCRIPTEN__ -#include <emscripten.h> +# include <emscripten.h> #endif #ifdef HAVE_FCNTL_H -#include <fcntl.h> +# include <fcntl.h> #endif /*[clinic input] @@ -66,6 +67,7 @@ module sys #include "clinic/sysmodule.c.h" + PyObject * _PySys_GetAttr(PyThreadState *tstate, PyObject *name) { |