Re: VacAttrStatsP vs VacAttrStats * (typedef'ing pointer types)

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: VacAttrStatsP vs VacAttrStats * (typedef'ing pointer types)
Дата
Msg-id 1209765181.22465.11.camel@dell.linuxdev.us.dell.com
обсуждение исходный текст
Ответ на VacAttrStatsP vs VacAttrStats * (typedef'ing pointer types)  (Jan Urbański <j.urbanski@students.mimuw.edu.pl>)
Список pgsql-hackers
On Fri, 2008-05-02 at 23:22 +0200, Jan Urbański wrote:
> While looking around vacuum.h (for my GSoC project) I found:
> typedef struct VacAttrStats *VacAttrStatsP;
> and then throughout the code sometimes VacAttrStats *foo is used and 
> sometimes VacAttrStatsP bar is used.

Personally I think we should be consistent about this and just use one
form for a given type.

(I don't really care which variant is preferred. Personally, I think
that hiding pointer types inside a typedef is evil and wrong, but it is
relatively common practice in the source...)

-Neil




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Protection from SQL injection
Следующее
От: Tom Lane
Дата:
Сообщение: Re: VacAttrStatsP vs VacAttrStats * (typedef'ing pointer types)