let err = F.err_formatter
-let init =
- let started = ref false in
- fun () ->
- if !started then () else
- begin P.printf "\n"; started := true end
-
let pp_items frm st l items =
let pp_item frm = function
| Term (c, t) -> F.fprintf frm "%a@,%a" st.pp_context c (st.pp_term c) t
(* Interface functions ******************************************************)
-(*
-let warn msg =
- init (); P.printf " %s\n" msg; flush stdout
-*)
-let box () = F.fprintf std "@,@[<v 2>%s" " "; F.pp_print_if_newline std ()
+let box l =
+ if !level >= l then
+ begin F.fprintf std "@,@[<v 2>%s" " "; F.pp_print_if_newline std () end
-let unbox () = F.fprintf std "@]"
+let unbox l = if !level >= l then F.fprintf std "@]"
-let flush () = F.fprintf std "@]@."
+let flush l = if !level >= l then F.fprintf std "@]@."
let box_err () = F.fprintf err "@[<v>"