[Python-checkins] CVS: python/dist/src/Include unicodeobject.h,2.29,2.30

Tim Peters tim_one@users.sourceforge.net
2001年8月09日 15:21:57 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv28410/python/dist/src/Include
Modified Files:
	unicodeobject.h 
Log Message:
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.
Index: unicodeobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/unicodeobject.h,v
retrieving revision 2.29
retrieving revision 2.30
diff -C2 -d -r2.29 -r2.30
*** unicodeobject.h	2001年07月31日 14:30:16	2.29
--- unicodeobject.h	2001年08月09日 22:21:55	2.30
***************
*** 122,131 ****
 #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;
 
--- 122,125 ----

AltStyle によって変換されたページ (->オリジナル) /