[Python-checkins] Re: [Python-Dev]
Re: python/dist/src/Objectsunicodeobject.c, 2.204, 2.205
skip at pobox.com
Fri Dec 19 08:03:00 EST 2003
Nick> Michael Hudson wrote:
>> Hye-Shik Chang <perky at i18n.org> writes:
>>> BTW, do we really support architectures with 9bits-sized char?
>> I don't think we want to make the lives of people porting to such
>> architectures any harder than it already is...
Nick> TI make chips where the smallest addressable unit is 16-bits and
Nick> sizeof(char) == sizeof(int) == 16 bits == 1 byte due to the way
Nick> the C standard is written.
It seems to me the right thing to do is to cook up a test in the configure
script which checks the number of bits in an unsigned char and sets a cpp
macro which the code in question then uses to compile the fast case for
8-bit chars and the slow case otherwise.
More information about the Python-Dev