Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 45FE01337B83 for ; Wed, 20 Apr 2011 18:06:14 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 67644-07 for ; Wed, 20 Apr 2011 21:05:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from cdptpa-omtalb.mail.rr.com (cdptpa-omtalb.mail.rr.com [75.180.132.121]) by mail.postgresql.org (Postfix) with ESMTP id AA8F4133616B for ; Wed, 20 Apr 2011 18:05:51 -0300 (ADT) X-Authority-Analysis: v=1.1 cv=r4yJ8ACLDmU9N8MfnU6qGSvboKzSN9UnPAeXToqJDNE= c=1 sm=0 a=lpDWfFNTT9MA:10 a=Acs96HtBqXsA:10 a=8nJEP1OIZ-IA:10 a=qCTYjJJ2g1SgQhsHZAUATw==:17 a=mLCDYMP_-VuOY77vGnAA:9 a=wPNLvfGTeEIA:10 a=qCTYjJJ2g1SgQhsHZAUATw==:117 X-Cloudmark-Score: 0 X-Originating-IP: 98.27.48.207 Received: from [98.27.48.207] ([98.27.48.207:57301] helo=[192.168.10.146]) by cdptpa-oedge01.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id 91/F0-09483-FAA4FAD4; Wed, 20 Apr 2011 21:05:51 +0000 Message-ID: <4DAF4AAF.9040709@dunslane.net> Date: Wed, 20 Apr 2011 17:05:51 -0400 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Thunderbird/3.1.9 MIME-Version: 1.0 To: Bruce Momjian CC: Tom Lane , Robert Haas , pgsql-hackers@postgresql.org Subject: Re: pgindent weirdness References: <201104202028.p3KKSYX18339@momjian.us> In-Reply-To: <201104202028.p3KKSYX18339@momjian.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201104/1101 X-Sequence-Number: 186303 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