diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2001-06-27 18:59:43 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2001-06-27 18:59:43 (GMT) |
commit | 8f4558583f3b7e2d98e13baec06c2f43c9e6a723 (patch) | |
tree | e0fbd260591171ba41e443fd38b90b61210be03a /Modules/sre.h | |
parent | 3f8c2e1616f1d67730ffef40f3077247dfe46e26 (diff) | |
download | cpython-8f4558583f3b7e2d98e13baec06c2f43c9e6a723.zip cpython-8f4558583f3b7e2d98e13baec06c2f43c9e6a723.tar.gz cpython-8f4558583f3b7e2d98e13baec06c2f43c9e6a723.tar.bz2 |
use Py_UNICODE_WIDE instead of USE_UCS4_STORAGE and Py_UNICODE_SIZE
tests.
Diffstat (limited to 'Modules/sre.h')
-rw-r--r-- | Modules/sre.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/sre.h b/Modules/sre.h index 61a0208..632f47e 100644 --- a/Modules/sre.h +++ b/Modules/sre.h @@ -13,8 +13,9 @@ #include "sre_constants.h" -/* size of a code word (must be unsigned short or larger) */ -#ifdef USE_UCS4_STORAGE +/* size of a code word (must be unsigned short or larger, and + large enough to hold a Py_UNICODE character) */ +#ifdef Py_UNICODE_WIDE #define SRE_CODE unsigned long #else #define SRE_CODE unsigned short |