Test example program.
[wrappi.git] / generator-lib / wrappi_types.mli
index b836685..04283d5 100644 (file)
@@ -41,9 +41,9 @@ type prec
 type parameter = string * ptype * prec option
 (** API parameter (argument name, type, optional precondition). *)
 
-type rtype = RErr | Return of ptype
+type rtype = RVoid | Return of ptype
 (** API return type.  A superset of {!ptype} because we allow the
-    special value [RErr] for dealing with errno. *)
+    special value [RVoid] for functions that don't return any value. *)
 
 type ftype = rtype * parameter list * parameter list
 (** A function type.  Return type, list of required parameters, list
@@ -54,6 +54,7 @@ type c_code = string
 
 type entry_point = {
   ep_loc : Camlp4.PreCast.Loc.t;
+  ep_local : bool;
   ep_name : string;
   ep_ftype : ftype;
   ep_code : c_code option;