 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v8 04/11] public: xen.h: add definitions for UUID handling
 Hello Jan, On 10.10.17 19:12, Jan Beulich wrote: On 10.10.17 at 17:52, <volodymyr_babchuk@xxxxxxxx> wrote:--- a/xen/include/public/xen.h +++ b/xen/include/public/xen.h @@ -930,6 +930,39 @@ __DEFINE_XEN_GUEST_HANDLE(uint16, uint16_t); __DEFINE_XEN_GUEST_HANDLE(uint32, uint32_t); __DEFINE_XEN_GUEST_HANDLE(uint64, uint64_t);+typedef struct Will fix. I have seen pattern "#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901" in various places in XEN, so I did it alike. Also, I'm using C99 feature, not gcc-only one. +#define XEN_DEFINE_UUID(a, b, c, d, e1, e2, e3, e4, e5, e6) \ + (xen_uuid_t)XEN_DEFINE_UUID_(a, b, c, d, e1, e2, e3, e4, e5, e6)This being (generally) usable as expression, I think it needs parentheses, so e.g. XEN_DEFINE_UUID(...).a[n] becomes possible (whatever that may be good for). Good point, thanks. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel 
 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |