aboutsummaryrefslogtreecommitdiff
path: root/kernel/pre_env.mli
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2014-03-05 21:39:39 +0100
committerPierre-Marie Pédrot2014-03-05 21:39:39 +0100
commit00df486efd76070b6c3673071050565e0ed4466e (patch)
treeef98cd2acfee9bcbea02d664833bb4a586fa4f87 /kernel/pre_env.mli
parent2a0d260c9c80c07844605fcb6844bb9cfdfeb0fd (diff)
Using HMaps in Safe_env.environments, hopefully improving performances.
Diffstat (limited to 'kernel/pre_env.mli')
-rw-r--r--kernel/pre_env.mli11
1 files changed, 10 insertions, 1 deletions
diff --git a/kernel/pre_env.mli b/kernel/pre_env.mli
index 964d709cff..4596b23aaa 100644
--- a/kernel/pre_env.mli
+++ b/kernel/pre_env.mli
@@ -25,8 +25,17 @@ type constant_key = constant_body * (link_info ref * key)
type mind_key = mutual_inductive_body * link_info ref
+module Constants :
+sig
+ type t
+ val empty : t
+ val add : Constant.t -> constant_key -> t -> t
+ val find : Constant.t -> t -> constant_key
+ val fold : (Constant.t -> constant_key -> 'a -> 'a) -> t -> 'a -> 'a
+end
+
type globals = {
- env_constants : constant_key Cmap_env.t;
+ env_constants : Constants.t;
env_inductives : mind_key Mindmap_env.t;
env_modules : module_body MPmap.t;
env_modtypes : module_type_body MPmap.t}