aboutsummaryrefslogtreecommitdiff
path: root/toplevel
diff options
context:
space:
mode:
authorbarras2002-02-15 18:02:05 +0000
committerbarras2002-02-15 18:02:05 +0000
commit1e6c3e993fd33d01713aae34a8cefbc210b3898a (patch)
tree2f8e2aba2c50587146ac4100bb8bf3c426fca65f /toplevel
parent0eff88d5a9ad9279a4e68fdb6e210c6ea671b613 (diff)
petits changements cosmetiques sur les tactiques
+ Clear independant de l'ordre des hypotheses, et substituant les hypotheses definies git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2481 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel')
-rw-r--r--toplevel/command.ml4
-rw-r--r--toplevel/record.ml4
2 files changed, 4 insertions, 4 deletions
diff --git a/toplevel/command.ml b/toplevel/command.ml
index e34d6b9199..9c11921122 100644
--- a/toplevel/command.ml
+++ b/toplevel/command.ml
@@ -276,7 +276,7 @@ let build_recursive lnameargsardef =
let arity = interp_type sigma env0 raw_arity in
let _ = declare_variable recname
(Lib.cwd(),SectionLocalAssum arity, NeverDischarge) in
- (Environ.push_named_decl (recname,None,arity) env, (arity::arl)))
+ (Environ.push_named (recname,None,arity) env, (arity::arl)))
(env0,[]) lnameargsardef
with e ->
States.unfreeze fs; raise e in
@@ -340,7 +340,7 @@ let build_corecursive lnameardef =
let arity = arj.utj_val in
let _ = declare_variable recname
(Lib.cwd(),SectionLocalAssum arj.utj_val,NeverDischarge) in
- (Environ.push_named_decl (recname,None,arity) env, (arity::arl)))
+ (Environ.push_named (recname,None,arity) env, (arity::arl)))
(env0,[]) lnameardef
with e ->
States.unfreeze fs; raise e in
diff --git a/toplevel/record.ml b/toplevel/record.ml
index 5beedfff83..457a8eaf55 100644
--- a/toplevel/record.ml
+++ b/toplevel/record.ml
@@ -56,14 +56,14 @@ let typecheck_params_and_field ps fs =
List.fold_left
(fun (env,newps) (id,t) ->
let decl = interp_decl Evd.empty env (id,true,t) in
- (push_named_decl decl env,decl::newps))
+ (push_named decl env,decl::newps))
(env0,[]) ps
in
let env2,newfs =
List.fold_left
(fun (env,newfs) d ->
let decl = interp_decl Evd.empty env d in
- (push_named_decl decl env, decl::newfs))
+ (push_named decl env, decl::newfs))
(env1,[]) fs
in
newps, newfs