TRUE and FALSE

Ben bench at silentmedia.com
Mon Apr 18 10:01:13 CEST 2005


Not that I'm aware of.... but for C, I've never heard of them being set 
to anything other than non-zero and zero, respectively.

On Apr 17, 2005, at 9:31 PM, Ethan Galstad wrote:

> That could be done.  Is there a #if-like statement to only do this if
> TRUE=1 and FALSE=0?  I wouldn't want TRUE and FALSE being set to
> something else, lest bad things happen...
>
> On 5 Apr 2005 at 14:12, Ben wrote:
>
>> I'm making a NEB module that will rely on glib, which defines TRUE and
>> FALSE. Nagios also defines TRUE and FALSE in include/common.h.
>>
>> Predictably, the compiler is unhappy when I try to compile my NEB.
>>
>> Ethan, do you have a problem wrapping your TRUE/FALSE defines in an
>> #ifndef TRUE test?
>>
>>
>>
>> -------------------------------------------------------
>> SF email is sponsored by - The IT Product Guide
>> Read honest & candid reviews on hundreds of IT Products from real
>> users. Discover which products truly live up to the hype. Start
>> reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>> _______________________________________________ Nagios-devel mailing
>> list Nagios-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>>
>>
>
>
>
> Ethan Galstad,
> Nagios Developer
> ---
> Email: nagios at nagios.org
> Website: http://www.nagios.org
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real 
> users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click




More information about the Developers mailing list