This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [PATCH RFC] PARAMS elimination - phase 2
- To: Kevin Buettner <kevinb at cygnus dot com>
- Subject: Re: [PATCH RFC] PARAMS elimination - phase 2
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 01 Jun 2000 18:29:02 +1000
- CC: gdb-patches at sourceware dot cygnus dot com
- Organization: Cygnus Solutions
- References: <1000530232352.ZM5368@ocotillo.lan> <3934C674.DBE2A089@cygnus.com> <1000531161902.ZM6568@ocotillo.lan>
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