🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #731

Indent 1.6 bug (-di option) (was: indent 1.6 and typedef)

#731
From: Geraldo Veiga
Date: Sat, 05 Sep 1992 05:08
42 lines
1264 bytes
In article <9209031707.AA11529@chopin.epic> hxl@chopin.UUCP (Charlie Xiaoli Huang) writes:
>Hi,
>
>I installed indent 1.6 on a Sun IPC runnning 4.1.1 and 
>
>	original:
>
>	typedef struct foo {
>		int bar;
>	} foo_t;
>
>The outcome will always become
>
>	typedef struct foo {
>		int bar;
>	}
>	foo_t;
>
I have the same problem as above with any "struct" declaration.  The
patch posted in a ealier message fixes that.  I have an additional
problem when usin "indent -npro -di10" in the following code:


struct
  {
     int       i;
     float     b;
  } a[10];

The result is:

struct
  {
    int       i;
    float     b;
  }

a         [10];


I don't remember having these problems with previous version of indent
( < 1.6 ).
Technical Details
Message-ID: <189fcpINNchr@agate.berkeley.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!violet.berkeley.edu!ilan343
References: <9209031707.AA11529@chopin.epic>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!violet.berkeley.edu!ilan343
From: ilan343@violet.berkeley.edu (Geraldo Veiga)
Subject: Indent 1.6 bug (-di option) (was: indent 1.6 and typedef)
Message-ID: <189fcpINNchr@agate.berkeley.edu>
Sender: gnulists@ai.mit.edu
Organization: University of California, Berkeley
References: <9209031707.AA11529@chopin.epic>
Distribution: gnu
Date: Sat, 5 Sep 1992 05:08:41 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 45