indent changes file after two consecutive runs
"Guy Aloni" <[email protected]>
| Newsgroups | gmane.comp.gnu.indent.bugs |
|---|---|
| Organization | ConteXtream |
| Message-ID | <003001c82049$c593d340$50bb79c0$@com> |
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
_______________________________________________
bug-indent mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-indent
after-second-iteration.c
(application/octet-stream, 32 B)
void main()
{
while (0) {
}
}
source.c
(application/octet-stream, 35 B)
void main()
{
while (0)
{
}
}
after-first-iteration.c
(application/octet-stream, 32 B)
void main()
{
while (0)
{
}
}