Re: pgindent does a pretty awful job with function-pointer typedefs

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: pgindent does a pretty awful job with function-pointer typedefs
Date: 2009-01-09 17:40:03
Message-ID: 200901091740.n09He3P18094@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> I wonder if this can be improved:
> http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/optimizer/planner.h.diff?r1=1.41;r2=1.42
>
> Similar examples can be found elsewhere ...

Agreed, pgindent does a poor job aligning function pointers. I rerand
planner.h here --- 'planner_hook_type' is defined as a typedef to BSD
indent, but the alignment is clearly off, but I can't figure out how to
improve it.

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

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2009-01-09 17:44:33 Re: Improving compressibility of WAL files
Previous Message Heikki Linnakangas 2009-01-09 17:38:09 Maintaining patchset with GIT (was Re: Hot standby, RestoreBkpBlocks and cleanup locks)