From d56dbd226a805d93d539c63e9fa89062572bb295 Mon Sep 17 00:00:00 2001 From: herbelin Date: Fri, 18 Feb 2005 22:14:57 +0000 Subject: Standardisation of function names about global references (especially, renaming of constr_of_reference into constr_of_global) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@6745 85f007b7-540e-0410-9357-904b9bb8a0f7 --- parsing/search.ml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'parsing') diff --git a/parsing/search.ml b/parsing/search.ml index 8435f4b4b..da57d9002 100644 --- a/parsing/search.ml +++ b/parsing/search.ml @@ -54,7 +54,7 @@ let gen_crible refopt (fn : global_reference -> env -> constr -> unit) = (try let (idc,_,typ) = get_variable (basename sp) in if refopt = None - || head_const typ = constr_of_reference (out_some refopt) + || head_const typ = constr_of_global (out_some refopt) then fn (VarRef idc) env typ with Not_found -> (* we are in a section *) ()) @@ -62,7 +62,7 @@ let gen_crible refopt (fn : global_reference -> env -> constr -> unit) = let kn = locate_constant (qualid_of_sp sp) in let {const_type=typ} = Global.lookup_constant kn in if refopt = None - || head_const typ = constr_of_reference (out_some refopt) + || head_const typ = constr_of_global (out_some refopt) then fn (ConstRef kn) env typ | "INDUCTIVE" -> @@ -210,7 +210,7 @@ type glob_search_about_item = | GlobSearchString of string let search_about_item (itemref,typ) = function - | GlobSearchRef ref -> Termops.occur_term (constr_of_reference ref) typ + | GlobSearchRef ref -> Termops.occur_term (constr_of_global ref) typ | GlobSearchString s -> string_string_contains (name_of_reference itemref) s let raw_search_about filter_modules display_function l = -- cgit v1.2.3