Skip to content

Commit 7076bef

Browse files
authored
bpo-45434: Remove useless space in includes (GH-28963)
Micro-optimize spaces!
1 parent 03bbc60 commit 7076bef

24 files changed

+26
-28
lines changed

Include/abstract.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ PyAPI_FUNC(int) PyObject_IsSubclass(PyObject *object, PyObject *typeorclass);
863863

864864
#ifndef Py_LIMITED_API
865865
# define Py_CPYTHON_ABSTRACTOBJECT_H
866-
# include "cpython/abstract.h"
866+
# include "cpython/abstract.h"
867867
# undef Py_CPYTHON_ABSTRACTOBJECT_H
868868
#endif
869869

Include/bytearrayobject.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ PyAPI_FUNC(int) PyByteArray_Resize(PyObject *, Py_ssize_t);
3434

3535
#ifndef Py_LIMITED_API
3636
# define Py_CPYTHON_BYTEARRAYOBJECT_H
37-
# include "cpython/bytearrayobject.h"
37+
# include "cpython/bytearrayobject.h"
3838
# undef Py_CPYTHON_BYTEARRAYOBJECT_H
3939
#endif
4040

Include/bytesobject.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ PyAPI_FUNC(int) PyBytes_AsStringAndSize(
5959

6060
#ifndef Py_LIMITED_API
6161
# define Py_CPYTHON_BYTESOBJECT_H
62-
# include "cpython/bytesobject.h"
62+
# include "cpython/bytesobject.h"
6363
# undef Py_CPYTHON_BYTESOBJECT_H
6464
#endif
6565

Include/ceval.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate);
148148

149149
#ifndef Py_LIMITED_API
150150
# define Py_CPYTHON_CEVAL_H
151-
# include "cpython/ceval.h"
151+
# include "cpython/ceval.h"
152152
# undef Py_CPYTHON_CEVAL_H
153153
#endif
154154

Include/code.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ typedef struct PyCodeObject PyCodeObject;
1010

1111
#ifndef Py_LIMITED_API
1212
# define Py_CPYTHON_CODE_H
13-
# include "cpython/code.h"
13+
# include "cpython/code.h"
1414
# undef Py_CPYTHON_CODE_H
1515
#endif
1616

Include/dictobject.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ PyAPI_DATA(PyTypeObject) PyDictRevIterValue_Type;
8787

8888
#ifndef Py_LIMITED_API
8989
# define Py_CPYTHON_DICTOBJECT_H
90-
# include "cpython/dictobject.h"
90+
# include "cpython/dictobject.h"
9191
# undef Py_CPYTHON_DICTOBJECT_H
9292
#endif
9393

Include/fileobject.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ PyAPI_DATA(int) Py_UTF8Mode;
3939

4040
#ifndef Py_LIMITED_API
4141
# define Py_CPYTHON_FILEOBJECT_H
42-
# include "cpython/fileobject.h"
42+
# include "cpython/fileobject.h"
4343
# undef Py_CPYTHON_FILEOBJECT_H
4444
#endif
4545

Include/fileutils.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ PyAPI_FUNC(char*) Py_EncodeLocale(
1616

1717
#ifndef Py_LIMITED_API
1818
# define Py_CPYTHON_FILEUTILS_H
19-
# include "cpython/fileutils.h"
19+
# include "cpython/fileutils.h"
2020
# undef Py_CPYTHON_FILEUTILS_H
2121
#endif
2222

Include/frameobject.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ extern "C" {
1010

1111
#ifndef Py_LIMITED_API
1212
# define Py_CPYTHON_FRAMEOBJECT_H
13-
# include "cpython/frameobject.h"
13+
# include "cpython/frameobject.h"
1414
# undef Py_CPYTHON_FRAMEOBJECT_H
1515
#endif
1616

Include/import.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ PyAPI_FUNC(int) PyImport_AppendInittab(
8888

8989
#ifndef Py_LIMITED_API
9090
# define Py_CPYTHON_IMPORT_H
91-
# include "cpython/import.h"
91+
# include "cpython/import.h"
9292
# undef Py_CPYTHON_IMPORT_H
9393
#endif
9494

Include/interpreteridobject.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extern "C" {
77

88
#ifndef Py_LIMITED_API
99
# define Py_CPYTHON_INTERPRETERIDOBJECT_H
10-
# include "cpython/interpreteridobject.h"
10+
# include "cpython/interpreteridobject.h"
1111
# undef Py_CPYTHON_INTERPRETERIDOBJECT_H
1212
#endif
1313

Include/listobject.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ PyAPI_FUNC(PyObject *) PyList_AsTuple(PyObject *);
4242

4343
#ifndef Py_LIMITED_API
4444
# define Py_CPYTHON_LISTOBJECT_H
45-
# include "cpython/listobject.h"
45+
# include "cpython/listobject.h"
4646
# undef Py_CPYTHON_LISTOBJECT_H
4747
#endif
4848

Include/methodobject.h

+3-5
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,9 @@ PyAPI_FUNC(PyObject *) PyCMethod_New(PyMethodDef *, PyObject *,
103103

104104

105105
#ifndef Py_LIMITED_API
106-
107-
#define Py_CPYTHON_METHODOBJECT_H
108-
#include "cpython/methodobject.h"
109-
#undef Py_CPYTHON_METHODOBJECT_H
110-
106+
# define Py_CPYTHON_METHODOBJECT_H
107+
# include "cpython/methodobject.h"
108+
# undef Py_CPYTHON_METHODOBJECT_H
111109
#endif
112110

113111
#ifdef __cplusplus

Include/object.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ times.
724724

725725
#ifndef Py_LIMITED_API
726726
# define Py_CPYTHON_OBJECT_H
727-
# include "cpython/object.h"
727+
# include "cpython/object.h"
728728
# undef Py_CPYTHON_OBJECT_H
729729
#endif
730730

Include/objimpl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ PyAPI_FUNC(int) PyObject_GC_IsFinalized(PyObject *);
205205

206206
#ifndef Py_LIMITED_API
207207
# define Py_CPYTHON_OBJIMPL_H
208-
# include "cpython/objimpl.h"
208+
# include "cpython/objimpl.h"
209209
# undef Py_CPYTHON_OBJIMPL_H
210210
#endif
211211

Include/pyerrors.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ PyAPI_FUNC(int) PyOS_vsnprintf(char *str, size_t size, const char *format, va_l
314314

315315
#ifndef Py_LIMITED_API
316316
# define Py_CPYTHON_ERRORS_H
317-
# include "cpython/pyerrors.h"
317+
# include "cpython/pyerrors.h"
318318
# undef Py_CPYTHON_ERRORS_H
319319
#endif
320320

Include/pylifecycle.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ PyAPI_FUNC(PyOS_sighandler_t) PyOS_setsig(int, PyOS_sighandler_t);
6464

6565
#ifndef Py_LIMITED_API
6666
# define Py_CPYTHON_PYLIFECYCLE_H
67-
# include "cpython/pylifecycle.h"
67+
# include "cpython/pylifecycle.h"
6868
# undef Py_CPYTHON_PYLIFECYCLE_H
6969
#endif
7070

Include/pymem.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ PyAPI_FUNC(void) PyMem_Free(void *ptr);
9393

9494
#ifndef Py_LIMITED_API
9595
# define Py_CPYTHON_PYMEM_H
96-
# include "cpython/pymem.h"
96+
# include "cpython/pymem.h"
9797
# undef Py_CPYTHON_PYMEM_H
9898
#endif
9999

Include/pystate.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ PyAPI_FUNC(PyThreadState *) PyGILState_GetThisThreadState(void);
132132

133133
#ifndef Py_LIMITED_API
134134
# define Py_CPYTHON_PYSTATE_H
135-
# include "cpython/pystate.h"
135+
# include "cpython/pystate.h"
136136
# undef Py_CPYTHON_PYSTATE_H
137137
#endif
138138

Include/pythonrun.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ PyAPI_FUNC(int) PyOS_CheckStack(void);
3434

3535
#ifndef Py_LIMITED_API
3636
# define Py_CPYTHON_PYTHONRUN_H
37-
# include "cpython/pythonrun.h"
37+
# include "cpython/pythonrun.h"
3838
# undef Py_CPYTHON_PYTHONRUN_H
3939
#endif
4040

Include/sysmodule.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ PyAPI_FUNC(PyObject *) PySys_GetXOptions(void);
3131

3232
#ifndef Py_LIMITED_API
3333
# define Py_CPYTHON_SYSMODULE_H
34-
# include "cpython/sysmodule.h"
34+
# include "cpython/sysmodule.h"
3535
# undef Py_CPYTHON_SYSMODULE_H
3636
#endif
3737

Include/traceback.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ PyAPI_DATA(PyTypeObject) PyTraceBack_Type;
1616

1717
#ifndef Py_LIMITED_API
1818
# define Py_CPYTHON_TRACEBACK_H
19-
# include "cpython/traceback.h"
19+
# include "cpython/traceback.h"
2020
# undef Py_CPYTHON_TRACEBACK_H
2121
#endif
2222

Include/tupleobject.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ PyAPI_FUNC(PyObject *) PyTuple_Pack(Py_ssize_t, ...);
3636

3737
#ifndef Py_LIMITED_API
3838
# define Py_CPYTHON_TUPLEOBJECT_H
39-
# include "cpython/tupleobject.h"
39+
# include "cpython/tupleobject.h"
4040
# undef Py_CPYTHON_TUPLEOBJECT_H
4141
#endif
4242

Include/unicodeobject.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ PyAPI_FUNC(int) PyUnicode_IsIdentifier(PyObject *s);
10431043

10441044
#ifndef Py_LIMITED_API
10451045
# define Py_CPYTHON_UNICODEOBJECT_H
1046-
# include "cpython/unicodeobject.h"
1046+
# include "cpython/unicodeobject.h"
10471047
# undef Py_CPYTHON_UNICODEOBJECT_H
10481048
#endif
10491049

0 commit comments

Comments
 (0)