main.c, emphasize the SETJMP wrapper in ngspice

This commit is contained in:
rlar 2011-07-02 20:20:44 +00:00
parent d0012a124a
commit 0d1e66b7ed
1 changed files with 97 additions and 94 deletions

View File

@ -1122,8 +1122,11 @@ main(int argc, char **argv)
* build a circuit for this file. If this is in server mode, don't
* process any of these args. */
if (SETJMP(jbuf, 1))
goto evl;
if (SETJMP(jbuf, 1)) {
fprintf(cp_err, "Warning: error executing during ngspice startup.\n");
} else {
cp_interactive = FALSE;
err = 0;
@ -1254,8 +1257,8 @@ main(int argc, char **argv)
if (!gotone && ft_batchmode && !ft_nutmeg)
inp_spsource(circuit_file, FALSE, NULL);
}
evl:
if (ft_batchmode) {
/* If we get back here in batch mode then something is wrong,