bug-indent
[Top][All Lists]
Advanced

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

Re: suggestions: adding braces to single statement do, if, for, and whi


From: indent
Subject: Re: suggestions: adding braces to single statement do, if, for, and while constructs; expanding multiple statements on single line to multiple lines
Date: Thu, 25 Nov 2010 19:59:51 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.1.15) Gecko/20101026 SUSE/3.0.10 Thunderbird/3.0.10

1) will never happen. intent also doesn't make coffee.

2) This is basic functionality (or did you really mean  y gets converted
to Y ?):

> echo "X = 1; y = 2; z = 3;" | indent -st

X = 1;
y = 2;
z = 3;

On 22/11/10 22:08, Dukeman, Gregory A. (MSFC-EV42) wrote:
> Hello,
>
> A couple of requests/suggestions:
>
> 1)   
>
> [ convert:  ]
>
>      if ( x<2 ) x=2;
>
> [to something like: ]
>
>      if ( x<2 ) 
>      {
>         X = 2;
>      }
>
>
> 2)
>
> [ convert: ]
>    
>     X = 1; y = 2; z = 3;
>
>  [ to something like: ]
>
>     X = 1;
>     Y = 2;
>     Z = 3;
>
>
>
> Thanks!
> Greg
>
> --------------------------------------------------------------
> Greg A. Dukeman, Lead
> Launch Vehicle Analysis Team
> Guidance, Navigation and Mission Analysis Branch 
> Mail Stop: EV42 
> NASA Marshall Space Flight Center 
> MSFC, AL 35812
> phone: 256-544-5464
> fax: 256-544-2825
> --------------------------------------------------------------
>
>
>
> _______________________________________________
> 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]