]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/mathql_interpreter/mQIConn.ml
source logging is now native in the interpreter
[helm.git] / helm / ocaml / mathql_interpreter / mQIConn.ml
index 2b1847008178ca8cca09c2f72925b143a72e6375..9c9cfa995b870f515af8ffcf6069e18b3b37d54e 100644 (file)
@@ -26,7 +26,7 @@
 (*  AUTOR: Ferruccio Guidi <fguidi@cs.unibo.it>
  *)
 
-type flag = Postgres | Galax | Stat | Quiet | Warn | Log
+type flag = Postgres | Galax | Stat | Quiet | Warn | Log | Source
 
 type handle = {
    log : string -> unit;             (* logging function        *)
@@ -57,6 +57,7 @@ let string_of_flag = function
       | Quiet    -> "Q"
       | Warn     -> "W"
       | Log      -> "L"
+      | Source   -> "V"
 
 let flag_of_char = function
       | 'P' -> [Postgres]
@@ -65,6 +66,7 @@ let flag_of_char = function
       | 'Q' -> [Quiet] 
       | 'W' -> [Warn] 
       | 'L' -> [Log]
+      | 'V' -> [Source]
       | _   -> []
 
 let string_fold_left f a s =