From d9ea5cae1d07e1ee8b03540a9367c26205e0e360 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 15 Apr 2020 02:57:50 +0200 Subject: bpo-40268: Remove unused pycore_pymem.h includes (GH-19531) --- Python/import.c | 2 +- Python/initconfig.c | 2 +- Python/pathconfig.c | 2 +- Python/preconfig.c | 6 +++--- Python/pylifecycle.c | 1 - Python/pystate.c | 2 +- Python/sysmodule.c | 6 +++--- 7 files changed, 10 insertions(+), 11 deletions(-) (limited to 'Python') diff --git a/Python/import.c b/Python/import.c index 2f2e9d1706..a2aa4afa18 100644 --- a/Python/import.c +++ b/Python/import.c @@ -8,7 +8,7 @@ #include "pycore_pyerrors.h" #include "pycore_pyhash.h" #include "pycore_pylifecycle.h" -#include "pycore_pymem.h" +#include "pycore_pymem.h" // _PyMem_SetDefaultAllocator() #include "pycore_interp.h" // _PyInterpreterState_ClearModules() #include "pycore_pystate.h" // _PyInterpreterState_GET() #include "pycore_sysmodule.h" diff --git a/Python/initconfig.c b/Python/initconfig.c index 201d930f7d..32aafdb57a 100644 --- a/Python/initconfig.c +++ b/Python/initconfig.c @@ -7,7 +7,7 @@ #include "pycore_pathconfig.h" #include "pycore_pyerrors.h" #include "pycore_pylifecycle.h" -#include "pycore_pymem.h" +#include "pycore_pymem.h" // _PyMem_SetDefaultAllocator() #include "pycore_pystate.h" // _PyThreadState_GET() #include // setlocale() #ifdef HAVE_LANGINFO_H diff --git a/Python/pathconfig.c b/Python/pathconfig.c index 1515926531..6ebfdac3fd 100644 --- a/Python/pathconfig.c +++ b/Python/pathconfig.c @@ -5,7 +5,7 @@ #include "pycore_initconfig.h" #include "pycore_fileutils.h" #include "pycore_pathconfig.h" -#include "pycore_pymem.h" +#include "pycore_pymem.h" // _PyMem_SetDefaultAllocator() #include #ifdef MS_WINDOWS # include // GetFullPathNameW(), MAX_PATH diff --git a/Python/preconfig.c b/Python/preconfig.c index 531d8d0df3..1cbfccfe69 100644 --- a/Python/preconfig.c +++ b/Python/preconfig.c @@ -1,9 +1,9 @@ #include "Python.h" #include "pycore_getopt.h" #include "pycore_initconfig.h" -#include "pycore_pymem.h" // _PyMem_GetAllocatorName() -#include "pycore_runtime.h" // _PyRuntime_Initialize() -#include // setlocale() +#include "pycore_pymem.h" // _PyMem_GetAllocatorName() +#include "pycore_runtime.h" // _PyRuntime_Initialize() +#include // setlocale() #define DECODE_LOCALE_ERR(NAME, LEN) \ diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 974b425712..9c13274dac 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -14,7 +14,6 @@ #include "pycore_pathconfig.h" #include "pycore_pyerrors.h" #include "pycore_pylifecycle.h" -#include "pycore_pymem.h" #include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_sysmodule.h" #include "pycore_traceback.h" diff --git a/Python/pystate.c b/Python/pystate.c index d25fb3a2a6..84a694b32e 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -6,7 +6,7 @@ #include "pycore_initconfig.h" #include "pycore_pyerrors.h" #include "pycore_pylifecycle.h" -#include "pycore_pymem.h" +#include "pycore_pymem.h" // _PyMem_SetDefaultAllocator() #include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_sysmodule.h" diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 63111d58ab..4e67325318 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -17,14 +17,14 @@ Data members: #include "Python.h" #include "code.h" #include "frameobject.h" -#include "pycore_ceval.h" // _Py_RecursionLimitLowerWaterMark() +#include "pycore_ceval.h" // _Py_RecursionLimitLowerWaterMark() #include "pycore_initconfig.h" #include "pycore_object.h" #include "pycore_pathconfig.h" #include "pycore_pyerrors.h" #include "pycore_pylifecycle.h" -#include "pycore_pymem.h" -#include "pycore_pystate.h" // _PyThreadState_GET() +#include "pycore_pymem.h" // _PyMem_SetDefaultAllocator() +#include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_tupleobject.h" #include "pydtrace.h" -- cgit v1.2.1