]> matita.cs.unibo.it Git - helm.git/commitdiff
patched
authorFerruccio Guidi <ferruccio.guidi@unibo.it>
Tue, 24 Feb 2004 16:25:12 +0000 (16:25 +0000)
committerFerruccio Guidi <ferruccio.guidi@unibo.it>
Tue, 24 Feb 2004 16:25:12 +0000 (16:25 +0000)
helm/mathql_test/mqgtop.ml
helm/mathql_test/mqitop.ml

index d478d59c3d8e6f1267a53e7c517af9e1f039784f..600a92d31b84df6b2f6643e269fba485bbbfd1c3 100644 (file)
@@ -57,8 +57,8 @@ module GU = MQGUtil
 module M  = MQueryMisc
 
 let get_handle () = 
-   C.init (C.flags_of_string ! int_options)
-          (fun s -> print_string s; flush stdout
+   C.init ~flags:(C.flags_of_string ! int_options)
+          ~log:(fun s -> print_string s; flush stdout) (
              
 let issue handle q =
    let mode = [Open_wronly; Open_append; Open_creat; Open_text] in
index 0172472201a23fbae1380e0b1ef9765f242a019c..880d9605b3cb46288d6ec03dc77f1e631a2b794c 100644 (file)
@@ -41,7 +41,9 @@ let _ =
    let ich = Lexing.from_channel stdin in
    let flags = if Array.length Sys.argv >= 2 then Sys.argv.(1) else "" in
    let log s = print_string s; flush stdout in
-   let handle = C.init_if_connected (C.flags_of_string flags) log in 
+   let handle = 
+      C.init_if_connected ~flags:(C.flags_of_string flags) ~log:log ()
+   in 
    if not (C.connected handle) then begin  
        print_endline "mqitop: no connection"; flush stdout
    end;