@@ -132,11 +132,11 @@ PyAPI_FUNC(char *) _PyMem_Strdup(const char *str);
132132 */
133133
134134#define PyMem_New (type , n ) \
135- ( ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
136- ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
135+ ( ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
136+ ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
137137#define PyMem_NEW (type , n ) \
138- ( ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
139- ( (type *) PyMem_MALLOC((n) * sizeof(type)) ) )
138+ ( ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
139+ ( (type *) PyMem_MALLOC((n) * sizeof(type)) ) )
140140
141141/*
142142 * The value of (p) is always clobbered by this macro regardless of success.
@@ -145,17 +145,17 @@ PyAPI_FUNC(char *) _PyMem_Strdup(const char *str);
145145 * caller's memory error handler to not lose track of it.
146146 */
147147#define PyMem_Resize (p , type , n ) \
148- ( (p) = ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
149- (type *) PyMem_Realloc((p), (n) * sizeof(type)) )
148+ ( (p) = ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
149+ (type *) PyMem_Realloc((p), (n) * sizeof(type)) )
150150#define PyMem_RESIZE (p , type , n ) \
151- ( (p) = ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
152- (type *) PyMem_REALLOC((p), (n) * sizeof(type)) )
151+ ( (p) = ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
152+ (type *) PyMem_REALLOC((p), (n) * sizeof(type)) )
153153
154154/* PyMem{Del,DEL} are left over from ancient days, and shouldn't be used
155155 * anymore. They're just confusing aliases for PyMem_{Free,FREE} now.
156156 */
157- #define PyMem_Del PyMem_Free
158- #define PyMem_DEL PyMem_FREE
157+ #define PyMem_Del PyMem_Free
158+ #define PyMem_DEL PyMem_FREE
159159
160160#ifndef Py_LIMITED_API
161161typedef enum {
@@ -212,7 +212,7 @@ PyAPI_FUNC(void) PyMem_SetAllocator(PyMemAllocatorDomain domain,
212212 - PyObject_Malloc(), PyObject_Realloc() and PyObject_Free()
213213
214214 Newly allocated memory is filled with the byte 0xCB, freed memory is filled
215- with the byte 0xDB. Additionnal checks:
215+ with the byte 0xDB. Additional checks:
216216
217217 - detect API violations, ex: PyObject_Free() called on a buffer allocated
218218 by PyMem_Malloc()
0 commit comments