From: Greg C. <gch...@sb...> - 2011-02-28 13:23:51
|
On 2011-02-28 11:22Z, John Brown wrote: > On Mon, 28 Feb 2011 10:39:20 +0000, Keith Marshall wrote: >> On 28 February 2011 10:12, Michael T. wrote: [snip header snippet] >> Well, that doesn't look right. Besides the possibly flawed logic, the >> indentation of the # symbols introducing the preprocessor directives is >> rank bad style; they should all be in column 1. GCC will tolerate this, >> but some other compilers may not be so forgiving. As a matter of style, I keep the '#' in the first column. Yet the example in K&R2, page 91, 4.11.3, indents '#define' as in the [snipped] header: #if SYSTEM == SYSV #define HDR "sysv.h" and C99 [6.10/2] and C++2003 [16/1] require only that '#' "follows white space containing at least one new-line character" Some ancient preprocessors choked on this: http://stackoverflow.com/questions/1854550/c-macro-define-indentation but they're not C89 compliant. > What indentation? I don't see any indentation. Then your email program suppressed it, but it's visible here: http://article.gmane.org/gmane.comp.gnu.mingw.user/35690 |