Re: Error-safe user functions
От | Andres Freund |
---|---|
Тема | Re: Error-safe user functions |
Дата | |
Msg-id | 20221208215836.3naznqmal2m32hzc@awork3.anarazel.de обсуждение исходный текст |
Ответ на | Re: Error-safe user functions (Robert Haas <robertmhaas@gmail.com>) |
Ответы |
Re: Error-safe user functions
|
Список | pgsql-hackers |
Hi, On 2022-12-08 16:00:10 -0500, Robert Haas wrote: > On Thu, Dec 8, 2022 at 11:32 AM Tom Lane <tgl@sss.pgh.pa.us> wrote: > > If we go with "struct Node *" then we can solve such problems by > > just repeating "struct Node;" forward-declarations in as many > > headers as we have to. > > Yes, I think just putting "struct Node;" in as many places as > necessary is the way to go. Or even: +1 > struct Node; > typedef struct Node Node; That doesn't work well, because C99 doesn't allow typedefs to be redeclared in the same scope. IIRC C11 added suppport for it, and a lot of compilers already supported it before. Greetings, Andres Freund
В списке pgsql-hackers по дате отправления: