summaryrefslogtreecommitdiff
path: root/pretyping/evd.ml
diff options
context:
space:
mode:
Diffstat (limited to 'pretyping/evd.ml')
-rw-r--r--pretyping/evd.ml8
1 files changed, 5 insertions, 3 deletions
diff --git a/pretyping/evd.ml b/pretyping/evd.ml
index 76a5ff26..bf3cd623 100644
--- a/pretyping/evd.ml
+++ b/pretyping/evd.ml
@@ -6,7 +6,7 @@
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
-(* $Id: evd.ml 11166 2008-06-22 13:23:35Z herbelin $ *)
+(* $Id: evd.ml 11309 2008-08-06 10:30:35Z herbelin $ *)
open Pp
open Util
@@ -523,6 +523,8 @@ let pr_sort_constraints (_,sm) = pr_sort_cstrs sm
let meta_list evd = metamap_to_list evd.metas
+let find_meta evd mv = Metamap.find mv evd.metas
+
let undefined_metas evd =
List.sort Pervasives.compare (map_succeed (function
| (n,Clval(_,_,typ)) -> failwith ""
@@ -598,13 +600,13 @@ let meta_with_name evd id =
match mvnodef, mvl with
| _,[] ->
errorlabstrm "Evd.meta_with_name"
- (str"No such bound variable " ++ pr_id id)
+ (str"No such bound variable " ++ pr_id id ++ str".")
| ([n],_|_,[n]) ->
n
| _ ->
errorlabstrm "Evd.meta_with_name"
(str "Binder name \"" ++ pr_id id ++
- str"\" occurs more than once in clause")
+ strbrk "\" occurs more than once in clause.")
let meta_merge evd1 evd2 =