Another bit of ISO C conversion...
Steven Bosscher
s.bosscher@student.tudelft.nl
Mon Dec 8 00:39:00 GMT 2003
On Monday 08 December 2003 01:27, Zack Weinberg wrote:
> We've had a lot of people put in time to convert GCC to ISO C style,
> and I want to say that I appreciate all of that effort. There's one
> transformation that hasn't been getting done, though: use of #elif.
> K&R C didn't have this directive so we have lots of nested #if
> blocks. For example, from hwint.h:
Hmm looks like a good cleanup.
> Note also that it is no longer necessary to indent the leading # of
> an #error directive; or, turnabout, it is no longer necessary to write
> the leading # of any directive in column 1, so this becomes a style
> decision.
Before going to convert all files to #elif, can we agree on what style we
should use?
I would prefer to keep # in column 1 so you can still grep for ^#define etc.
In config/, there are quite a few files with commented out /* #defines */...
Gr.
Steven
More information about the Gcc
mailing list