[Python-Dev] Re: python/dist/src/Objectsunicodeobject.c, 2.204,
2.205
Tim Peters
tim.one at comcast.net
Sat Dec 20 15:06:51 EST 2003
[Skip Montanaro]
> Then how about adding
>
> #if UCHAR_MAX != 255
> #error "Python's source code currently assumes 8-bit characters."
> #endif
>
> right after the HAVE_LIMITS_H test?
I wouldn't object. It should probably then also have
#ifndef UCHAR_MAX
#error ...
#endif
right before it, and stringobject.c's
#if !defined(HAVE_LIMITS_H) && !defined(UCHAR_MAX)
#define UCHAR_MAX 255
#endif
should go away.
More information about the Python-Dev
mailing list