Re: define bool in pgtypeslib_extern.h
От
Tom Lane
Тема
Re: define bool in pgtypeslib_extern.h
Дата
Msg-id
27325.1573052065@sss.pgh.pa.us
Ответ на
Re: define bool in pgtypeslib_extern.h (Amit Kapila)
Список
Дерево обсуждения
define bool in pgtypeslib_extern.h Amit Kapila <amit.kapila16@gmail.com>
Re: define bool in pgtypeslib_extern.h Tom Lane <tgl@sss.pgh.pa.us>
Re: define bool in pgtypeslib_extern.h Tom Lane <tgl@sss.pgh.pa.us>
Re: define bool in pgtypeslib_extern.h Tom Lane <tgl@sss.pgh.pa.us>
Re: define bool in pgtypeslib_extern.h Amit Kapila <amit.kapila16@gmail.com>
Re: define bool in pgtypeslib_extern.h Tom Lane <tgl@sss.pgh.pa.us>
Re: define bool in pgtypeslib_extern.h Tom Lane <tgl@sss.pgh.pa.us>
Re: define bool in pgtypeslib_extern.h Amit Kapila <amit.kapila16@gmail.com>
Re: define bool in pgtypeslib_extern.h Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: define bool in pgtypeslib_extern.h Tom Lane <tgl@sss.pgh.pa.us>
Re: define bool in pgtypeslib_extern.h Tom Lane <tgl@sss.pgh.pa.us>
Re: define bool in pgtypeslib_extern.h Amit Kapila <amit.kapila16@gmail.com>
Re: define bool in pgtypeslib_extern.h Tom Lane <tgl@sss.pgh.pa.us>
Re: define bool in pgtypeslib_extern.h Amit Kapila <amit.kapila16@gmail.com>
Re: define bool in pgtypeslib_extern.h Tom Lane <tgl@sss.pgh.pa.us>
Amit Kapila writes: > On Mon, Oct 28, 2019 at 11:27 PM Tom Lane wrote: >> A plausible alternative is to do >> >> -#define bool char >> +#define bool unsigned char >> >> which is correct on platforms where we don't use , >> and is at least no worse than now on those where we do. In >> practice, since we know sizeof(_Bool) == 1 on platforms where >> we use it, this is probably just fine for dtrace's purposes. > +1 for the second alternative as it will make it similar to c.h. Yeah, that's the minimum-risk alternative. I'll go make it so. regards, tom lane
В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата: