From bd9dc4089bdf76437a358d8c1a282f67558905be Mon Sep 17 00:00:00 2001 From: herbelin Date: Sat, 5 Jan 2008 19:07:05 +0000 Subject: Correction bug #1749 (datant de l'implantation des or-patterns) + amélioration message d'erreur si nombre de pattern incorrect. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10427 85f007b7-540e-0410-9357-904b9bb8a0f7 --- lib/util.ml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/util.ml') diff --git a/lib/util.ml b/lib/util.ml index 6dd0a792b2..32ede2fb24 100644 --- a/lib/util.ml +++ b/lib/util.ml @@ -34,6 +34,9 @@ let anomaly_loc (loc,s,strm) = Stdpp.raise_with_loc loc (Anomaly (s,strm)) let user_err_loc (loc,s,strm) = Stdpp.raise_with_loc loc (UserError (s,strm)) let invalid_arg_loc (loc,s) = Stdpp.raise_with_loc loc (Invalid_argument s) +let located_fold_left f x (_,a) = f x a +let located_iter2 f (_,a) (_,b) = f a b + (* Like Exc_located, but specifies the outermost file read, the filename associated to the location of the error, and the error itself. *) -- cgit v1.2.3