mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
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:
parent
45714e9ecb
commit
1294ad0c59
3 changed files with 25 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue