[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH V2 3/4] libxl/gentypes.py: generate empty map for None field in keyed-union



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



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.