🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Charlie Xiaoli Huang Thu, 03 Sep 1992 17:07
indent 1.6 and typedef
#726
Author: Charlie Xiaoli Huang
Date: Thu, 03 Sep 1992 17:07
32 lines
963 bytes
Hi,

I installed indent 1.6 on a Sun IPC runnning 4.1.1 and 
using gcc 2.2.2. Everything seemed fine except for the
following annoying "feature": it forces a newline after
each of of typedef.

For example:

	original:

	typedef struct foo {
		int bar;
	} foo_t;

The outcome will always become

	typedef struct foo {
		int bar;
	}
	foo_t;

(the placement of braces and indentations are subject to
options and indent.pro, but the newline is always forced
before "foo_t").

Anyway I can turn this off? RTFM didn't help much on this
"feature".

Thanks,

hxl
Indent 1.6 bug (-di option) (was: indent 1.6 and typedef)
#731
Author: 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 ).
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