Paul Eggert wrote:
> How about this instead? It seems like a more-complete check.
>
>int check_WINT: (((wint_t) -1 < 0
> ? WINT_MIN + WINT_MAX - 1 < 0
> : WINT_MIN == 0 && WINT_MAX == (wint_t) -1)
> ? 1 : -1);
The checks in the au
Eric Blake <[EMAIL PROTECTED]> writes:
> According to Paul Eggert on 4/5/2007 10:07 AM:
>>> - int check_WINT: WINT_MIN <= 0 && 0 < WINT_MAX ? 1 : -1;
>>> + int check_WINT: WINT_MIN <= (wint_t) 0 && (wint_t) 0 < WINT_MAX ? 1 : -1;
> It shows two bugs - first, that WINT_MIN was not 0; and second,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Paul Eggert on 4/5/2007 10:07 AM:
>> - int check_WINT: WINT_MIN <= 0 && 0 < WINT_MAX ? 1 : -1;
>> + int check_WINT: WINT_MIN <= (wint_t) 0 && (wint_t) 0 < WINT_MAX ? 1 : -1;
>
> This fix looks suspicious to me, as I think it might cause
Eric Blake <[EMAIL PROTECTED]> writes:
> - int check_PTRDIFF: PTRDIFF_MIN < 0 && 0 < PTRDIFF_MAX ? 1 : -1;
> - int check_SIG_ATOMIC: SIG_ATOMIC_MIN <= 0 && 0 < SIG_ATOMIC_MAX ? 1 : -1;
> - int check_SIZE: 0 < SIZE_MAX ? 1 : -1;
> - int check_WCHAR: WCHAR_MIN <= 0 && 0 < WCHAR_MAX ? 1 : -1;
> -
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Bruno Haible on 4/4/2007 5:47 PM:
>
> OTOH, if it causes tests/test-stdint.c to not compile, then it is best
> to mark the part of the test that doesn't work with "#ifndef __CYGWIN__".
> So that the other tests can still be executed witho
Eric Blake wrote:
> As of today, it is fixed in CVS (the eventual cygwin 1.7.0), but
> tests/test-stdint will fail on the current cygwin 1.5.24.
You mean, tests/test-stdint.c compiles fine but gives a failure during
"make check"? Then a comment near the top of this file is appropriate,
saying "Not
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Paul Eggert on 4/3/2007 5:24 PM:
> Eric Blake <[EMAIL PROTECTED]> writes:
>
>> cygwin currently defines wint_t as unsigned int (legal per POSIX), but then
>> tries to use INT_MIN and INT_MAX for WINT_MIN and WINT_MAX. I've reported
>>
Eric Blake <[EMAIL PROTECTED]> writes:
> cygwin currently defines wint_t as unsigned int (legal per POSIX), but then
> tries to use INT_MIN and INT_MAX for WINT_MIN and WINT_MAX. I've reported
> this
> as a bug to the cygwin list. In the meantime, is it worth fixing the stdint
> module to de