Re: bool: symbol name collision

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: bool: symbol name collision
Дата
Msg-id z2w407d949e1005091001q44a6dfebocbf9e4028c4c2fbb@mail.gmail.com
обсуждение исходный текст
Ответ на Re: bool: symbol name collision  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: bool: symbol name collision
Список pgsql-bugs
On Sun, May 9, 2010 at 5:58 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Yeah, I know those #if's are there, but whether they actually do
> anything useful is highly questionable. =A0There is no reason to assume
> that a compiler's built-in version of bool will be bit-compatible with
> ours. =A0And changing the width of bool is guaranteed to Not Work.
>

Supporting C++ in the server would be a big task, but supporting C99,
it seems to me, would only require we rename our "bool" "true" and
"false" defines. The only other C99 keyword or typedef we use is
"inline" for which I don't understand the issues yet.

--=20
greg

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: bool: symbol name collision
Следующее
От: Tom Lane
Дата:
Сообщение: Re: bool: symbol name collision