bug-indent
[Top][All Lists]
Advanced

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

Re: INDENT: Preprocessor directives.


From: david
Subject: Re: INDENT: Preprocessor directives.
Date: Fri, 04 May 2007 21:01:32 +0200
User-agent: Thunderbird 1.5.0.10 (X11/20060911)

Hello David,
No this is not supported. Probably because some early preprocessors did
not support directives where the # was not at the start of the line. C89
does explicitly allow the style you want to use. I can see where you are
coming from and it seems a good addition to the tool, although when it
will get done is another question :~|


David Balaguer wrote:
> Hello.
>
> I'm using Indent at first time and I'm trying to keep a preprocessor
> directives style.
> Preprocessor conditional statements can be indented by to given number
> of spaces, but I want to know if there is any option which keeps the #
> symbol attached to the next word.
> I mean, indented code looks like:
>
> #if X
> #   if Y
> #      define Z 1
> #   else
> #      define Z 0
> #   endif
> #endif
>
> But I'm trying to obtain:
>
> #if X
>  #if Y
>     #define Z 1
>  #else
>     #define Z 0
>  #endif
> #endif
>
> ¿Is there any way to do this?
>
> Thank you so much for your help.
>
> David Balaguer.
>
>
> _______________________________________________
> bug-indent mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-indent
>
>





reply via email to

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