indent 2.2.9: -bap conflicts with -npsl ?

"dan orzechowski" <[email protected]>
Newsgroups gmane.comp.gnu.indent.bugs
Message-ID <[email protected]>
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:

--

[user@host: ~]$ cat test.c
#include <stdio.h>
int a = 0;
void foo(void)
{
  printf("hi\n");
}
int main(void)
{
  foo();

  return (0);
}
[user@host: ~]$ indent --version
GNU indent 2.2.9
[user@host: ~]$ 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);
}
[user@host: ~]$ 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.