Re: define bool in pgtypeslib_extern.h
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: Amit Kapila <amit.kapila16@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
Michael Meskes <meskes@postgresql.org>
Date: 2019-11-07T20:47:52Z
Lists: pgsql-hackers
Attachments
- make-ecpgs-bool-definition-match-c-h.patch (text/x-diff) patch
I wrote: > I'm inclined to think that we need to make ecpglib.h's bool-related > definitions exactly match c.h, which will mean that it has to pull in > <stdbool.h> on most platforms, which will mean adding a control symbol > for that to ecpg_config.h. I do not think we should export > HAVE_STDBOOL_H and SIZEOF_BOOL there though; probably better to have > configure make the choice and export something named like PG_USE_STDBOOL. Here's a proposed patch that does it like that. I'm of two minds about whether to back-patch or not. This shouldn't really change anything except on platforms where sizeof(_Bool) isn't one. We have some reason to think that nobody is actually using ecpg on such platforms :-(, because if they were, they'd likely have complained about breakage. So maybe we should just put this in HEAD and be done. regards, tom lane
Commits
-
Fix ecpglib.h to declare bool consistently with c.h.
- 7a0574b50ee9 13.0 landed
-
Move declaration of ecpg_gettext() to a saner place.
- c8cb98ec41f0 13.0 landed
- baa483984fde 9.6.16 landed
- b705d639146c 9.5.20 landed
- b20233aac743 9.4.25 landed
- 89f56fc223f9 11.6 landed
- 831ca9513c59 10.11 landed
- 101654987344 12.1 landed
-
Sync our DTrace infrastructure with c.h's definition of type bool.
- d4d0cd6ee23e 12.1 landed
- ff43b3e88ece 13.0 landed
-
Get rid of useless/dangerous redefinition of bool in ECPG.
- 4a61aa4a945f 12.1 landed
- 1408d5d86992 13.0 landed