|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH for-4.5] tools/libxl: Fix building against libxl for LIBXL_API_VERSION < 0x040500
Andrew Cooper writes ("Re: [PATCH for-4.5] tools/libxl: Fix building against
libxl for LIBXL_API_VERSION < 0x040500"):
> On 17/10/14 12:00, Ian Jackson wrote:
> > I think this was intended to read
> > #define libxl_uuid_copy(dst, src) libxl_uuid_copy(NULL, dst, src)
> > but should in fact read
> > #define libxl_uuid_copy(dst, src) libxl_uuid_copy(NULL, (dst), (src))
>
> Does this even work?
>
> Won't the parser complain about passing 3 parameters to a two-parameter
> macro?
mariner:~> ed t.c
t.c: No such file or directory
a
#define libxl_uuid_copy(dst, src) libxl_uuid_copy(NULL, (dst), (src))
libxl_uuid_copy(1,2)
.
w
91
q
mariner:~> gcc -E t.c
# 1 "t.c"
# 1 "<command-line>"
# 1 "t.c"
libxl_uuid_copy(NULL, (1), (2))
mariner:~>
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |