From: Ian Campbell Subject: Re: [PATCH V2 3/4] libxl/gentypes.py: generate empty map for None field in keyed-union Date: Tue, 15 Apr 2014 11:32:45 +0100 Message-ID: <1397557965.24638.55.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> <21325.2555.643339.677204@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21325.2555.643339.677204@mariner.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 Jackson Cc: Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-04-15 at 11:29 +0100, Ian Jackson wrote: > Ian Campbell writes ("Re: [PATCH V2 3/4] libxl/gentypes.py: generate empty map for None field in keyed-union"): > > On Mon, 2014-04-14 at 17:59 +0100, Wei Liu wrote: > > > I should've stolen your handy script earlier! > > > > ~ianc/xen-build-tools/libxl-idl-* if you still want to... > > Can we check this into the tree ? They are pretty dumb, but we can if you like. Here they are for prejudgement... ----- libxl-idl-save-baseline ------ #!/bin/bash set -e for i in tools/libxl/_libxl_types.c tools/libxl/_libxl_types.h tools/libxl/_libxl_types_json.h \ tools/libxl/_libxl_types_internal.c tools/libxl/_libxl_types_internal.h tools/libxl/_libxl_types_internal_json.h \ tools/python/xen/lowlevel/xl/_pyxl_types.h tools/python/xen/lowlevel/xl/_pyxl_types.c \ tools/ocaml/libs/xl/_libxl_types.inc tools/ocaml/libs/xl/_libxl_types.mli.in tools/ocaml/libs/xl/_libxl_types.ml.in \ tools/libxl/testidl.c \ tools/libxl/_libxl_save_msgs_callout.c tools/libxl/_libxl_save_msgs_callout.h tools/libxl/_libxl_save_msgs_helper.c tools/libxl/_libxl_save_msgs_helper.h ; do bak=$(echo $i | sed -e 's,[^/]*/\(_libxl\|_pyxl\|testidl\),&_BACKUP,g') if [ -e "$i" ] ; then cp -v "$i" "$bak" else rm -f "$bak" echo touch "$bak" touch "$bak" fi done ----- libxl-idl-compare-baseline ----- #!/bin/bash set -e for i in tools/libxl/_libxl_types.c tools/libxl/_libxl_types.h tools/libxl/_libxl_types_json.h \ tools/libxl/_libxl_types_internal.c tools/libxl/_libxl_types_internal.h tools/libxl/_libxl_types_internal_json.h \ tools/python/xen/lowlevel/xl/_pyxl_types.h tools/python/xen/lowlevel/xl/_pyxl_types.c \ tools/ocaml/libs/xl/_libxl_types.inc tools/ocaml/libs/xl/_libxl_types.mli.in tools/ocaml/libs/xl/_libxl_types.ml.in \ tools/libxl/testidl.c \ tools/libxl/_libxl_save_msgs_callout.c tools/libxl/_libxl_save_msgs_callout.h tools/libxl/_libxl_save_msgs_helper.c tools/libxl/_libxl_save_msgs_helper.h ; do bak=$(echo $i | sed -e 's,[^/]*/\(_libxl\|_pyxl\|testidl\),&_BACKUP,g') diff -puN $bak $i || true done