aboutsummaryrefslogtreecommitdiff
path: root/tactics
diff options
context:
space:
mode:
authorppedrot2012-06-28 12:48:44 +0000
committerppedrot2012-06-28 12:48:44 +0000
commit693b22e92804aee56efd432e7c66b1a787c15881 (patch)
tree6a68336f2ba1effea044eb5ffb1bc32ce26817f2 /tactics
parenta1477696b5f7296ed7b5552dcf1ab15dee90475d (diff)
Fixing info_auto / info_trivial display.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15497 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics')
-rw-r--r--tactics/auto.ml25
1 files changed, 12 insertions, 13 deletions
diff --git a/tactics/auto.ml b/tactics/auto.ml
index 0486eec58f..812ebd2064 100644
--- a/tactics/auto.ml
+++ b/tactics/auto.ml
@@ -1207,33 +1207,32 @@ and erase_subtree depth = function
| (d,_) :: l -> if d = depth then l else erase_subtree depth l
let pr_info_atom (d,pp) =
- msg_debug (str (String.make d ' ') ++ pp () ++ str ".")
+ str (String.make d ' ') ++ pp () ++ str "."
let pr_info_trace = function
| (Info,_,{contents=(d,Some pp)::l}) ->
- List.iter pr_info_atom (cleanup_info_trace d [(d,pp)] l)
- | _ -> ()
+ prlist_with_sep fnl pr_info_atom (cleanup_info_trace d [(d,pp)] l)
+ | _ -> mt ()
let pr_info_nop = function
- | (Info,_,_) -> msg_debug (str "idtac.")
- | _ -> ()
+ | (Info,_,_) -> str "idtac."
+ | _ -> mt ()
let pr_dbg_header = function
- | (Off,_,_) -> ()
- | (Debug,0,_) -> msg_debug (str "(* debug trivial : *)")
- | (Debug,_,_) -> msg_debug (str "(* debug auto : *)")
- | (Info,0,_) -> msg_debug (str "(* info trivial : *)")
- | (Info,_,_) -> msg_debug (str "(* info auto : *)")
+ | (Off,_,_) -> mt ()
+ | (Debug,0,_) -> str "(* debug trivial : *)"
+ | (Debug,_,_) -> str "(* debug auto : *)"
+ | (Info,0,_) -> str "(* info trivial : *)"
+ | (Info,_,_) -> str "(* info auto : *)"
let tclTRY_dbg d tac =
tclORELSE0
(fun gl ->
- pr_dbg_header d;
let out = tac gl in
- pr_info_trace d;
+ msg_debug (pr_dbg_header d ++ fnl () ++ pr_info_trace d);
out)
(fun gl ->
- pr_info_nop d;
+ msg_debug (pr_info_nop d);
tclIDTAC gl)
(**************************************************************************)