X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fmatita%2FmatitacLib.ml;h=fa7e487a9a5dc5e568174d2c882135a7a84f8631;hb=106a8a7fb4390736076d359c71e0522b962429d2;hp=48a2f2f9ec5d23d109c01be91defd94a32b6f12a;hpb=718082d4e6316ba47b69494c5187dde950847236;p=helm.git diff --git a/helm/matita/matitacLib.ml b/helm/matita/matitacLib.ml index 48a2f2f9e..fa7e487a9 100644 --- a/helm/matita/matitacLib.ml +++ b/helm/matita/matitacLib.ml @@ -157,11 +157,6 @@ let go () = Sys.catch_break true; interactive_loop () -let dump_moo_to_file file moo = - let os = open_out (MatitaMisc.obj_file_of_script file) in - Marshal.to_channel os (List.rev moo) []; - close_out os - let main ~mode = MatitaInit.initialize_all (); status := Some (ref (Lazy.force MatitaEngine.initial_status)); @@ -215,7 +210,8 @@ let main ~mode = end else begin - dump_moo_to_file fname moo_content_rev; + let moo_fname = MatitaMisc.obj_file_of_script fname in + MatitaMoo.save_moo moo_fname moo_content_rev; MatitaLog.message (sprintf "execution of %s completed in %s." fname (hou^min^sec)); exit 0