Mercurial > cpython-lru_cache-weakref
diff Objects/stringlib/stringdefs.h @ 53543:4b4b59f278bf
Merged revisions 72040 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72040 | eric.smith | 2009-04-27 15:04:37 -0400 (Mon, 27 Apr 2009) | 1 line
Issue #5793: rationalize isdigit / isalpha / tolower, etc. Will port to py3k. Should fix Windows buildbot errors.
........
| author | Eric Smith <eric@trueblade.com> |
|---|---|
| date | Mon, 27 Apr 2009 20:39:49 +0000 |
| parents | 28096ed73153 |
| children | f37f6b9b224b |
line wrap: on
line diff
--- a/Objects/stringlib/stringdefs.h Mon Apr 27 19:41:00 2009 +0000 +++ b/Objects/stringlib/stringdefs.h Mon Apr 27 20:39:49 2009 +0000 @@ -13,8 +13,8 @@ #define STRINGLIB_EMPTY nullstring #define STRINGLIB_ISDECIMAL(x) ((x >= '0') && (x <= '9')) #define STRINGLIB_TODECIMAL(x) (STRINGLIB_ISDECIMAL(x) ? (x - '0') : -1) -#define STRINGLIB_TOUPPER toupper -#define STRINGLIB_TOLOWER tolower +#define STRINGLIB_TOUPPER Py_TOUPPER +#define STRINGLIB_TOLOWER Py_TOLOWER #define STRINGLIB_FILL memset #define STRINGLIB_STR PyBytes_AS_STRING #define STRINGLIB_LEN PyBytes_GET_SIZE
