From: Ian Campbell Subject: Re: [PATCH V2 3/4] libxl/gentypes.py: generate empty map for None field in keyed-union Date: Wed, 16 Apr 2014 17:30:21 +0100 Message-ID: <1397665821.24638.244.camel@kazak.uk.xensource.com> References: <1397143594-15308-1-git-send-email-wei.liu2@citrix.com> <1397143594-15308-4-git-send-email-wei.liu2@citrix.com> <1397494391.7802.20.camel@dagon.hellion.org.uk> <20140414165900.GD3635@zion.uk.xensource.com> <1397495330.7802.30.camel@dagon.hellion.org.uk> <20140414171150.GE3635@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140414171150.GE3635@zion.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: Wei Liu Cc: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, 2014-04-14 at 18:11 +0100, Wei Liu wrote: > On Mon, Apr 14, 2014 at 06:08:50PM +0100, Ian Campbell wrote: > > On Mon, 2014-04-14 at 17:59 +0100, Wei Liu wrote: > > > On Mon, Apr 14, 2014 at 05:53:11PM +0100, Ian Campbell wrote: > > > > On Thu, 2014-04-10 at 16:26 +0100, Wei Liu wrote: > > > > > Without this the generated JSON is malformed. > > > > > > > > > > Signed-off-by: Wei Liu > > > > > > > > Hold on the Ack... > > > > > > > > > + else: > > > > > + s += " yajl_gen_map_open(hand);\n" > > > > > > > > ITHM s =... > > > > > > > > > + s += " if (s != yajl_gen_status_ok)\n" > > > > > + s += " goto out;\n" > > > > > + s += " yajl_gen_map_close(hand);\n" > > > > > > > > and again. > > > > > > > > Spotted because the diff of the generated code across the entire series > > > > was as below, the spurious change is pretty obvious in the third hunk. > > > > > > > > > > I should've stolen your handy script earlier! > > > > ~ianc/xen-build-tools/libxl-idl-* if you still want to... > > > > > This one should be correct. > > > > Agreed, you can have that Ack back ;-) > > > > Do you want me to resend the whole series with all Acks folded in? No need, I've applied. Please check I got the right versions of everything!