| 1 | (************************************************************************) |
| 2 | (* * The Rocq Prover / The Rocq Development Team *) |
| 3 | (* v * Copyright INRIA, CNRS and contributors *) |
| 4 | (* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 | (* \VV/ **************************************************************) |
| 6 | (* // * This file is distributed under the terms of the *) |
| 7 | (* * GNU Lesser General Public License Version 2.1 *) |
| 8 | (* * (see LICENSE file for the text of the license) *) |
| 9 | (************************************************************************) |
| 10 | |
| 11 | (** Some excerpts of Util and similar files to avoid depending on them |
| 12 | and hence on Compat and Camlp5 *) |
| 13 | |
| 14 | val print_list : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a list -> unit |
| 15 | |
| 16 | type level = [ |
| 17 | | `DEBUG |
| 18 | | `INFO |
| 19 | | `NOTICE |
| 20 | | `WARNING |
| 21 | | `ERROR |
| 22 | | `FATAL ] |
| 23 | |
| 24 | (** debug printing *) |
| 25 | val debug : bool ref |
| 26 | |
| 27 | val log_pp : ?level:level -> Pp.t -> unit |
| 28 | val log : ?level:level -> string -> unit |
| 29 | |
| 30 | (* The directory where user config files are conventionally *) |
| 31 | (* installed on the current platform (as given by Glib) *) |
| 32 | val rocqide_config_home : unit -> string |
| 33 | |
| 34 | (* The directories where system-wide config files are conventionally *) |
| 35 | (* installed on the current platform (as given by Glib) *) |
| 36 | val rocqide_system_config_dirs : unit -> string list |
| 37 | |
| 38 | (* The directory where default config files are installed at installation time *) |
| 39 | val rocqide_default_config_dir : unit -> string |
| 40 | |
| 41 | (* The ordered list of directories where a config file is searched by default *) |
| 42 | val rocqide_config_dirs : unit -> string list |
| 43 | |
| 44 | (* The ordered list of directories where a data file is searched by default *) |
| 45 | val rocqide_data_dirs : unit -> string list |