[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-indent] externs/prototypes and --procnames-start-lines
From: |
Trammell Hudson |
Subject: |
[Bug-indent] externs/prototypes and --procnames-start-lines |
Date: |
Tue, 07 Jan 2003 16:24:19 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm using indent 2.2.8a, built from sources on RH7.2 with gcc 3.0.4.
Here is a simple test case that I believe is failing:
quartz:/tmp: cat extern.c
extern void foo( int a, int b );
void foo( int a, int b ) { printf( "hello, world!\n" ); }
quartz:/tmp: indent --ignore-profile --procnames-start-lines < extern.c
extern void foo (int a, int b);
void
foo (int a, int b)
{
~ printf ("hello, world!\n");
}
I would have expected the prototype for foo to be split on two lines,
much like the function declaration.
It seems that the complementary argument isn't consistent, either.
- --dont-break-procedure-type seems to be the opposite of
- --procnames-start-lines, but there is no --break-procedure-type option.
Also, is there a indent.pro for the indent source code itself? I prefer
the way that it presents arguments to the --break-function-decl-args
treatment. I would like to have my functions formatted like this, but
can't find a set of arguments that will produce it:
void
foo(
int a,
int b
)
{
...
}
Thanks!
Trammell
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE+G0WDMXvNuse+YRoRAshTAJ9a5NogKG75PZAhxHYbFyj3Nu2nHACfcdxR
yIrAfP91RGIiaBv1FoYMi+M=
=08rv
-----END PGP SIGNATURE-----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-indent] externs/prototypes and --procnames-start-lines,
Trammell Hudson <=