From: Claudio Sacerdoti Coen Date: Mon, 4 Jul 2005 07:40:28 +0000 (+0000) Subject: Improvements in matitatop: instead of doing exit -1 it enters the toploop X-Git-Tag: PRE_GETTER_STORAGE~27 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=3ea21b6d721c759876aa53385b421cb1412e11f5;p=helm.git Improvements in matitatop: instead of doing exit -1 it enters the toploop after a ^C. --- diff --git a/helm/matita/matitacLib.ml b/helm/matita/matitacLib.ml index 5f07aa406..d82d3f755 100644 --- a/helm/matita/matitacLib.ml +++ b/helm/matita/matitacLib.ml @@ -155,7 +155,12 @@ let main ~mode = exit 0 end with - | Sys.Break -> MatitaLog.error "user break!"; exit ~-1 + | Sys.Break -> + MatitaLog.error "user break!"; + if mode = `COMPILER then + exit ~-1 + else + pp_ocaml_mode () | MatitaEngine.Drop -> if mode = `COMPILER then exit 1 @@ -168,4 +173,4 @@ let main ~mode = if mode = `COMPILER then exit 1 else - go () + pp_ocaml_mode ()