]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/helena/src/lib/log.mli
Fix dialog win
[helm.git] / helm / software / helena / src / lib / log.mli
index 9e0f054e18213d06cb9f7ed57d9517cfc1c07eaa..bd77cc1bbf52f0b383af350ac798cc6b1b783e06 100644 (file)
@@ -9,55 +9,40 @@
      \ /   This software is distributed as is, NO WARRANTY.              
       V_______________________________________________________________ *)
 
-type ('a, 'b) item = Term of 'a * 'b
-                   | LEnv of 'a
+type ('b, 'c) item = Term of 'b * 'c
+                   | LEnv of 'b
                    | Warn of string
-                  | String of string
-                  | Loc
+                   | Uri  of NUri.uri
 
-type ('a, 'b) message = ('a, 'b) item list
+type ('b, 'c) message = ('b, 'c) item list
 
-type ('a, 'b) specs = {
-   pp_term: 'a -> Format.formatter -> 'b -> unit;
-   pp_lenv: Format.formatter -> 'a -> unit
+type ('a, 'b, 'c) specs = {
+   pp_term: 'a -> 'b -> out_channel -> 'c -> unit;
+   pp_lenv: 'a -> out_channel -> 'b -> unit
 }
 
-val loc: string ref
+val specs: (unit, unit, unit) specs
 
-val level: int ref
+val log: 'a -> ('a, 'b, 'c) specs -> int -> ('b, 'c) message -> unit
 
-val clear: unit -> unit
+val error: 'a -> ('a, 'b, 'c) specs -> ('b, 'c) message -> unit
 
-val warn: string -> unit
+val items1: string -> ('b, 'c) message
 
-val box: int -> unit
-
-val unbox: int -> unit
-
-val flush: int -> unit
-
-val box_err: unit -> unit
-
-val flush_err: unit -> unit
-
-val log: ('a, 'b) specs -> int -> ('a, 'b) message -> unit
-
-val error: ('a, 'b) specs -> ('a, 'b) message -> unit
-
-val items1: string -> ('a, 'b) message
-
-val t_items1: string -> 'a -> 'b -> ('a, 'b) message
+val t_items1: string -> 'b -> 'c -> ('b, 'c) message
 
 val et_items1:
-   string -> 'a -> string -> 'b -> ('a, 'b) message
+   string -> 'b -> string -> 'c -> ('b, 'c) message
 
 val et_items2:
-   string -> 'a -> string -> 'b -> 
-   ?sc2:string -> ?c2:'a -> string -> 'b -> 
-   ('a, 'b) message
+   string -> 'b -> string -> 'c -> 
+   ?sc2:string -> ?c2:'b -> string -> 'c -> 
+   ('b, 'c) message
 
 val et_items3:
-   string -> 'a -> string -> 'b -> 
-   ?sc2:string -> ?c2:'a -> string -> 'b -> 
-   ?sc3:string -> ?c3:'a -> string -> 'b ->
-   ('a, 'b) message
+   string -> 'b -> string -> 'c -> 
+   ?sc2:string -> ?c2:'b -> string -> 'c -> 
+   ?sc3:string -> ?c3:'b -> string -> 'c ->
+   ('b, 'c) message
+
+val warn: int -> string -> unit