aboutsummaryrefslogtreecommitdiffhomepage
path: root/library/globnames.ml
diff options
context:
space:
mode:
authorGravatar ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-10-22 20:11:20 +0000
committerGravatar ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-10-22 20:11:20 +0000
commit5f8ce72b29f4a4620ce46895f2e563b2fd85f24b (patch)
tree2886aafae6f2bca9436d2da714f6e6a9a275a1ba /library/globnames.ml
parent818ecca9f72b570ea2a3de47c783927616904b17 (diff)
Removing some generic equalities.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16915 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library/globnames.ml')
-rw-r--r--library/globnames.ml8
1 files changed, 7 insertions, 1 deletions
diff --git a/library/globnames.ml b/library/globnames.ml
index e80197030..af4ebde7f 100644
--- a/library/globnames.ml
+++ b/library/globnames.ml
@@ -82,7 +82,13 @@ let global_ord_gen ord_cst ord_ind ord_cons x y = match x, y with
| IndRef indx, IndRef indy -> ord_ind indx indy
| ConstructRef consx, ConstructRef consy -> ord_cons consx consy
| VarRef v1, VarRef v2 -> Id.compare v1 v2
- | _, _ -> Pervasives.compare x y
+
+ | VarRef _, (ConstRef _ | IndRef _ | ConstructRef _) -> -1
+ | ConstRef _, VarRef _ -> 1
+ | ConstRef _, (IndRef _ | ConstructRef _) -> -1
+ | IndRef _, (VarRef _ | ConstRef _) -> 1
+ | IndRef _, ConstructRef _ -> -1
+ | ConstructRef _, (VarRef _ | ConstRef _ | IndRef _) -> 1
let global_ord_can =
global_ord_gen con_ord ind_ord constructor_ord