bug-indent
[Top][All Lists]
Advanced

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

indent changes file after two consecutive runs


From: Guy Aloni
Subject: indent changes file after two consecutive runs
Date: Tue, 6 Nov 2007 09:50:58 +0200

Here are the parameters:

indent -nbad -bap -bls -br -brs -c1 -cdw -ce -ci1 -cli4 -l140 -lp -nut -ncs
-i4 -nbbo -nhnl -nbfda -nbc -nlps -lp -npcs -npsl -nsaf -sai -saw -sc -npcs
-nprs -ss -sob *

 

I've make a .c file looking like this:

 

void main() {

    While (0)

 

    {

    }

}

 

After the first run it looks like this:

void main() {

    while (0)

    {

    }

}

 

And after the second run (with the same parameters) if looks like this (as
it should):

void main() {

    while (0) {

    }

}

 

I've attached the files as reference.

Thanks,

Guy Aloni

Attachment: after-second-iteration.c
Description: Binary data

Attachment: source.c
Description: Binary data

Attachment: after-first-iteration.c
Description: Binary data


reply via email to

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