| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
val get_extension : string -> string list -> string * string |
| 13 |
|
| 14 |
|
| 15 |
type basename = string |
| 16 |
type dirname = string |
| 17 |
type dir = string option |
| 18 |
type filename = string |
| 19 |
type dirpath = string list |
| 20 |
type root = filename * dirpath |
| 21 |
|
| 22 |
module Filename : |
| 23 |
sig |
| 24 |
type t |
| 25 |
val repr : t -> filename |
| 26 |
end |
| 27 |
|
| 28 |
module FileSet : Set.S with type elt = Filename.t |
| 29 |
|
| 30 |
type fileset = private { |
| 31 |
point : filename; |
| 32 |
files : FileSet.t; |
| 33 |
} |
| 34 |
|
| 35 |
type result = |
| 36 |
| ExactMatches of fileset |
| 37 |
| PartialMatchesInSameRoot of root * fileset |
| 38 |
|
| 39 |
module State : sig |
| 40 |
type t |
| 41 |
|
| 42 |
val make : worker:string option -> boot:bool -> t |
| 43 |
end |
| 44 |
|
| 45 |
val get_worker_path : State.t -> string |
| 46 |
|
| 47 |
val search_v_known : State.t -> ?from:dirpath -> dirpath -> result option |
| 48 |
val search_other_known : State.t -> ?from:dirpath -> dirpath -> result option |
| 49 |
|
| 50 |
val is_in_coqlib : State.t -> ?from:dirpath -> dirpath -> bool |
| 51 |
val is_other_in_coqlib : State.t -> from:dirpath -> dirpath -> bool |
| 52 |
|
| 53 |
val add_current_dir : State.t -> System.unix_path -> unit |
| 54 |
val add_q_include : State.t -> System.unix_path -> string -> unit |
| 55 |
val add_r_include : State.t -> System.unix_path -> string -> unit |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
val add_norec_dir_import : |
| 62 |
(bool -> root -> dirname -> dirpath -> basename -> unit) -> dirname -> dirpath -> unit |
| 63 |
|
| 64 |
|
| 65 |
val add_rec_dir_no_import : |
| 66 |
(bool -> root -> dirname -> dirpath -> basename -> unit) -> dirname -> dirpath -> unit |
| 67 |
|
| 68 |
|
| 69 |
val add_rec_dir_import : |
| 70 |
(bool -> root -> dirname -> dirpath -> basename -> unit) -> dirname -> dirpath -> unit |
| 71 |
|
| 72 |
val add_known : State.t -> bool -> root -> dirname -> dirpath -> basename -> unit |
| 73 |
val add_coqlib_known : State.t -> bool -> root -> dirname -> dirpath -> basename -> unit |
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
val find_dir_logpath : string -> string list |
| 82 |
|
| 83 |
|
| 84 |
val absolute_dir : string -> string |
| 85 |
val absolute_file_name : filename_concat:(string -> string -> string) -> string -> string option -> string |