Skip to content

Commit

Permalink
Replicate the Ctypes.fn datatype in the inverted stubs file.
Browse files Browse the repository at this point in the history
  • Loading branch information
yallop committed Jun 6, 2016
1 parent c5d4f0f commit f8a1c3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cstubs/cstubs_inverted.ml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ let gen_ml fmt register (infos : fn_info list) : unit =
"type 'a fn = 'a@\n@\n";
Format.fprintf fmt
"module CI = Cstubs_internals@\n@\n";
Format.fprintf fmt "type 'a f = 'a CI.fn =@\n";
Format.fprintf fmt " | Returns : 'a CI.typ -> 'a f@\n";
Format.fprintf fmt " | Function : 'a CI.typ * 'b f -> ('a -> 'b) f@\n";
Format.fprintf fmt
"type 'a name = @\n";
ListLabels.iter infos
Expand Down

0 comments on commit f8a1c3d

Please sign in to comment.