diff options
| author | herbelin | 2007-05-29 10:01:06 +0000 |
|---|---|---|
| committer | herbelin | 2007-05-29 10:01:06 +0000 |
| commit | 28a551e49864bbfee8a9212fdbcc364d1132b19e (patch) | |
| tree | af54777193da1f6e12e60e295006c13cf5247f34 /pretyping/evd.ml | |
| parent | 7b00173a3e2cb44162e6d90e9306b20621ad046b (diff) | |
Correction d'un bug dans l'affichage du message d'erreur real_clean
(cas d'un terme sans Rel libre), introduction au passage d'un nouveau
type d'evar EvarGoal pour raffinement du message d'erreur.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9868 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'pretyping/evd.ml')
| -rw-r--r-- | pretyping/evd.ml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pretyping/evd.ml b/pretyping/evd.ml index 439f462642..6b75e15f0e 100644 --- a/pretyping/evd.ml +++ b/pretyping/evd.ml @@ -378,6 +378,7 @@ type hole_kind = | CasesType | InternalHole | TomatchTypeParameter of inductive * int + | GoalEvar type conv_pb = Reduction.conv_pb type evar_constraint = conv_pb * Environ.env * constr * constr @@ -395,6 +396,9 @@ let subst_evar_defs_light sub evd = let create_evar_defs sigma = { evars=sigma; conv_pbs=[]; history=[]; metas=Metamap.empty } +let create_goal_evar_defs sigma = + let h = fold (fun mv _ l -> (mv,(dummy_loc,GoalEvar))::l) sigma [] in + { evars=sigma; conv_pbs=[]; history=h; metas=Metamap.empty } let evars_of d = d.evars let evars_reset_evd evd d = {d with evars = evd} let reset_evd (sigma,mmap) d = {d with evars = sigma; metas=mmap} |
