diff options
| -rw-r--r-- | library/libnames.ml | 2 | ||||
| -rw-r--r-- | library/libnames.mli | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/library/libnames.ml b/library/libnames.ml index dae3f1140c..e8bdb4818f 100644 --- a/library/libnames.ml +++ b/library/libnames.ml @@ -51,6 +51,7 @@ module RefOrdered = let compare = Pervasives.compare end +module Refset = Set.Make(RefOrdered) module Refmap = Map.Make(RefOrdered) (**********************************************) @@ -115,6 +116,7 @@ let dirpath_of_string s = [] -> invalid_arg "dirpath_of_string" | dir -> make_dirpath dir +module Dirset = Set.Make(struct type t = dir_path let compare = compare end) (*s Section paths are absolute names *) diff --git a/library/libnames.mli b/library/libnames.mli index 6ecc498fc6..938be56441 100644 --- a/library/libnames.mli +++ b/library/libnames.mli @@ -31,6 +31,7 @@ val constr_of_reference : global_reference -> constr raise [Not_found] if not a global *) val reference_of_constr : constr -> global_reference +module Refset : Set.S with type elt = global_reference module Refmap : Map.S with type key = global_reference (*s Dirpaths *) @@ -50,6 +51,8 @@ val add_dirpath_prefix : module_ident -> dir_path -> dir_path val extract_dirpath_prefix : int -> dir_path -> dir_path val is_dirpath_prefix_of : dir_path -> dir_path -> bool +module Dirset : Set.S with type elt = dir_path + (*s Section paths are {\em absolute} names *) type section_path |
