Mercurial > cpython-lru_cache-weakref
diff Include/Python.h @ 72489:dacac31460c0
Rename new macros to conform to naming rules (function macros have "Py" prefix, not "PY").
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Wed, 28 Sep 2011 21:49:49 +0200 |
| parents | 8beaa9a37387 |
| children | 950678c769e6 |
line wrap: on
line diff
--- a/Include/Python.h Wed Sep 28 20:29:27 2011 +0200 +++ b/Include/Python.h Wed Sep 28 21:49:49 2011 +0200 @@ -160,9 +160,9 @@ #define PyDoc_STR(str) "" #endif -#define PY_ARRAY_LENGTH(array) (sizeof(array) / sizeof((array)[0])) +#define Py_ARRAY_LENGTH(array) (sizeof(array) / sizeof((array)[0])) -#define PY_MIN(x, y) (((x) > (y)) ? (y) : (x)) -#define PY_MAX(x, y) (((x) > (y)) ? (x) : (y)) +#define Py_MIN(x, y) (((x) > (y)) ? (y) : (x)) +#define Py_MAX(x, y) (((x) > (y)) ? (x) : (y)) #endif /* !Py_PYTHON_H */
