[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-indent] Bug#212320: indent: --blank-lines-after-procedures does not
From: |
Santiago Vila |
Subject: |
[Bug-indent] Bug#212320: indent: --blank-lines-after-procedures does not work in all situations (fwd) |
Date: |
Tue, 23 Sep 2003 11:43:23 +0200 (CEST) |
Hello.
I've received the following report from the Debian bug system.
[ Please keep the Cc: lines when replying, thanks ].
---------- Forwarded message ----------
From: Erik de Castro Lopo <address@hidden>
To: Debian Bug Tracking System <address@hidden>
Date: Tue, 23 Sep 2003 15:15:02 +1000
Subject: Bug#212320: indent: --blank-lines-after-procedures does not work
in all situations
Package: indent
Version: 2.2.9-2
Severity: normal
[...]
Running indent with :
indent -npro --blank-lines-after-procedures <file.c
If file.c looks like this:
------------------------
int
main (void)
{
do_something ();
return 0;
}
void
do_something (void)
{
return;
}
------------------------
indent will work correctly; a blank line will be inserted after the first
closing brace and before the void.
However, if file.c looks like this:
------------------------
int
main (void)
{
do_something ();
return 0;
}
static void
do_something (void)
{
return;
}
------------------------
no blank line will be inserted. The only difference between the two files
is that do_something() is declared static in the second example.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-indent] Bug#212320: indent: --blank-lines-after-procedures does not work in all situations (fwd),
Santiago Vila <=