Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Greg Siebers
Thu, 13 Jul 1989 21:56
GNU-indent bug with -psl
Author: Greg Siebers
Date: Thu, 13 Jul 1989 21:56
Date: Thu, 13 Jul 1989 21:56
69 lines
1600 bytes
1600 bytes
In both Sun's version of indent (SunOS4.0.1) and GNU-indent 1.0, the presence
of form-feed characters before a function that has a defined type will prevent
the -psl switch from working properly. The use of -Tdefined_type also does not
help, but if the function happens to be declared static, then -psl works. For
example:
INPUT TO INDENT:
defined_type func_one()
{
}
/* previous line was simply ^L */
defined_type func_two()
{
}
/* previous line was simply ^L */
static defined_type func_three()
{
}
defined_type func_four()
{
}
RESULTING OUTPUT:
defined_type
func_one()
{
}
/* previous line was simply ^L */
defined_type func_two()
{
}
/* previous line was simply ^L */
static defined_type
func_three()
{
}
defined_type
func_four()
{
}
-----------------------------------------------------------------------
Gregory R. Siebers | MAIL: P.O. Box 200195, Austin, TX 78720
MCC CAD Program | ARPA: siebers@mcc.com
(512) 338-3656 | UUCP: ...!cs.utexas.edu!milano!cadillac!siebers
-----------------------------------------------------------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads