This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Another bit of ISO C conversion...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]