Re: pgindent weirdness

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgindent weirdness
Дата
Msg-id 13548.1303319405@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgindent weirdness  (Aidan Van Dyk <aidan@highrise.ca>)
Ответы Re: pgindent weirdness  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Aidan Van Dyk <aidan@highrise.ca> writes:
> Since the general form seems to be to declare things as:
>    typedef struct foo { ... } foo;

> Is there any reason why we see any struct foo in the sources other
> than in the typedef line?

It gives an escape hatch in case you need a forward reference to the
struct, ie you can do "struct foo *" even before this.  But I agree that
90% of those struct tags are useless, and so the habit of tagging every
typedef this way is mostly legacy.
        regards, tom lane


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

Предыдущее
От: Aidan Van Dyk
Дата:
Сообщение: Re: pgindent weirdness
Следующее
От: Robert Haas
Дата:
Сообщение: Re: pg_dump --binary-upgrade vs. ALTER TYPE ... DROP ATTRIBUTE