Re: [Jack-Devel] [LAU] jack2 turned verbose

PrevNext  Index
DateSat, 02 Jun 2012 20:28:03 +0300
From Nedko Arnaudov <[hidden] at arnaudov dot name>
ToFons Adriaensen <[hidden] at linuxaudio dot org>
Cc[hidden] at lists dot jackaudio dot org
In-Reply-ToFons Adriaensen Re: [Jack-Devel] [LAU] jack2 turned verbose
Follow-UpFons Adriaensen Re: [Jack-Devel] [LAU] jack2 turned verbose
Fons Adriaensen <[hidden]> writes:

> On Sat, Jun 02, 2012 at 07:09:24PM +0300, Nedko Arnaudov wrote:
>
>> Fons Adriaensen <[hidden]> writes:
>> 
>> > What this tells me is that one should test booleans against
>> > boolean constants, and ints against int constants, and *not*
>> > mix them up. Which I guess the libdbus code is doing.
>  
>> This guesswork fails. libdbus doesnt do this if only because it uses
>> dbus_bool_t and not C99 nor C++ bool.
>
> It some software implements its own boolean type, and then in
> some cases decides that a given value of that type is neither
> true nor false - as you wrote in a previous post - then that
> is a bug. The essence of a boolean is that it always either
> true or false. My suspicion is based on what you wrote, nothing
> else.

This is false. Any ABI needs to define types of fixed size. Neither C99
nor C++ fix the size of booleans. And still, this is irrelevant to the
compiler issue itself.

-- 
Nedko Arnaudov <GnuPG KeyID: 5D1B58ED>
PrevNext  Index

1338658097.22399_0.ltw:2,a <87ipf9ipy4.fsf at arnaudov dot name>