Re: typedef struct LogicalDecodingContext

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: typedef struct LogicalDecodingContext
Дата
Msg-id 1769065.1677711890@sss.pgh.pa.us
обсуждение исходный текст
Ответ на typedef struct LogicalDecodingContext  (Peter Smith <smithpb2250@gmail.com>)
Ответы Re: typedef struct LogicalDecodingContext  (Peter Smith <smithpb2250@gmail.com>)
Список pgsql-hackers
Peter Smith <smithpb2250@gmail.com> writes:
> AFAICT just by pre-declaring the typedef struct
> LogicalDecodingContext, all of those 'struct LogicalDecodingContext'
> can be culled, resulting in cleaner and more consistent function
> signatures.

Sadly, this is almost certainly going to cause bitching on the part of
some compilers, because depending on the order of header inclusions
they are going to see multiple typedefs for the same name.  Redundant
"struct foo" declarations are portable C, but redundant "typedef foo"
not so much.

I also wonder if this passes headerscheck and cpluspluscheck.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Making empty Bitmapsets always be NULL
Следующее
От: Andres Freund
Дата:
Сообщение: Re: stopgap fix for signal handling during restore_command