[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: about the bug for '-ncs'
From: |
indent |
Subject: |
Re: about the bug for '-ncs' |
Date: |
Mon, 24 May 2010 18:49:22 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.1.9) Gecko/20100317 SUSE/3.0.4-1.1.1 Thunderbird/3.0.4 |
No bug present here, see the -T option in the manual.
$ indent -st -kr -ncs *-T ULONG* ncs.c
#define unsigned long ULONG
void main()
{
b = (ULONG)a;
}
BTTW: Good programming practice would suggest that it would be better to do
typedef unsigned long ULONG;
instead of using the preprocessor to define it.
D.
On 23/05/10 05:20, ospfer wrote:
> In the follow case, the '-ncs' do not useful.
>
> //// test.c ////////////
> #define unsigned long ULONG
> void main()
> {
> ...
> b = (ULONG)a;
> }
>
> when run "indent.exe -ncs -npcs test.c"
> it's will put a space after "(ULONG)"
>
> b = (ULONG)a; // ----> b = (ULONG)_a;
>
> =========================================
> Plz help me, How can i make the space not be putted when use '-ncs'
>
>
>
>
> _______________________________________________
> bug-indent mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-indent
>