From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Aidan Van Dyk <aidan@highrise.ca>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: pgindent weirdness
Date: Wed, 20 Apr 2011 14:25:47 -0400
Message-ID: <4DAF252B.7010800@dunslane.net> (raw)
In-Reply-To: <13548.1303319405@sss.pgh.pa.us>
References: <201104200948.p3K9mY501163@momjian.us>
<4DAEF8AB.5030103@dunslane.net>
<27646.1303314228@sss.pgh.pa.us>
<4DAF086F.6050305@dunslane.net>
<28426.1303316942@sss.pgh.pa.us>
<4DAF0C21.2070505@dunslane.net>
<BANLkTim7sY97Nr4qG5REjHzuxG-BQv=ovA@mail.gmail.com>
<13548.1303319405@sss.pgh.pa.us>
On 04/20/2011 01:10 PM, Tom Lane wrote:
> Aidan Van Dyk<aidan@highrise.ca> writes:
>> Since the general form seems to be to declare things as:
>> typedef struct foo { ... } foo;
>> Is there any reason why we see any struct foo in the sources other
>> than in the typedef line?
> It gives an escape hatch in case you need a forward reference to the
> struct, ie you can do "struct foo *" even before this. But I agree that
> 90% of those struct tags are useless, and so the habit of tagging every
> typedef this way is mostly legacy.
>
>
Yeah, I think it would be reasonable to remove lots of them, especially
in argument lists where I think they're a bit ugly anyway.
I'm not sure if now is a good time to be doing that sort of cleanup -
maybe we should just add the typedefs we think we're missing to the
typedefs list and try another pgindent run, and then make these changes
early in 9.2 dev cycle.
cheers
andrew
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: andrew@dunslane.net, tgl@sss.pgh.pa.us, aidan@highrise.ca, bruce@momjian.us, robertmhaas@gmail.com
Subject: Re: pgindent weirdness
In-Reply-To: <4DAF252B.7010800@dunslane.net>
References: <201104200948.p3K9mY501163@momjian.us> <4DAEF8AB.5030103@dunslane.net> <27646.1303314228@sss.pgh.pa.us> <4DAF086F.6050305@dunslane.net> <28426.1303316942@sss.pgh.pa.us> <4DAF0C21.2070505@dunslane.net> <BANLkTim7sY97Nr4qG5REjHzuxG-BQv=ovA@mail.gmail.com> <13548.1303319405@sss.pgh.pa.us> <4DAF252B.7010800@dunslane.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox