diff options
| author | Pierre-Marie Pédrot | 2014-03-07 20:50:30 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2014-03-07 21:00:02 +0100 |
| commit | dd2a0175e3e35e5488c6f3b8a68c68845cbfcfd3 (patch) | |
| tree | 2b61640b942b39650dec17ca077f28b5363aa843 /kernel/names.ml | |
| parent | 89e59b9a578fa761ebc12e3a8e01c3b838301266 (diff) | |
Using Hashmaps by default in constant and inductive maps. This changes fold and
iter order, but it seems nobody was relying on it (contrarily to the string case).
Diffstat (limited to 'kernel/names.ml')
| -rw-r--r-- | kernel/names.ml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kernel/names.ml b/kernel/names.ml index 21d22baffb..03826cda7c 100644 --- a/kernel/names.ml +++ b/kernel/names.ml @@ -524,19 +524,19 @@ end module Constant = KerPair -module Cmap = CMap.Make(Constant.CanOrd) -module Cmap_env = CMap.Make(Constant.UserOrd) +module Cmap = HMap.Make(Constant.CanOrd) +module Cmap_env = HMap.Make(Constant.UserOrd) module Cpred = Predicate.Make(Constant.CanOrd) -module Cset = Set.Make(Constant.CanOrd) -module Cset_env = Set.Make(Constant.UserOrd) +module Cset = Cmap.Set +module Cset_env = Cmap_env.Set (** {6 Names of mutual inductive types } *) module MutInd = KerPair -module Mindmap = CMap.Make(MutInd.CanOrd) -module Mindset = Set.Make(MutInd.CanOrd) -module Mindmap_env = Map.Make(MutInd.UserOrd) +module Mindmap = HMap.Make(MutInd.CanOrd) +module Mindset = Mindmap.Set +module Mindmap_env = HMap.Make(MutInd.UserOrd) (** Beware: first inductive has index 0 *) (** Beware: first constructor has index 1 *) |
