[Python-checkins] CVS: python/dist/src/Modules sre.h,2.18,2.19
Fredrik Lundh
effbot@users.sourceforge.net
Tue, 26 Jun 2001 10:17:09 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv28886/Modules
Modified Files:
sre.h
Log Message:
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)
Index: sre.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/sre.h,v
retrieving revision 2.18
retrieving revision 2.19
diff -C2 -r2.18 -r2.19
*** sre.h 2000/08/03 16:29:50 2.18
--- sre.h 2001/06/26 17:17:07 2.19
***************
*** 15,19 ****
--- 15,23 ----
/* 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 {