pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Bruce Momjian <bruce@momjian.us>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: pgindent weirdness
Date: Wed, 20 Apr 2011 17:05:51 -0400
Message-ID: <4DAF4AAF.9040709@dunslane.net> (raw)
In-Reply-To: <201104202028.p3KKSYX18339@momjian.us>
References: <201104202028.p3KKSYX18339@momjian.us>



On 04/20/2011 04:28 PM, Bruce Momjian wrote:
> So the list of possible additions Andrew supplied are cases where we
> never reference those typedefs --- seems like a cleanup opportunity.
>

I think the best cleanup idea is Aidan's, namely is we have declared 
"typdef struct foo { ... } foo;" we should use "foo" in the code  
instead of "struct foo". Then the typedef will be referenced, and the 
code will be cleaner, and we won't run into the pgindent "struct" bug 
either, so it's a win/win/win.

cheers

andrew



view thread (51+ messages)  latest in thread

Message-ID: <4DAF4AAF.9040709@dunslane.net>
Permalink:  ../4DAF4AAF.9040709@dunslane.net/
Also on:    postgresql.org/message-id/4DAF4AAF.9040709@dunslane.net

 · 

reply

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, bruce@momjian.us, tgl@sss.pgh.pa.us, robertmhaas@gmail.com
  Subject: Re: pgindent weirdness
  In-Reply-To: <4DAF4AAF.9040709@dunslane.net>
  References: <201104202028.p3KKSYX18339@momjian.us> <4DAF4AAF.9040709@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