Boolean tests etc. [was: [PATCH]: Fix off-by-one error in xdelta]
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2005-02-19 02:33:16 CET
Daniel Berlin wrote:
Thanks.
>> Please may I beg you not to compare Boolean values with TRUE or FALSE,
(Meaning "The GCC developers require ... in their source code".)
> of habit. Especially since svn_boolean_type isn't a real boolean type,
(I agree it isn't. You have to move to C'99 to get a real Boolean type in C.)
> you'd want to know if it accidently took on some non-TRUE/non-FALSE
Huh? Unless you write "if (b == TRUE) ...; else if (b == FALSE) ...; else
> value (I was raised in the "if you simulate boolean with int or char,
I can't blame you for doing what you've been taught, but I'd like to read about
> However, i'll remember not to do it in the future. It certainly seems
Thanks.
>> Oh, I see you've just committed it. (That wasn't even one hour, was
Understand that it really isn't a problem; I'm only continuing this discussion
> Received: (qmail 17101 invoked from network); 18 Feb 2005 22:50:39 -0000
... showing that your mail client dated the message just a few minutes before
- Julian
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.