[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 2/2] xen/build: Use C99 booleans



On 01/08/16 11:29, Jan Beulich wrote:
>>>> On 14.07.16 at 17:58, <andrew.cooper3@xxxxxxxxxx> wrote:
>> --- a/xen/include/xen/types.h
>> +++ b/xen/include/xen/types.h
>> @@ -1,6 +1,8 @@
>>  #ifndef __TYPES_H__
>>  #define __TYPES_H__
>>  
>> +#include <xen/stdbool.h>
>> +
>>  #include <asm/types.h>
>>  
>>  #define BITS_TO_LONGS(bits) \
>> @@ -59,4 +61,8 @@ typedef __u64 __be64;
>>  
>>  typedef unsigned long uintptr_t;
>>  
>> +typedef _Bool bool_t;
> I see this went in already, but I think it is slightly sub-optimal: Either
> you use _Bool here and don't include xen/stdbool.h above, or you
> instead use bool in this typedef.

We should include xen/stdbool.h to get true and false.

Switching this to bool is easy enough.

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.