From: Ian Jackson Subject: Re: [PATCH V3] xl: create VFB for PV guest when VNC is specified Date: Tue, 17 Dec 2013 14:44:59 +0000 Message-ID: <21168.25451.800846.765688@mariner.uk.xensource.com> References: <1387215576-17455-1-git-send-email-wei.liu2@citrix.com> <1387215964.21086.54.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1387215964.21086.54.camel@kazak.uk.xensource.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: Ian Campbell Cc: Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH V3] xl: create VFB for PV guest when VNC is specified"): > On Mon, 2013-12-16 at 17:39 +0000, Wei Liu wrote: > > + (count) = (count) + 1; \ > > (count++) You mean (count)++ > I suppose in a macro like this it is tricky to arrange to only evaluate > the arguments once, since you need to read and write, but I think you > can arrange to evaluate array exactly once instead of 3 times and count > just once. I think it is fine for a macro to evaluate its arguments as many times as it feels like. That's one thing the SHOUTING is there to warn yo about. I agree with the rest of Ian C's comments. Ian.