]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/lib/log.ml
- performance data added for reference
[helm.git] / helm / software / lambda-delta / lib / log.ml
index 9c2ecefa2721f90b8365651527a0314c93951a5e..39cc5837ac3fd105a02099426b23e85d41c921d1 100644 (file)
@@ -19,6 +19,8 @@ type ('a, 'b) item = Term of 'a * 'b
                   | String of string
                    | Loc
 
+type ('a, 'b) message = ('a, 'b) item list
+
 type ('a, 'b) specs = {
    pp_term   : 'a -> F.formatter -> 'b -> unit;
    pp_context: F.formatter -> 'a -> unit
@@ -71,10 +73,10 @@ let t_items1 st c t =
 let ct_items1 sc c st t =
    [Warn sc; Context c; Warn st; Term (c, t)]
 
-let ct_items2 sc c st1 t1 st2 t2 =
-   ct_items1 sc c st1 t1 @ [Warn st2; Term (c, t2)]
+let ct_items2 sc1 c1 st1 t1 sc2 c2 st2 t2 =
+   ct_items1 sc1 c1 st1 t1 @ ct_items1 sc2 c2 st2 t2 
 
 let ct_items3 sc c st1 t1 st2 t2 st3 t3 =
-   ct_items2 sc c st1 t1 st2 t2 @ [Warn st3; Term (c, t3)]
+   ct_items1 sc c st1 t1 @ [Warn st2; Term (c, t2); Warn st3; Term (c, t3)]
 
 let warn msg = F.fprintf std "@,%s" msg