-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathocamlcp_common.mli
55 lines (51 loc) · 2.19 KB
/
ocamlcp_common.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
(**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
(* *)
(* Copyright 1998 Institut National de Recherche en Informatique et *)
(* en Automatique. *)
(* *)
(* All rights reserved. This file is distributed under the terms of *)
(* the GNU Lesser General Public License version 2.1, with the *)
(* special exception on linking described in the file LICENSE. *)
(* *)
(**************************************************************************)
(* This module shares the definitions common to both ocamlcp and ocamloptp *)
(* Arguments recognized by ocamlcp and ocamloptp *)
module type Ocamlcp_args =
sig
val _a : unit -> unit
val _impl : string -> unit
val _intf : string -> unit
val _pp : string -> unit
val _ppx : string -> unit
val anonymous : string -> unit
end
(* Description of one profiler *)
module type OCAMLCP =
sig
val bytecode : bool
module Make_options : Ocamlcp_args -> Main_args.Arg_list
end
(* Functor to build a profiler from its description *)
module Make : OCAMLCP ->
sig
val name : string
val make_archive : bool ref
val with_impl : bool ref
val with_intf : bool ref
val with_mli : bool ref
val with_ml : bool ref
val process_file : string -> unit
val usage : string
val incompatible : string -> 'a
module Options : Main_args.Arg_list
val rev_compargs : string list ref
val rev_profargs : string list ref
val add_profarg : string -> unit
val anon : string -> unit
val optlist : (string * Arg.spec * string) list
val main : unit -> 'a
end