Subject: Re: a new KNF (and some comments)
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Luke Mewburn <lukem@cs.rmit.edu.au>
List: tech-misc
Date: 01/21/2000 12:37:55
Jason Thorpe writes:
> I think we should also put a blurb in here about bitfields.  I find it
> hard to keep track of the following:
> 
> struct foo {
> 	u_int8_t	bar:1;
> 	u_int8_t	baz:5;
> 	u_int8_t	zap:2;
> };
> 
> I think that should be written as:
> 
> struct foo {
> 	u_int8_t	bar:1,
> 			baz:5,
> 			zap:2;
> };

sounds like a good idea. indent gets confused though :-)