29.1 Indentation style
- We recommend using the BSD Kernel Normal Form coding style located at
http://cvsweb.netbsd.org/bsdweb.cgi/sharesrc/share/misc/style?rev=HEAD&content-type=text/x-cvsweb-markup
- Although KNF is specified for C, it also applies reasonably well to C++ and Tcl.
Most of ns already follows KNF and it is also extensively used for the BSD and
Linux kernels.
- The high order bit is 8-space indents.
Using 8-space indents avoid confusion about what a "tab" character
represents. A downside is it makes deeply nested looping structures
hard to fit in 80 columns. (Some people consider this a feature. :-)
Tom Henderson
2011-11-05