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)
This commit is contained in:
Fredrik Lundh 2001-06-26 17:17:07 +00:00
parent 45714e9ecb
commit 1294ad0c59
3 changed files with 25 additions and 12 deletions

View file

@ -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