2 ||M|| This file is part of HELM, an Hypertextual, Electronic
3 ||A|| Library of Mathematics, developed at the Computer Science
4 ||T|| Department, University of Bologna, Italy.
6 ||T|| HELM is free software; you can redistribute it and/or
7 ||A|| modify it under the terms of the GNU General Public License
8 \ / version 2 or (at your option) any later version.
9 \ / This software is distributed as is, NO WARRANTY.
10 V_______________________________________________________________ *)
16 module R = Helm_registry
17 module US = NUri.UriSet
19 type def_xflavour = [ C.def_flavour
23 let default_objs = US.empty
25 let default_srcs = US.empty
27 let default_remove = []
29 let default_exclude = []
35 let default_debug_lexer = false
37 let default_no_devel = true
39 let default_no_init = true
43 let slot = A.make xflavours 0
45 let objs = ref default_objs
47 let srcs = ref default_srcs
49 let remove = ref default_remove
51 let exclude = ref default_exclude
53 let net = ref default_net
55 let chars = ref default_chars
57 let debug_lexer = ref default_debug_lexer
59 let no_devel = ref default_no_devel
61 let no_init = ref default_no_init
63 let index_of_xflavour = function
73 let add_xflavour n xf =
74 let i = index_of_xflavour xf in
75 slot.(i) <- slot.(i) + n
77 let clear_slot i _ = slot.(i) <- 0
79 let iter_xflavours map = A.iteri (fun _ -> map) slot
82 R.clear (); A.iteri clear_slot slot;
83 objs := default_objs; srcs := default_srcs; remove := default_remove;
84 exclude := default_exclude; net := default_net;
85 chars := default_chars; debug_lexer := default_debug_lexer;
86 no_devel := default_no_devel; no_init := default_no_init