X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fbinaries%2Fmatex%2Foptions.ml;h=ba1f39849e0138b2c9ca6f0880a9facfd520d814;hb=5791ee6b64136ecb0a727e32997b33f4bfab2c31;hp=14dc4e2c9af388932608150f1fab059a9d5e7ee8;hpb=709537efda53c6189ed3e3e9877f1f93ac6d512a;p=helm.git diff --git a/matita/components/binaries/matex/options.ml b/matita/components/binaries/matex/options.ml index 14dc4e2c9..ba1f39849 100644 --- a/matita/components/binaries/matex/options.ml +++ b/matita/components/binaries/matex/options.ml @@ -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