From: Ian Jackson Subject: Re: [PATCH for-4.5] tools/libxl: Fix building against libxl for LIBXL_API_VERSION < 0x040500 Date: Fri, 17 Oct 2014 12:05:52 +0100 Message-ID: <21568.63504.42838.728406@mariner.uk.xensource.com> References: <1413536179-21129-1-git-send-email-andrew.cooper3@citrix.com> <21568.63163.931343.323308@mariner.uk.xensource.com> <5440F722.4090209@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5440F722.4090209@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Wei Liu , Ian Campbell , Xen-devel List-Id: xen-devel@lists.xenproject.org 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 "" # 1 "t.c" libxl_uuid_copy(NULL, (1), (2)) mariner:~>