From 3ea21b6d721c759876aa53385b421cb1412e11f5 Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Mon, 4 Jul 2005 07:40:28 +0000 Subject: [PATCH] Improvements in matitatop: instead of doing exit -1 it enters the toploop after a ^C. --- helm/matita/matitacLib.ml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 () -- 2.39.2