Browse Source

main.c, emphasize the SETJMP wrapper in ngspice and ngnutmeg

rlar 15 years ago
parent
commit
9887a2fb2b
  1. 11
      src/main.c

11
src/main.c

@ -1115,6 +1115,9 @@ main(int argc, char **argv)
} }
#ifdef SIMULATOR
/* Pass 2 -- get the filenames. If we are spice, then this means /* Pass 2 -- get the filenames. If we are spice, then this means
* build a circuit for this file. If this is in server mode, don't * build a circuit for this file. If this is in server mode, don't
* process any of these args. */ * process any of these args. */
@ -1125,8 +1128,6 @@ main(int argc, char **argv)
cp_interactive = FALSE; cp_interactive = FALSE;
err = 0; err = 0;
#ifdef SIMULATOR
#ifdef FastRand #ifdef FastRand
// initialization and seed for FastNorm Gaussian random generator // initialization and seed for FastNorm Gaussian random generator
{ {
@ -1305,6 +1306,12 @@ evl:
#else /* ~ SIMULATOR */ #else /* ~ SIMULATOR */
if (SETJMP(jbuf, 1))
goto evl;
cp_interactive = FALSE;
err = 0;
if (ft_nutmeg && gdata) { if (ft_nutmeg && gdata) {
if (optind < argc) if (optind < argc)
while (optind < argc) while (optind < argc)

Loading…
Cancel
Save