From 293f86e7c3c4d7bcff03b118369e5e623d3eb6f0 Mon Sep 17 00:00:00 2001 From: letouzey Date: Thu, 28 Nov 2002 23:48:51 +0000 Subject: Quelques Set et Map spécialisés MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3335 85f007b7-540e-0410-9357-904b9bb8a0f7 --- library/libnames.ml | 2 ++ library/libnames.mli | 3 +++ 2 files changed, 5 insertions(+) (limited to 'library') diff --git a/library/libnames.ml b/library/libnames.ml index dae3f1140..e8bdb4818 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 6ecc498fc..938be5644 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 -- cgit v1.2.3