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

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



>>> 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.

Jan


_______________________________________________
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®.