]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/components/binaries/matex/options.ml
MaTeX
[helm.git] / matita / components / binaries / matex / options.ml
index 14dc4e2c9af388932608150f1fab059a9d5e7ee8..ba1f39849e0138b2c9ca6f0880a9facfd520d814 100644 (file)
@@ -26,6 +26,8 @@ let default_test = false
 
 let default_no_types = false
 
+let default_list_och = None
+
 (* interface ****************************************************************)
 
 let status = new P.status
@@ -40,10 +42,17 @@ let test = ref default_test         (* test anticipation *)
 
 let no_types = ref default_no_types (* omit types *)
 
+let list_och = ref default_list_och (* output stream for list file *)
+
+let close_list () = match !list_och with
+   | None     -> ()
+   | Some och -> close_out och
+
 let clear () =
-   R.clear ();
+   R.clear (); close_list ();
    no_init := default_no_init;
    out_dir := default_out_dir;
    proc_id := default_proc_id;
    test := default_test;
-   no_types := default_no_types
+   no_types := default_no_types;
+   list_och := default_list_och