aboutsummaryrefslogtreecommitdiff
path: root/interp
diff options
context:
space:
mode:
authorherbelin2009-10-26 15:50:20 +0000
committerherbelin2009-10-26 15:50:20 +0000
commit9b05df26c99fcdddb41d9ef1e9dc3b0571b9395b (patch)
tree74761c53f38c617c6bdfcbbd9d187683aad0453e /interp
parent80d0def3cd49c16a989b61b74232868578c96a03 (diff)
Local/Global revision 12418 continued
- Fixing non-export of newly created Local Argument Scope. - Fixing bad discharge of local variables in nested sections (bug still exists in v8.2). git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12420 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'interp')
-rw-r--r--interp/notation.ml8
1 files changed, 3 insertions, 5 deletions
diff --git a/interp/notation.ml b/interp/notation.ml
index 093d43934c..6ae720fca1 100644
--- a/interp/notation.ml
+++ b/interp/notation.ml
@@ -482,18 +482,16 @@ let classify_arguments_scope (req,_,_ as obj) =
if req = ArgsScopeNoDischarge then Dispose else Substitute obj
let rebuild_arguments_scope (req,r,l) =
- let req' =
- if isVarRef r && Lib.is_in_section r then ArgsScopeNoDischarge else req in
match req with
| ArgsScopeNoDischarge -> assert false
| ArgsScopeAuto ->
- (req',r,compute_arguments_scope (Global.type_of_global r))
+ (req,r,compute_arguments_scope (Global.type_of_global r))
| ArgsScopeManual ->
(* Add to the manually given scopes the one found automatically
for the extra parameters of the section *)
let l' = compute_arguments_scope (Global.type_of_global r) in
let l1,_ = list_chop (List.length l' - List.length l) l' in
- (req',r,l1@l)
+ (req,r,l1@l)
let (inArgumentsScope,outArgumentsScope) =
declare_object {(default_object "ARGUMENTS-SCOPE") with
@@ -504,7 +502,7 @@ let (inArgumentsScope,outArgumentsScope) =
discharge_function = discharge_arguments_scope;
rebuild_function = rebuild_arguments_scope }
-let is_local local ref = local || (isVarRef ref && not (Lib.is_in_section ref))
+let is_local local ref = local || isVarRef ref && Lib.is_in_section ref
let declare_arguments_scope_gen req r scl =
Lib.add_anonymous_leaf (inArgumentsScope (req,r,scl))