[gnu.utils.bug] GNU-indent bug with -psl

siebers%cadillac.cad.mcc.com@MCC.COM (Greg Siebers) (07/14/89)

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
 -----------------------------------------------------------------------