From f70bf82865d478157185e1ffb38d2f9c98007d30 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 2 Jul 2011 20:18:22 +0000 Subject: [PATCH] main.c, emphasize the common tail of ngnutmeg and ngspice --- src/main.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/main.c b/src/main.c index d5300c787..eb232cbac 100644 --- a/src/main.c +++ b/src/main.c @@ -1303,13 +1303,6 @@ evl: } /* --- if (ft_batchmode) --- */ - for(;;) - if(!SETJMP(jbuf, 1)) { - /* enter the command processing loop */ - cp_interactive = TRUE; - app_rl_readlines(); - } - #else /* ~ SIMULATOR */ if (ft_nutmeg && gdata) { @@ -1321,7 +1314,9 @@ evl: } evl: - /* Nutmeg "main" */ + +#endif /* ~ SIMULATOR */ + for(;;) if(!SETJMP(jbuf, 1)) { /* enter the command processing loop */ @@ -1329,7 +1324,5 @@ evl: app_rl_readlines(); } -#endif /* ~ SIMULATOR */ - return sp_shutdown(EXIT_NORMAL); }