ocaml: Correct ocaml type name for Aggregate types.
authorIan Campbell <ian.campbell@citrix.com>
Tue, 10 Jan 2012 16:19:09 +0000 (16:19 +0000)
committerIan 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

index 5f8639a0a77f1d494d3bd438ad304dda5cf78dca..2e65aec7619543feab79b7956d7b1854f8f9b040 100644 (file)
@@ -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