Robert Haas <> writes:
> On Fri, Feb 12, 2016 at 9:39 AM, Tom Lane <> wrote:
>> Um, no, that does not follow.  The unanswered question here is why,
>> when we *have not* included stdbool.h and *have* typedef'd bool as
>> just plain "char", we would get C99 bool behavior.

> seems to explain what happens pretty clearly.  We #include something
> which #includes something which #includes something which #includes
> <stdbool.h>.  It's not that surprising, is it?

Well, the thing that is scaring me here is allowing a platform-specific
definition of "bool" to be adopted.  If, for example, the compiler
writer decided that that should be int width rather than char width,
all hell would break loose.

                        regards, tom lane

Sent via pgsql-hackers mailing list (
To make changes to your subscription:

Reply via email to