Re: pgindent cleanup

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pgindent cleanup
Date: 2010-04-05 02:06:50
Message-ID: 201004050206.o3526p103151@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrew Dunstan wrote:
>
> Following up Tom's complaint about behaviour of pgindent, I have been
> wrestling with it a bit. I noticed several things.
>
> First awk on my box spits out fairly useless warnings about regular
> expressions containing a literal '\*'. These warnings are silenced by
> replacing those with '[*]', which should have the same effect.
>
> Second, the script issues warnings about how somebody hopes that I
> installed indent.bsd.patch. Yes I did, and the messages are just
> annoying noise, so I propose to get rid of them. The usual rule of unix
> utilities is to be silent on success, and I think we should follow it.
>
> Third, as mentioned in that other thread I think we should put the
> exclusion of certain typedef symbols into the pgindent script.
>
> The attached patch does all three of these things.
>
> I'm not done yet - I am seeing issues with at least two files:
> contrib/fuzzystrmatch/dmetaphone.c and
> src/backend/tsearch/wparser_def.c, that I need to chase down.
>
> Ideally, this hodegpodge of awk and sed pipes would be replaced by a
> perl script that would do all that inline much more efficiently, along
> with some more features. But that's a longer term project.

Looks fine to me.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2010-04-05 02:10:48 Re: [SPAM]Re: Questions about 9.0 release note
Previous Message Bruce Momjian 2010-04-05 02:05:18 Re: pgindent bizarreness