aboutsummaryrefslogtreecommitdiff
path: root/ide/utils
diff options
context:
space:
mode:
authorppedrot2012-05-23 15:21:17 +0000
committerppedrot2012-05-23 15:21:17 +0000
commitc9f0c0f4725533ee2294d416be82ca45dda2cabb (patch)
tree2ec02034a35c0d3855f177e48ed0e09efa073362 /ide/utils
parent8837c2365c382adb0a74bfedabb1659eeb472adc (diff)
Cleaned prerr_endline use.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15354 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'ide/utils')
-rw-r--r--ide/utils/configwin_ihm.ml2
-rw-r--r--ide/utils/configwin_messages.ml2
-rw-r--r--ide/utils/configwin_types.ml6
-rw-r--r--ide/utils/okey.ml2
4 files changed, 6 insertions, 6 deletions
diff --git a/ide/utils/configwin_ihm.ml b/ide/utils/configwin_ihm.ml
index 7dbd04529e..4f8a3a10fa 100644
--- a/ide/utils/configwin_ihm.ml
+++ b/ide/utils/configwin_ihm.ml
@@ -38,7 +38,7 @@ class type widget =
let file_html_config = Filename.concat Configwin_messages.home ".configwin_html"
let debug = false
-let dbg = if debug then prerr_endline else (fun _ -> ())
+let dbg s = if debug then Minilib.log s else ()
(** Return the config group for the html config file,
and the option for bindings. *)
diff --git a/ide/utils/configwin_messages.ml b/ide/utils/configwin_messages.ml
index 6cd3ef579c..dbb4900331 100644
--- a/ide/utils/configwin_messages.ml
+++ b/ide/utils/configwin_messages.ml
@@ -30,7 +30,7 @@ let version = "1.2";;
let html_config = "Configwin bindings configurator for html parameters"
-let home = Envars.home ~warn:Minilib.prerr_endline
+let home = Envars.home ~warn:Minilib.log
let mCapture = "Capture";;
let mType_key = "Type key" ;;
diff --git a/ide/utils/configwin_types.ml b/ide/utils/configwin_types.ml
index 5e2b1e7c2e..ace751c64e 100644
--- a/ide/utils/configwin_types.ml
+++ b/ide/utils/configwin_types.ml
@@ -52,7 +52,7 @@ let string_to_key s =
| '4' -> `MOD4
| '5' -> `MOD5
| _ ->
- prerr_endline s;
+ Minilib.log s;
raise Not_found
in
mask := m :: !mask
@@ -65,7 +65,7 @@ let string_to_key s =
!mask, List.assoc key name_to_keysym
with
e ->
- prerr_endline s;
+ Minilib.log s;
raise e
let key_to_string (m, k) =
@@ -116,7 +116,7 @@ let value_to_key v =
match v with
Raw.String s -> string_to_key s
| _ ->
- prerr_endline "value_to_key";
+ Minilib.log "value_to_key";
raise Not_found
let key_to_value k =
diff --git a/ide/utils/okey.ml b/ide/utils/okey.ml
index 579392664c..6b174ecbea 100644
--- a/ide/utils/okey.ml
+++ b/ide/utils/okey.ml
@@ -107,7 +107,7 @@ let key_press w ev =
(fun h ->
if h.cond () then
try h.cback ()
- with e -> prerr_endline (Printexc.to_string e)
+ with e -> Minilib.log (Printexc.to_string e)
else ()
)
l;