[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: stdbool.m4 bug
From: |
Bruno Haible |
Subject: |
Re: stdbool.m4 bug |
Date: |
Mon, 17 Oct 2005 20:04:28 +0200 |
User-agent: |
KMail/1.5 |
Paul Eggert wrote:
> > enum { j = false, k = true, l = false * true, m = true * 256 };
> > ...
> > return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
> > + !m + !n + !o);
> >
> > You are expecting that j and l evaluate to true?
>
> No, I'm just making sure that every declared value is used, and can be
> an operand of '!'. The code isn't run; it's only compiled. Maybe
> there should be a comment....
Ah, I see. Sorry for thinking the test was wrong.
I've added the extra '!', and added a comment, so that I can reuse the same
code in the unit test module stdbool-tests. There the return value matters.
Bruno