aboutsummaryrefslogtreecommitdiffhomepage
path: root/library
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2000-12-05 01:18:30 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2000-12-05 01:18:30 +0000
commitd155f0270088513c9b4e8c9592c14f9b6d24b417 (patch)
treeafacf8f6dbf378c47758d986ad78dbbce07f7d94 /library
parent7cffdbf4f4106950ba958d6f45fc16106069c9f7 (diff)
Nouvelle table de noms pour les locaux qui ne survit pas à la fermeture de la section : utilisée pour les variables
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1046 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library')
-rw-r--r--library/declare.ml5
1 files changed, 1 insertions, 4 deletions
diff --git a/library/declare.ml b/library/declare.ml
index f86edc915..127f60b66 100644
--- a/library/declare.ml
+++ b/library/declare.ml
@@ -63,7 +63,7 @@ let cache_variable (sp,(id,(d,_,_) as vd)) =
| SectionLocalAssum ty -> Global.push_named_assum (id,ty)
| SectionLocalDef c -> Global.push_named_def (id,c)
end;
- Nametab.push sp (VarRef sp);
+ Nametab.push_local sp (VarRef sp);
vartab := Spmap.add sp vd !vartab
let (in_variable, out_variable) =
@@ -91,7 +91,6 @@ let cache_parameter (sp,c) =
let load_parameter _ = ()
let open_parameter (sp,_) = ()
-(* Nametab.push sp (ConstRef sp)*)
let export_parameter x = Some x
@@ -142,7 +141,6 @@ let load_constant (sp,(ce,stre,op)) =
csttab := Spmap.add sp stre !csttab
let open_constant (sp,_) = ()
-(* Nametab.push sp (ConstRef sp)*)
let export_constant x = Some x
@@ -209,7 +207,6 @@ let cache_inductive (sp,mie) =
let load_inductive _ = ()
let open_inductive (sp,mie) = ()
-(* push_inductive_names sp mie *)
let export_inductive x = Some x