From 28a551e49864bbfee8a9212fdbcc364d1132b19e Mon Sep 17 00:00:00 2001 From: herbelin Date: Tue, 29 May 2007 10:01:06 +0000 Subject: 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 --- pretyping/evd.ml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pretyping/evd.ml') 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} -- cgit v1.2.3