aboutsummaryrefslogtreecommitdiffhomepage
path: root/toplevel/search.ml
diff options
context:
space:
mode:
authorGravatar ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7>2012-12-14 15:57:08 +0000
committerGravatar ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7>2012-12-14 15:57:08 +0000
commitf42dd8d8530e6227621ccd662741f1da23700304 (patch)
tree1838306cdafaa8486ec792c1ab48b64162e027c9 /toplevel/search.ml
parent67f5c70a480c95cfb819fc68439781b5e5e95794 (diff)
Modulification of dir_path
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16072 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel/search.ml')
-rw-r--r--toplevel/search.ml8
1 files changed, 4 insertions, 4 deletions
diff --git a/toplevel/search.ml b/toplevel/search.ml
index b91b96d59..afc961596 100644
--- a/toplevel/search.ml
+++ b/toplevel/search.ml
@@ -118,7 +118,7 @@ let plain_display accu ref a c =
let format_display l = prlist_with_sep fnl (fun x -> x) (List.rev l)
-let filter_by_module (module_list:dir_path list) (accept:bool)
+let filter_by_module (module_list:Dir_path.t list) (accept:bool)
(ref:global_reference) _ _ =
let sp = path_of_global ref in
let sl = dirpath sp in
@@ -181,7 +181,7 @@ let name_of_reference ref = Id.to_string (basename_of_global ref)
let full_name_of_reference ref =
let (dir,id) = repr_path (path_of_global ref) in
- string_of_dirpath dir ^ "." ^ Id.to_string id
+ Dir_path.to_string dir ^ "." ^ Id.to_string id
(*
* functions to use the new Libtypes facility
@@ -318,10 +318,10 @@ let interface_search flags =
in
let ans = ref [] in
let print_function ref env constr =
- let fullpath = repr_dirpath (Nametab.dirpath_of_global ref) in
+ let fullpath = Dir_path.repr (Nametab.dirpath_of_global ref) in
let qualid = Nametab.shortest_qualid_of_global Id.Set.empty ref in
let (shortpath, basename) = Libnames.repr_qualid qualid in
- let shortpath = repr_dirpath shortpath in
+ let shortpath = Dir_path.repr shortpath in
(* [shortpath] is a suffix of [fullpath] and we're looking for the missing
prefix *)
let rec prefix full short accu = match full, short with