projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eae124c
)
ocaml: Correct ocaml type name for Aggregate types.
author
Ian Campbell
<ian.campbell@citrix.com>
Tue, 10 Jan 2012 16:19:09 +0000
(16:19 +0000)
committer
Ian Campbell
<ian.campbell@citrix.com>
Tue, 10 Jan 2012 16:19:09 +0000
(16:19 +0000)
No change to the generated code because this path isn't used yet.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
tools/ocaml/libs/xl/genwrap.py
patch
|
blob
|
history
diff --git
a/tools/ocaml/libs/xl/genwrap.py
b/tools/ocaml/libs/xl/genwrap.py
index 5f8639a0a77f1d494d3bd438ad304dda5cf78dca..2e65aec7619543feab79b7956d7b1854f8f9b040 100644
(file)
--- a/
tools/ocaml/libs/xl/genwrap.py
+++ b/
tools/ocaml/libs/xl/genwrap.py
@@
-59,6
+59,8
@@
def ocaml_type_of(ty):
if not typename:
raise NotImplementedError("No typename for Builtin %s (%s)" % (ty.typename, type(ty)))
return typename
+ elif isinstance(ty,libxltypes.Aggregate):
+ return ty.rawname.capitalize() + ".t"
else:
return ty.rawname