Re: typedefs for indent - Mailing list pgsql-hackers

From Tom Lane
Subject Re: typedefs for indent
Date
Msg-id 24929.1238453137@sss.pgh.pa.us
Whole thread Raw
In response to Re: typedefs for indent  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> Andrew Dunstan wrote:
>> This is on the 8.3 code.  Notice how this is formatted:
>> 
>> hitrate = (float) BufferHitCount *100.0 / ReadBufferCount;

> The good news is that LocalBufferHitCount isn't in my list of typedefs
> from CVS HEAD, and probably not in 8.3 either. The bad news is that
> pgindent pushes the '*' next to the 100.0 in my testing.  :-(

It's the (float), possibly in combination with the *, that does that.
There are many occurrences of this with other type names, eg (double).
I think it's too dumb to figure out that this is a cast and not a
variable declaration.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: typedefs for indent
Next
From: Alvaro Herrera
Date:
Subject: can't load plpython