diff options
| author | ppedrot | 2012-05-30 16:05:13 +0000 |
|---|---|---|
| committer | ppedrot | 2012-05-30 16:05:13 +0000 |
| commit | 24879dc0e59856e297b0172d00d67df67fbb0184 (patch) | |
| tree | d57ffef43297aa7f8b29830f3bde7f3bd334babb /tactics | |
| parent | f9d97c62b2e46829a6ece74d07f5fab2cea1d769 (diff) | |
More uniformisation in Pp.warn functions.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15399 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics')
| -rw-r--r-- | tactics/auto.ml | 2 | ||||
| -rw-r--r-- | tactics/tacinterp.ml | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tactics/auto.ml b/tactics/auto.ml index 6146998cbf..404516279a 100644 --- a/tactics/auto.ml +++ b/tactics/auto.ml @@ -518,7 +518,7 @@ let make_apply_entry env sigma (eapply,hnf,verbose) pri ?(name=PathAny) (c,cty) else begin if not eapply then failwith "make_apply_entry"; if verbose then - warn (str "the hint: eapply " ++ pr_lconstr c ++ + msg_warning (str "the hint: eapply " ++ pr_lconstr c ++ str " will only be used by eauto"); (Some hd, { pri = (match pri with None -> nb_hyp cty + nmiss | Some p -> p); diff --git a/tactics/tacinterp.ml b/tactics/tacinterp.ml index d98167ed03..0bcc4ed47c 100644 --- a/tactics/tacinterp.ml +++ b/tactics/tacinterp.ml @@ -235,7 +235,7 @@ let add_tactic s t = let overwriting_add_tactic s t = if Hashtbl.mem tac_tab s then begin Hashtbl.remove tac_tab s; - warning ("Overwriting definition of tactic "^s) + msg_warning (str ("Overwriting definition of tactic "^s)) end; Hashtbl.add tac_tab s t @@ -273,7 +273,7 @@ let lookup_genarg id = try Gmap.find id !extragenargtab with Not_found -> let msg = "No interpretation function found for entry " ^ id in - warning msg; + msg_warning (str msg); let f = (fun _ _ -> failwith msg), (fun _ _ _ -> failwith msg), (fun _ a -> a) in add_interp_genarg id f; f |
