Date: Fri, 28 Sep 2001 19:53:35 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: Julian Elischer <julian@elischer.org> Cc: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, <obrien@FreeBSD.org>, <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org> Subject: Re: cvs commit: src/sys/sys proc.h Message-ID: <20010928194152.Q52718-100000@delplex.bde.org> In-Reply-To: <Pine.BSF.4.21.0109271716250.65838-100000@InterJet.elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 27 Sep 2001, Julian Elischer wrote: > Personally I'd like to see something that says like: > > "small variations to this rule, for the purpose of aligning > related fields and increasign readability are accepteble." > > and maybe an example > > struct foo { > int foo_a; /* comment */ > struct freddy foo_b; /* Comment aligned as above. */ > union bigwords *foo_c; /* All comments aligned */ > unsigned char foo_chars; /* to allow the eye to scan them */ > /* With overflow also aligned */ > /* the same as above. */ > struct bigstructures foo_vals[NUMSTRUCTS]; /* sometimes you just */ > /* have to bend the rules */ > }; This is a large variation. The small variation is for the "bigstructures" lines. /* * Avoid verbose names and complicated types. */ volatile const struct verbosestructtagname foo_verbosestructmembername[VERBOSEMANIFESTCONSTANTNAME]; Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010928194152.Q52718-100000>