Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!decwrl!pa.dec.com!shlump.nac.dec.com!tkou02.enet.dec.com!jit345!diamond From: diamond@jit345.swstokyo.dec.com (Norman Diamond) Newsgroups: comp.lang.c Subject: Re: int32 et al. Message-ID: <1991Jan25.023339.10802@tkou02.enet.dec.com> Date: 25 Jan 91 02:33:39 GMT References: <14905@smoke.brl.mil> <1991Jan21.135216.23447@odi.com> <1991Jan23.120327.17759@watmath.waterloo.edu> <1991Jan24.031542.7790@iguana.uucp> Sender: news@tkou02.enet.dec.com (USENET News System) Reply-To: diamond@jit345.enet@tkou02.enet.dec.com (Norman Diamond) Organization: Digital Equipment Corporation Japan , Tokyo Lines: 23 In article <1991Jan24.031542.7790@iguana.uucp> merce@iguana.uucp (Jim Mercer) writes: >[ i'm just jumping into this thread, so please forgive me if this was already > said ] It hasn't been said (I think). But it still can't be forgiven. >could the problem be resolved as such: >/* define the type which is 8 bits on your system */ >#define BITS8 char >/* #define BITS8 int */ >/* #define BITS8 some_other_type */ No. >this also assumes your system has an 8 bit type. Exactly. And in C, there are no types smaller than char. Inside a structure, bitfields can be smaller than a char, but that doesn't help this problem. -- Norman Diamond diamond@tkov50.enet.dec.com If this were the company's opinion, I wouldn't be allowed to post it.