diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-08-09 22:21:55 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-08-09 22:21:55 (GMT) |
commit | 772747b3f1f4d6a70c025a7368ed25f039ccff1d (patch) | |
tree | 0c87c4e82b3bcb19f7532d916fd028d156ab76f8 /Include | |
parent | ab9ba27dc066adc6423ea137b9481cf524d10ffd (diff) | |
download | cpython-772747b3f1f4d6a70c025a7368ed25f039ccff1d.zip cpython-772747b3f1f4d6a70c025a7368ed25f039ccff1d.tar.gz cpython-772747b3f1f4d6a70c025a7368ed25f039ccff1d.tar.bz2 |
SF patch #438013 Remove 2-byte Py_UCS2 assumptions
Removed all instances of Py_UCS2 from the codebase, and so also (I hope)
the last remaining reliance on the platform having an integral type
with exactly 16 bits.
PyUnicode_DecodeUTF16() and PyUnicode_EncodeUTF16() now read and write
one byte at a time.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/unicodeobject.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 04c5b3e..a7e50c3 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -121,12 +121,6 @@ typedef unsigned int Py_UCS4; typedef unsigned long Py_UCS4; #endif -#if SIZEOF_SHORT == 2 -typedef unsigned short Py_UCS2; -#else -#error Cannot find a two-byte type -#endif - typedef PY_UNICODE_TYPE Py_UNICODE; /* --- UCS-2/UCS-4 Name Mangling ------------------------------------------ */ |