-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathodoc_comments_global.ml
51 lines (38 loc) · 1.74 KB
/
odoc_comments_global.ml
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
(**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* Maxence Guesdon, projet Cristal, INRIA Rocquencourt *)
(* *)
(* Copyright 2001 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. *)
(* *)
(**************************************************************************)
(** The global variables used by the special comment parser.*)
let nb_chars = ref 0
let authors = ref ([] : string list)
let version = ref (None : string option)
let sees = ref ([] : string list)
let since = ref (None : string option)
let before = ref []
let deprecated = ref (None : string option)
let params = ref ([] : (string * string) list)
let raised_exceptions = ref ([] : (string * string) list)
let return_value = ref (None : string option)
let customs = ref []
let init () =
nb_chars := 0;
authors := [];
version := None;
sees := [];
since := None;
before := [];
deprecated := None;
params := [];
raised_exceptions := [];
return_value := None ;
customs := []