bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-indent] Bug with "-bap" option


From: Jules Colding
Subject: [Bug-indent] Bug with "-bap" option
Date: 20 Oct 2002 07:58:34 +0200

Hi,

Running "indent -bap foo.c" will not produce an empty line between the
two functions. foo.c contains:

void
bar (void)
{                       
  int a;

  switch (a)
    {
    }
}
int
main (int argc, char** argv)
{
  return 1;
}

But adding a ';' after the switch statement will make it work:

void
bar (void)
{                               
  int a;

  switch (a)
    {
    };
}
int
main (int argc, char** argv)
{
  return 1;
}

I am using indent version 2.2.8.

As a side note: It would be very convenient with a -bapN option. I
usually put 2 blank lines between functions. I think that it makes the
code more readable.


Best regards, 
  jules





reply via email to

[Prev in Thread] Current Thread [Next in Thread]