bpo-40268: Remove unused pycore_pymem.h includes (GH-19531)

This commit is contained in:
Victor Stinner 2020-04-15 02:57:50 +02:00 committed by GitHub
parent 4a21e57fe5
commit d9ea5cae1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 13 additions and 26 deletions

View File

@ -1,5 +1,4 @@
#include "Python.h" #include "Python.h"
#include "pycore_pymem.h"
#include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_pystate.h" // _PyThreadState_GET()
#include "pycore_tupleobject.h" #include "pycore_tupleobject.h"
#include "structmember.h" // PyMemberDef #include "structmember.h" // PyMemberDef

View File

@ -30,7 +30,6 @@
#include "pycore_object.h" #include "pycore_object.h"
#include "pycore_pyerrors.h" #include "pycore_pyerrors.h"
#include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_pystate.h" // _PyThreadState_GET()
#include "pycore_pymem.h"
#include "frameobject.h" // PyFrame_ClearFreeList #include "frameobject.h" // PyFrame_ClearFreeList
#include "pydtrace.h" #include "pydtrace.h"
#include "pytime.h" // _PyTime_GetMonotonicClock() #include "pytime.h" // _PyTime_GetMonotonicClock()

View File

@ -5,7 +5,6 @@
#include "pycore_interp.h" // _PyInterpreterState.sysdict #include "pycore_interp.h" // _PyInterpreterState.sysdict
#include "pycore_pathconfig.h" #include "pycore_pathconfig.h"
#include "pycore_pylifecycle.h" #include "pycore_pylifecycle.h"
#include "pycore_pymem.h"
#include "pycore_pystate.h" // _PyInterpreterState_GET() #include "pycore_pystate.h" // _PyInterpreterState_GET()
/* Includes for exit_sigint() */ /* Includes for exit_sigint() */

View File

@ -5,7 +5,6 @@
#include "pycore_abstract.h" // _PyIndex_Check() #include "pycore_abstract.h" // _PyIndex_Check()
#include "pycore_bytes_methods.h" #include "pycore_bytes_methods.h"
#include "pycore_object.h" #include "pycore_object.h"
#include "pycore_pymem.h"
#include "bytesobject.h" #include "bytesobject.h"
#include "pystrhex.h" #include "pystrhex.h"

View File

@ -3,10 +3,10 @@
#define PY_SSIZE_T_CLEAN #define PY_SSIZE_T_CLEAN
#include "Python.h" #include "Python.h"
#include "pycore_abstract.h" // _PyIndex_Check() #include "pycore_abstract.h" // _PyIndex_Check()
#include "pycore_bytes_methods.h" #include "pycore_bytes_methods.h"
#include "pycore_object.h" #include "pycore_object.h"
#include "pycore_pymem.h" #include "pycore_pymem.h" // PYMEM_CLEANBYTE
#include "pystrhex.h" #include "pystrhex.h"
#include <stddef.h> #include <stddef.h>

View File

@ -2,7 +2,6 @@
#include "Python.h" #include "Python.h"
#include "pycore_object.h" #include "pycore_object.h"
#include "pycore_pymem.h"
PyObject * PyObject *
PyCell_New(PyObject *obj) PyCell_New(PyObject *obj)

View File

@ -3,7 +3,6 @@
#include "Python.h" #include "Python.h"
#include "pycore_object.h" #include "pycore_object.h"
#include "pycore_pyerrors.h" #include "pycore_pyerrors.h"
#include "pycore_pymem.h"
#include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_pystate.h" // _PyThreadState_GET()
#include "structmember.h" // PyMemberDef #include "structmember.h" // PyMemberDef

View File

@ -8,7 +8,6 @@
#include <Python.h> #include <Python.h>
#include "pycore_initconfig.h" #include "pycore_initconfig.h"
#include "pycore_object.h" #include "pycore_object.h"
#include "pycore_pymem.h"
#include "structmember.h" // PyMemberDef #include "structmember.h" // PyMemberDef
#include "osdefs.h" #include "osdefs.h"

View File

@ -3,7 +3,6 @@
#include "Python.h" #include "Python.h"
#include "pycore_object.h" #include "pycore_object.h"
#include "pycore_pymem.h"
#include "pycore_tupleobject.h" #include "pycore_tupleobject.h"
#include "code.h" #include "code.h"
#include "structmember.h" // PyMemberDef #include "structmember.h" // PyMemberDef

View File

@ -2,7 +2,6 @@
#include "Python.h" #include "Python.h"
#include "pycore_object.h" #include "pycore_object.h"
#include "pycore_pymem.h"
typedef struct { typedef struct {
PyObject_HEAD PyObject_HEAD

View File

@ -13,7 +13,6 @@
#include "Python.h" #include "Python.h"
#include "pycore_abstract.h" // _PyIndex_Check() #include "pycore_abstract.h" // _PyIndex_Check()
#include "pycore_object.h" #include "pycore_object.h"
#include "pycore_pymem.h"
#include "pystrhex.h" #include "pystrhex.h"
#include <stddef.h> #include <stddef.h>

View File

@ -5,7 +5,6 @@
#include "pycore_ceval.h" // _Py_EnterRecursiveCall() #include "pycore_ceval.h" // _Py_EnterRecursiveCall()
#include "pycore_object.h" #include "pycore_object.h"
#include "pycore_pyerrors.h" #include "pycore_pyerrors.h"
#include "pycore_pymem.h"
#include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_pystate.h" // _PyThreadState_GET()
#include "structmember.h" // PyMemberDef #include "structmember.h" // PyMemberDef

View File

@ -1,5 +1,5 @@
#include "Python.h" #include "Python.h"
#include "pycore_pymem.h" #include "pycore_pymem.h" // _PyTraceMalloc_Config
#include <stdbool.h> #include <stdbool.h>

View File

@ -16,7 +16,6 @@ this type and there is exactly one in existence.
#include "Python.h" #include "Python.h"
#include "pycore_abstract.h" // _PyIndex_Check() #include "pycore_abstract.h" // _PyIndex_Check()
#include "pycore_object.h" #include "pycore_object.h"
#include "pycore_pymem.h"
#include "structmember.h" // PyMemberDef #include "structmember.h" // PyMemberDef
static PyObject * static PyObject *

View File

@ -8,7 +8,7 @@
#include "pycore_pyerrors.h" #include "pycore_pyerrors.h"
#include "pycore_pyhash.h" #include "pycore_pyhash.h"
#include "pycore_pylifecycle.h" #include "pycore_pylifecycle.h"
#include "pycore_pymem.h" #include "pycore_pymem.h" // _PyMem_SetDefaultAllocator()
#include "pycore_interp.h" // _PyInterpreterState_ClearModules() #include "pycore_interp.h" // _PyInterpreterState_ClearModules()
#include "pycore_pystate.h" // _PyInterpreterState_GET() #include "pycore_pystate.h" // _PyInterpreterState_GET()
#include "pycore_sysmodule.h" #include "pycore_sysmodule.h"

View File

@ -7,7 +7,7 @@
#include "pycore_pathconfig.h" #include "pycore_pathconfig.h"
#include "pycore_pyerrors.h" #include "pycore_pyerrors.h"
#include "pycore_pylifecycle.h" #include "pycore_pylifecycle.h"
#include "pycore_pymem.h" #include "pycore_pymem.h" // _PyMem_SetDefaultAllocator()
#include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_pystate.h" // _PyThreadState_GET()
#include <locale.h> // setlocale() #include <locale.h> // setlocale()
#ifdef HAVE_LANGINFO_H #ifdef HAVE_LANGINFO_H

View File

@ -5,7 +5,7 @@
#include "pycore_initconfig.h" #include "pycore_initconfig.h"
#include "pycore_fileutils.h" #include "pycore_fileutils.h"
#include "pycore_pathconfig.h" #include "pycore_pathconfig.h"
#include "pycore_pymem.h" #include "pycore_pymem.h" // _PyMem_SetDefaultAllocator()
#include <wchar.h> #include <wchar.h>
#ifdef MS_WINDOWS #ifdef MS_WINDOWS
# include <windows.h> // GetFullPathNameW(), MAX_PATH # include <windows.h> // GetFullPathNameW(), MAX_PATH

View File

@ -1,9 +1,9 @@
#include "Python.h" #include "Python.h"
#include "pycore_getopt.h" #include "pycore_getopt.h"
#include "pycore_initconfig.h" #include "pycore_initconfig.h"
#include "pycore_pymem.h" // _PyMem_GetAllocatorName() #include "pycore_pymem.h" // _PyMem_GetAllocatorName()
#include "pycore_runtime.h" // _PyRuntime_Initialize() #include "pycore_runtime.h" // _PyRuntime_Initialize()
#include <locale.h> // setlocale() #include <locale.h> // setlocale()
#define DECODE_LOCALE_ERR(NAME, LEN) \ #define DECODE_LOCALE_ERR(NAME, LEN) \

View File

@ -14,7 +14,6 @@
#include "pycore_pathconfig.h" #include "pycore_pathconfig.h"
#include "pycore_pyerrors.h" #include "pycore_pyerrors.h"
#include "pycore_pylifecycle.h" #include "pycore_pylifecycle.h"
#include "pycore_pymem.h"
#include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_pystate.h" // _PyThreadState_GET()
#include "pycore_sysmodule.h" #include "pycore_sysmodule.h"
#include "pycore_traceback.h" #include "pycore_traceback.h"

View File

@ -6,7 +6,7 @@
#include "pycore_initconfig.h" #include "pycore_initconfig.h"
#include "pycore_pyerrors.h" #include "pycore_pyerrors.h"
#include "pycore_pylifecycle.h" #include "pycore_pylifecycle.h"
#include "pycore_pymem.h" #include "pycore_pymem.h" // _PyMem_SetDefaultAllocator()
#include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_pystate.h" // _PyThreadState_GET()
#include "pycore_sysmodule.h" #include "pycore_sysmodule.h"

View File

@ -17,14 +17,14 @@ Data members:
#include "Python.h" #include "Python.h"
#include "code.h" #include "code.h"
#include "frameobject.h" #include "frameobject.h"
#include "pycore_ceval.h" // _Py_RecursionLimitLowerWaterMark() #include "pycore_ceval.h" // _Py_RecursionLimitLowerWaterMark()
#include "pycore_initconfig.h" #include "pycore_initconfig.h"
#include "pycore_object.h" #include "pycore_object.h"
#include "pycore_pathconfig.h" #include "pycore_pathconfig.h"
#include "pycore_pyerrors.h" #include "pycore_pyerrors.h"
#include "pycore_pylifecycle.h" #include "pycore_pylifecycle.h"
#include "pycore_pymem.h" #include "pycore_pymem.h" // _PyMem_SetDefaultAllocator()
#include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_pystate.h" // _PyThreadState_GET()
#include "pycore_tupleobject.h" #include "pycore_tupleobject.h"
#include "pydtrace.h" #include "pydtrace.h"