diff options
| author | Maxime Dénès | 2013-12-28 20:39:17 -0500 |
|---|---|---|
| committer | Maxime Dénès | 2013-12-28 20:39:17 -0500 |
| commit | d3eac3d5fc8e5af499eb8750ca08ead8562dac6f (patch) | |
| tree | 70540c3d5e8b0856db2a9e82710e1b32cdc8465d /kernel/pre_env.mli | |
| parent | a681e57e3c76dff2fe710ce533179ea659d8de0b (diff) | |
Removing native_name reference from constant_body.
For now, this reference (renamed to link_info) has been moved to the
environment (for constants and inductive types). But this is only a first step
towards making the native compiler more functional.
Diffstat (limited to 'kernel/pre_env.mli')
| -rw-r--r-- | kernel/pre_env.mli | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/kernel/pre_env.mli b/kernel/pre_env.mli index f634719f9a..b6b6b48287 100644 --- a/kernel/pre_env.mli +++ b/kernel/pre_env.mli @@ -14,14 +14,20 @@ open Declarations (** The type of environments. *) +type link_info = + | Linked of string * bool + | LinkedInteractive of string * bool + | NotLinked type key = int option ref -type constant_key = constant_body * key +type constant_key = constant_body * (link_info ref * key) + +type mind_key = mutual_inductive_body * link_info ref type globals = { env_constants : constant_key Cmap_env.t; - env_inductives : mutual_inductive_body Mindmap_env.t; + env_inductives : mind_key Mindmap_env.t; env_modules : module_body MPmap.t; env_modtypes : module_type_body MPmap.t} @@ -77,5 +83,5 @@ val lookup_constant_key : constant -> env -> constant_key val lookup_constant : constant -> env -> constant_body (** Mutual Inductives *) +val lookup_mind_key : mutual_inductive -> env -> mind_key val lookup_mind : mutual_inductive -> env -> mutual_inductive_body - |
