[Python-checkins] python/dist/src/Objects stringobject.c, 2.215,
2.216
montanaro at users.sourceforge.net
montanaro at users.sourceforge.net
Mon Dec 22 11:31:43 EST 2003
Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv14738/Objects
Modified Files:
stringobject.c
Log Message:
There are places in Python which assume bytes have 8-bits. Formalize that a
bit by checking the value of UCHAR_MAX in Include/Python.h. There was a
check in Objects/stringobject.c. Remove that. (Note that we don't define
UCHAR_MAX if it's not defined as the old test did.)
Index: stringobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/stringobject.c,v
retrieving revision 2.215
retrieving revision 2.216
diff -C2 -d -r2.215 -r2.216
*** stringobject.c 15 Dec 2003 18:49:19 -0000 2.215
--- stringobject.c 22 Dec 2003 16:31:41 -0000 2.216
***************
*** 9,16 ****
#endif
- #if !defined(HAVE_LIMITS_H) && !defined(UCHAR_MAX)
- #define UCHAR_MAX 255
- #endif
-
static PyStringObject *characters[UCHAR_MAX + 1];
static PyStringObject *nullstring;
--- 9,12 ----
More information about the Python-checkins
mailing list