bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnulib] "# " versus " #" when indenting preprocessor directives


From: Bruno Haible
Subject: Re: [Bug-gnulib] "# " versus " #" when indenting preprocessor directives
Date: Mon, 11 Aug 2003 20:43:33 +0200
User-agent: KMail/1.5

Paul Eggert wrote:
> While we're on the subject of indenting preprocessing directives,
> would anyone object to using this style:
>
>   #ifndef POINTER_TYPE
>    #ifdef __STDC__
>     #define POINTER_TYPE void
>    #else
>     #define POINTER_TYPE char
>    #endif
>   #endif
>
> instead of this style:
>
> #  ifndef POINTER_TYPE
> #   ifdef __STDC__
> #    define POINTER_TYPE void
> #   else
> #    define POINTER_TYPE char
> #   endif
> #  endif

The former style is more attractive to many people (including me during
my first 5 years of C hacking). The problem is that there are tons of
GNU code using the latter style, and like Jim said today "maintaining a
consistent style of code formatting [is a] very worthy goal".

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]