diff options
author | msozeau <msozeau@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2012-12-08 21:39:19 +0000 |
---|---|---|
committer | msozeau <msozeau@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2012-12-08 21:39:19 +0000 |
commit | de46c3f782dd618e947e7270cd398abf1fd514c2 (patch) | |
tree | 5554ba14a02b26c4c0687f49680716644acff7ae /library | |
parent | ae276492f8749f4d1b2c938e976832ed3eaad986 (diff) |
Finish patch for Hint Resolve, stopping to generate new constant names for
hints.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16052 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library')
-rw-r--r-- | library/globnames.ml | 8 | ||||
-rw-r--r-- | library/globnames.mli | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/library/globnames.ml b/library/globnames.ml index 81cb241c9..b5312e574 100644 --- a/library/globnames.ml +++ b/library/globnames.ml @@ -128,6 +128,14 @@ module ExtRefOrdered = struct | _, _ -> Pervasives.compare x y end +type global_reference_or_constr = + | IsGlobal of global_reference + | IsConstr of constr + +let constr_of_global_or_constr = function + | IsConstr c -> c + | IsGlobal gr -> constr_of_global gr + (** {6 Temporary function to brutally form kernel names from section paths } *) let encode_mind dir id = make_mind (MPfile dir) empty_dirpath (label_of_id id) diff --git a/library/globnames.mli b/library/globnames.mli index 02ac51fb1..af1f10ee4 100644 --- a/library/globnames.mli +++ b/library/globnames.mli @@ -72,6 +72,12 @@ module ExtRefOrdered : sig val compare : t -> t -> int end +type global_reference_or_constr = + | IsGlobal of global_reference + | IsConstr of constr + +val constr_of_global_or_constr : global_reference_or_constr -> constr + (** {6 Temporary function to brutally form kernel names from section paths } *) val encode_mind : dir_path -> identifier -> mutual_inductive |