[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-indent] indent -cdw not working?
From: |
Stacey Campbell |
Subject: |
[Bug-indent] indent -cdw not working? |
Date: |
Sun, 9 Feb 2003 18:08:32 -0800 (PST) |
The indent man page leads me to think there's a bug with -cdw. If
the input C code doesn't already have while "cuddled" to the preceeding
curley brace then -cdw seems to be ignored.
$ indent -npro --braces-on-if-line -cdw tst.c
$ cat tst.c
int
foo (int a, int b)
{
int c;
c = a;
do {
c += b;
}
while (c < 100);
return c;
}
Here's the man page:
[...] For example, with `-cdw' you get the following:
do {
x--;
} while (x);
With `-ncdw' that code would appear as
do {
x--;
}
while (x);
Regards,
Stacey
http://www.pigtailproductions.com/stacey/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-indent] indent -cdw not working?,
Stacey Campbell <=