coding standard
Fergus Henderson
fjh at cs.mu.oz.au
Wed Feb 12 11:52:17 AEDT 1997
Something else for the C coding standard:
All code other than function definitions that is nested inside `#if's
or `#ifdef's should be indented two spaces per level of nesting.
Use #elif to reduce nesting depth, and use
#if defined(FOO) && defined(BLAH)
...
#endif
rather than
#ifdef FOO
#ifdef BAR
..
#endif
#endif
This makes the code much easier to read and hence gives us a better
chance of avoiding conditional compilation bugs.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3 | -- the last words of T. S. Garp.
More information about the developers
mailing list