Article View: gnu.utils.bug
Article #293GNU-indent bug with -psl
From: 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
-----------------------------------------------------------------------
Technical Details
Message-ID:
<8907132156.AA12160@cadillac.cad.mcc.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mailrus!tut.cis.ohio-state.edu!MCC.COM!siebers%cadillac.cad.mcc.comShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mailrus!tut.cis.ohio-state.edu!MCC.COM!siebers%cadillac.cad.mcc.com From: siebers%cadillac.cad.mcc.com@MCC.COM (Greg Siebers) Newsgroups: gnu.utils.bug Subject: GNU-indent bug with -psl Message-ID: <8907132156.AA12160@cadillac.cad.mcc.com> Date: 13 Jul 89 21:56:19 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 69