summaryrefslogtreecommitdiffstats
path: root/Modules/sre.h
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2001-06-26 17:17:07 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2001-06-26 17:17:07 (GMT)
commit1294ad0c59d4a8bfbdd3f4606653d7aa20b2969e (patch)
tree5ba823af8075f10fdf12cf3657041324d73ff342 /Modules/sre.h
parent45714e9ecb97c53254d644ecee00d66d36a21449 (diff)
downloadcpython-1294ad0c59d4a8bfbdd3f4606653d7aa20b2969e.zip
cpython-1294ad0c59d4a8bfbdd3f4606653d7aa20b2969e.tar.gz
cpython-1294ad0c59d4a8bfbdd3f4606653d7aa20b2969e.tar.bz2
experimental UCS-4 support: added USE_UCS4_STORAGE define to
unicodeobject.h, which forces sizeof(Py_UNICODE) == sizeof(Py_UCS4). (this may be good enough for platforms that doesn't have a 16-bit type. the UTF-16 codecs don't work, though)
Diffstat (limited to 'Modules/sre.h')
-rw-r--r--Modules/sre.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/sre.h b/Modules/sre.h
index bf58eb5..61a0208 100644
--- a/Modules/sre.h
+++ b/Modules/sre.h
@@ -14,7 +14,11 @@
#include "sre_constants.h"
/* size of a code word (must be unsigned short or larger) */
+#ifdef USE_UCS4_STORAGE
+#define SRE_CODE unsigned long
+#else
#define SRE_CODE unsigned short
+#endif
typedef struct {
PyObject_VAR_HEAD