I'm running into a problem with indent 2.2.9 where blank lines aren't
being placed between my functions (-bap) if I also want to keep the
function's return type on the same line as the function name (-npsl).
I've pasted the output of my small test case below:
--
[EMAIL PROTECTED]: ~]$ cat test.c
#include <stdio.h>
int a = 0;
void foo(void)
{
printf("hi\n");
}
int main(void)
{
foo();
return (0);
}
[EMAIL PROTECTED]: ~]$ indent --version
GNU indent 2.2.9
[EMAIL PROTECTED]: ~]$ indent -bap test.c -o /dev/stdout
#include <stdio.h>
int a = 0;
int
foo (void)
{
printf ("hi\n");
}
int
main (void)
{
foo ();
return (0);
}
[EMAIL PROTECTED]: ~]$ indent -bap -npsl test.c -o /dev/stdout
#include <stdio.h>
int a = 0;
int foo (void)
{
printf ("hi\n");
}
int main (void)
{
foo ();
return (0);
}
--
Is this intentional behavior? If so (or even if not), is there a way
I can have whitespace between functions and still have the function
declaration on a single line? Apologies in advance if this has
already been asked or answered; quick archive searches for 'npsl' and
'bap' didn't return anything useful.
thanks
- dan
_______________________________________________
bug-indent mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-indent