Add structs.
[wrappi.git] / generator-lib / wrappi_types.ml
index 998e911..84e008c 100644 (file)
@@ -77,15 +77,13 @@ type enum = {
 type struct_decl = {
   sd_loc : Camlp4.PreCast.Loc.t;
   sd_name : string;
-  sd_identifiers : string array;
-  sd_fields : ptype array;
+  sd_fields : (string * ptype) array;
 }
 
 type union = {
   un_loc : Camlp4.PreCast.Loc.t;
   un_name : string;
-  un_identifiers : string array;
-  un_fields : ptype array;
+  un_fields : (string * ptype) array;
 }
 
 type api = {