Re: bool: symbol name collision

Поиск
Список
Период
Сортировка
От bryanh@giraffe-data.com (Bryan Henderson)
Тема Re: bool: symbol name collision
Дата
Msg-id 96067.bryanh@giraffe-data.com
обсуждение исходный текст
Ответ на Re: bool: symbol name collision  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-bugs
>On the flip side if the code that purports to cope with other
>definitions of bool is useless, we should remove it so as to avoid
>giving the impression that we have any ability to so cope.

Indeed, that code is what led me to believe I could work around my bool
conflict problem with a "#define bool bool" in my code.  It appeared to work
at first -- the code compiled and even ran, but later when I added a Version 1
function (that's an interface that has a structure with a "bool" member),
things fell apart (my compiler's bool is 4 bytes) and it took hours to trace
it back to my workaround and try something else.

So it would be an improvement to remove the code that purports to cope with
other definitions of bool.  And maybe add a comment emphasizing that "bool" is
part of the binary interface between server extensions and the base server.

--
Bryan Henderson                                   San Jose, California

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

Предыдущее
От: "Mason Hale"
Дата:
Сообщение: BUG #5459: Unable to cancel query while in send()
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #5459: Unable to cancel query while in send()