projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed4ef4b
)
libxl IDL: the name of a KeyedUnion discriminator need not be 'type'
author
David Scott
<dave.scott@citrix.com>
Tue, 22 Jul 2014 15:05:18 +0000
(16:05 +0100)
committer
Ian Campbell
<ian.campbell@citrix.com>
Thu, 24 Jul 2014 15:23:18 +0000
(16:23 +0100)
Signed-off-by: David Scott <dave.scott@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/gentypes.py
patch
|
blob
|
history
diff --git
a/tools/libxl/gentypes.py
b/tools/libxl/gentypes.py
index 4b0c996d0ff512199848e30e803623fe4185ebda..3e738215beced2142373bf8df0cfb8ed776d228b 100644
(file)
--- a/
tools/libxl/gentypes.py
+++ b/
tools/libxl/gentypes.py
@@
-440,7
+440,7
@@
def libxl_C_type_parse_json(ty, w, v, indent = " ", parent = None, discrimina
(f.type.keyvar.name + "." + x.name, w)
s += " if (x) {\n"
(nparent, fexpr) = ty.member(v, f.type.keyvar, parent is None)
- s += " %s_init_
type(%s, %s);\n" % (ty.type
name, v, x.enumname)
+ s += " %s_init_
%s(%s, %s);\n" % (ty.typename, f.type.keyvar.
name, v, x.enumname)
(nparent,fexpr) = ty.member(v, f, parent is None)
s += libxl_C_type_parse_json(f.type, "x", fexpr, " ", nparent, x.enumname)
s += " }\n"