Subject: Re: a new KNF (and some comments)
To: None <thorpej@nas.nasa.gov>
From: Atsushi Onoe <onoe@sm.sony.co.jp>
List: tech-misc
Date: 01/21/2000 11:25:44
> I think that should be written as:
>
> struct foo {
> u_int8_t bar:1,
> baz:5,
> zap:2;
> };
If my memory is correct, all types except "(signed) int" and "unsigned int"
for bitfield are prohibited by ANSI. And you should not expect the size or
alignment of whole bitfields. This is why bitfield should not used in
protool header.
Atsushi Onoe