int32 et al.

Norman Diamond diamond at jit345.swstokyo.dec.com
Fri Jan 25 13:33:39 AEST 1991


In article <1991Jan24.031542.7790 at iguana.uucp> merce at 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 at tkov50.enet.dec.com
If this were the company's opinion, I wouldn't be allowed to post it.



More information about the Comp.lang.c mailing list