cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: s/bool/int

From: Tor Arntsen <tor_at_spacetec.no>
Date: Wed, 26 May 2010 13:57:55 +0200

On Wed, May 26, 2010 at 13:49, Kamil Dudka <kdudka_at_redhat.com> wrote:
>><tor>
>> #include <stdbool.h>
>>
>> #define TRUE 1
>> #define FALSE 0
>
> Why not the following instead?
>
> #define TRUE  bool_true
> #define FALSE bool_false

That's what I plan to do in my patch (or something similar), the above
was only meant to check if (some) compilers would catch something like
that. Which icc does, and, I believe, MIPSPro, which is more important
because that's a platform without <stdbool.h>.

I'm working on a tentative patch rigth now.

-Tor
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-05-26