From: Ian Jackson Subject: Re: [PATCH 1/2] Add a new pvdrivers header to serve as the register of product numbers. Date: Mon, 1 Oct 2012 16:12:27 +0100 Message-ID: <20585.45787.302130.684768@mariner.uk.xensource.com> References: <1349084491-13027-1-git-send-email-paul.durrant@citrix.com> <1349084491-13027-2-git-send-email-paul.durrant@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1349084491-13027-2-git-send-email-paul.durrant@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: Paul Durrant Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Paul Durrant writes ("[Xen-devel] [PATCH 1/2] Add a new pvdrivers header to serve as the register of product numbers."): > +#define PVDRIVERS_PRODUCT_LIST(EACH) \ > + EACH("xensource-windows", 0x0001) /* Citrix */ \ > + EACH("gplpv-windows", 0x0002) /* James Harper */ \ > + EACH("experimental", 0xffff) \ > + EACH(NULL, 0x0000) /* terminator */ When you said a terminator, I thought you meant macro parameters to PVDRIVERS_PRODUCT_LIST which were invoked only between elements. This invocation of EACH is harmful. If the user wants to make an array out of this, they can add it themselves. But if they want to make a switch statement out of it, they can't. Ian.