[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] stdbool_.h bug breaks coreutils CVS sort on Alpha GCC 2
Re: [Bug-gnulib] stdbool_.h bug breaks coreutils CVS sort on Alpha GCC 2.95.4
Fri, 8 Aug 2003 13:50:41 +0200
Paul Eggert wrote:
> In C99, sizeof(_Bool) must be 1
Can you please point to the paragraph in ISO C 99 that says this?
Also C99 specifies that "The rank of _Bool shall be less than the rank
of all other standard integer types", which can not be fulfilled with
any <stdbool.h> emulation. Similarly for the requirement that
(_Bool) -0.25f == 1.
> So a more accurate expression would be:
> # if defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1)
Thanks, I'm taking this one.
> However, I'd still prefer not making a special case in the source code
> for Sun, due to the maintenance hassle.
IMO the hassle is bigger if we try to accomodate all compilers with the
same code and without #if.