[PATCH RFC] PARAMS elimination - phase 2

Andrew Cagney ac131313@cygnus.com
Thu Jun 1 01:29:00 GMT 2000


Kevin Buettner wrote:
> 
> On May 31,  5:59pm, Andrew Cagney wrote:
> 
> > As an asside, the indent that was used had a bug with how it formatted
> > structs.  It would format them as either
> >
> >       struct x
> >         {
> >           int i;
> >         };
> >
> >       struct x
> >       {
> >         int i;
> >       };
> 
> Which form is preferred?

What ever emacs does.  Trying 19.34:

	struct s
	{
	  int i;
	  union u
	  {
	    int i;
	    int j;
	  }
	  u;
	};

and given:

	struct s { int i; union u { int i; int j; } u; };

cagney@b1.cygnus.com$ /usr/local/bin/indent-1.9.1 < x.c
struct s
  {
    int i;
    union u
      {
        int i;
        int j;
      }
    u;
  };
cagney@b1.cygnus.com$ /usr/local/bin/indent-2.2.5 < x.c
struct s
{
  int i;
  union u
  {
    int i;
    int j;
  }
  u;
};

so the latter.

	Andrew


More information about the Gdb-patches mailing list