Re: inline newNode()

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: inline newNode()
Дата
Msg-id Pine.LNX.4.44.0210082101500.928-100000@localhost.localdomain
обсуждение исходный текст
Ответ на Re: inline newNode()  (Neil Conway <neilc@samurai.com>)
Список pgsql-patches
Neil Conway writes:

> Well, one alternative might be to provide 2 definitions of the
> function -- one an extern inline in the header file, and one using the
> current method (in a separate file, non-inline). Then wrap the header
> file in an #ifdef __GNUC__ block, and the non-inlined version in
> #ifndef __GNUC__.

External inline functions aren't even portable across different versions
of GCC.  It's best not to go there at all.

--
Peter Eisentraut   peter_e@gmx.net


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: inline newNode()
Следующее
От: Neil Conway
Дата:
Сообщение: Re: inline newNode()