Re: typedefs for indent

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: typedefs for indent
Дата
Msg-id 24929.1238453137@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: typedefs for indent  (Bruce Momjian <bruce@momjian.us>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: typedefs for indent
Следующее
От: Alvaro Herrera
Дата:
Сообщение: can't load plpython