diff options
author | Stefan Krah <stefan@bytereef.org> | 2010-06-24 10:25:08 (GMT) |
---|---|---|
committer | Stefan Krah <stefan@bytereef.org> | 2010-06-24 10:25:08 (GMT) |
commit | 2f7105dde7a01b85640aefb92e8131c02c82e954 (patch) | |
tree | 65590f9842804bb6ec9f2c621a306fa580265a35 /Include | |
parent | ce8b3f7c0109aaae4f4ee04a32b8b10d9c8190cd (diff) | |
download | cpython-2f7105dde7a01b85640aefb92e8131c02c82e954.zip cpython-2f7105dde7a01b85640aefb92e8131c02c82e954.tar.gz cpython-2f7105dde7a01b85640aefb92e8131c02c82e954.tar.bz2 |
Add specification for the Py_IS* macros in pyctype.h.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pyctype.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/pyctype.h b/Include/pyctype.h index 0d211ec..c5cc614 100644 --- a/Include/pyctype.h +++ b/Include/pyctype.h @@ -11,6 +11,9 @@ extern const unsigned int _Py_ctype_table[256]; +/* Unlike their C counterparts, the following macros are not meant to + * handle an int with any of the values [EOF, 0-UCHAR_MAX]. The argument + * must be a signed/unsigned char. */ #define Py_ISLOWER(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_LOWER) #define Py_ISUPPER(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_UPPER) #define Py_ISALPHA(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_ALPHA) |