summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2001-06-26 17:17:07 +0000
committerFredrik Lundh <fredrik@pythonware.com>2001-06-26 17:17:07 +0000
commiteca39ab1c2d7dffb47637963b3a19e6ac2dc2e59 (patch)
tree8eca111a1fe1b7e2886b3d14bc72ccdb205b1853 /Modules
parent36ccf9b9bb6ea9e742152fc313cceb12f23114f6 (diff)
downloadcpython-eca39ab1c2d7dffb47637963b3a19e6ac2dc2e59.tar.gz
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')
-rw-r--r--Modules/sre.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/sre.h b/Modules/sre.h
index bf58eb5434..61a020896a 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