Subject: use of Bool vs. int

From: Dominik Vogt <[email-masked]>
Date: Thu, 8 Jul 2004 11:36:59 +0200

I noticed some inconsistent uses of 0/1 vs. True/False in
conditional.c.  Please, everyone, do not mix these types.  If you
use the Bool type (which I prefer), always use it with True or
False, e.g.

  Bool does_match;
  Bool does_not_match;

  does_match = False;
  does_not_match = (does_match == True) ? False : True;
  if (does_match == True) ...

not

  Bool does_match;
  Bool does_not_match;

  does_match = 0;
  does_not_match = !does_match;
  if (does_match) ...

If you don't like the additional complexity of comparing with True
or False, use an int with 0 and 1 for True and False.

Ciao

Dominik ^_^  ^_^

 --
Dominik Vogt, [email-masked]
Reply-To: [email-masked]