From: Ian Jackson Subject: Re: [PATCH v4 2/2] xl: Add commands for usb hot-plug Date: Wed, 17 Apr 2013 12:44:05 +0100 Message-ID: <20846.35589.979772.389923@mariner.uk.xensource.com> References: <1365706317-5368-1-git-send-email-george.dunlap@eu.citrix.com> <1365706317-5368-2-git-send-email-george.dunlap@eu.citrix.com> <516E7330.2070101@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <516E7330.2070101@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: Roger Pau Monne Cc: George Dunlap , "sstanisi@cbnco.com" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Roger Pau Monne writes ("Re: [PATCH v4 2/2] xl: Add commands for usb hot-plug"): > On 11/04/13 20:51, George Dunlap wrote: ... > > +#define is_dec(_c) ((_c) >= '0' && (_c) <= '9') > > +#define is_hex(_c) (is_dec(_c) || ((_c) >= 'a' && (_c) <= 'f')) > > This are kind of general macros, that could be used elsewhere, might be > suitable to put them outside of this function and name them CHAR_IS_DEC > and CHAR_IS_HEX. Also, while we're discussing this: the _'s at the start of the macro formal parameter names are unnecessary, and not usual in libxl. Ian.