diff options
author | 2013-05-24 11:07:18 +0000 | |
---|---|---|
committer | 2013-05-24 11:07:18 +0000 | |
commit | 4659847d5fbe2ec119d224dbc68939249d1d6c30 (patch) | |
tree | 9da652e5525192b924bf2fdaf3b54f24dd8528d6 /tactics | |
parent | c80629095a5e2d4e86098d7a2462028ef291c585 (diff) |
Code cleaning in Matching.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16531 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics')
-rw-r--r-- | tactics/tacinterp.ml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tactics/tacinterp.ml b/tactics/tacinterp.ml index 26f7d02b9..f7129b9ba 100644 --- a/tactics/tacinterp.ml +++ b/tactics/tacinterp.ml @@ -195,7 +195,7 @@ let extern_request ch req gl la = let value_of_ident id = VIntroPattern (IntroIdentifier id) let extend_values_with_bindings (ln,lm) lfun = - let lnames = List.map (fun (id,id') ->(id,value_of_ident id')) ln in + let lnames = Id.Map.fold (fun id id' accu -> (id,value_of_ident id') :: accu) ln [] in let lmatch = List.map (fun (id,(ids,c)) -> (id,VConstr (ids,c))) lm in (* For compatibility, bound variables are visible only if no other binding of the same name exists *) @@ -919,7 +919,9 @@ let verify_metas_coherence gl (ln1,lcm) (ln,lm) = else raise Not_coherent_metas | [] -> lcm in - (ln@ln1,aux lm) + (** ppedrot: Is that even correct? *) + let merged = Id.Map.fold Id.Map.add ln ln1 in + (merged, aux lm) let adjust (l,lc) = (l,List.map (fun (id,c) -> (id,([],c))) lc) |