curl-library
Re: s/bool/int
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 25 May 2010 23:39:31 +0200 (CEST)
Date: Tue, 25 May 2010 23:39:31 +0200 (CEST)
On Tue, 25 May 2010, Kamil Dudka wrote:
> Is it anyhow useful for you to get a warning when assigning a non-bool
> value to bool variable?
Yes I think so. The variables we declare as 'bool' MUST NEVER be anything else
than TRUE or FALSE.
> If so, I can look for a solution to highlight such suspicious places in the
> code.
If you can figure out a way that isn't making the code ugly, that'd be great!
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-05-26