diff --git a/src/frontend/aspice.c b/src/frontend/aspice.c index f00e7048b..0a3bd777e 100644 --- a/src/frontend/aspice.c +++ b/src/frontend/aspice.c @@ -190,7 +190,7 @@ ft_checkkids(void) struct proc *p = NULL, *lp = NULL; char buf[BSIZE_SP]; FILE *fp; - int pid; + int pid = 0; static bool here = FALSE; /* Don't want to be re-entrant. */ if (!numchanged || here) @@ -199,10 +199,10 @@ ft_checkkids(void) here = TRUE; while (numchanged > 0) { - pid = wait((&status); + pid = wait(&status); if (pid == -1) { - fprintf(cp_err, -"ft_checkkids: Internal Error: should be %d jobs done but there aren't any.\n", + fprintf(cp_err, + "ft_checkkids: Internal Error: should be %d jobs done but there aren't any.\n", numchanged); numchanged = 0; running = NULL; diff --git a/src/frontend/postcoms.c b/src/frontend/postcoms.c index b79ecc496..d72bc653c 100644 --- a/src/frontend/postcoms.c +++ b/src/frontend/postcoms.c @@ -67,7 +67,7 @@ char *copypath; void com_print(wordlist *wl) { - struct dvec *v, *lv, *bv, *nv, *vecs = NULL; + struct dvec *v, *lv = NULL, *bv, *nv, *vecs = NULL; int i, j, ll, width = DEF_WIDTH, height = DEF_HEIGHT, npoints, lineno; struct pnode *nn; struct plot *p; diff --git a/src/spicelib/parser/inp2dot.c b/src/spicelib/parser/inp2dot.c index dfab5c2e7..ef7616664 100644 --- a/src/spicelib/parser/inp2dot.c +++ b/src/spicelib/parser/inp2dot.c @@ -11,6 +11,7 @@ Modified: 2000 AlansFixes #include "inpmacs.h" #include "fteext.h" #include "inp.h" +#include "cpdefs.h" static int @@ -617,6 +618,17 @@ dot_sens2(char *line, void *ckt, INPtables *tab, card *current, } #endif +static int +dot_options(char *line, void *ckt, INPtables *tab, card *current, + void *task, void *gnode, void *foo) +{ + /* .option - specify program options - rather complicated */ + /* use a subroutine to handle all of them to keep this */ + /* subroutine managable. */ + + INPdoOpts(ckt,task,current,tab); + return (0); +} int @@ -691,6 +703,11 @@ INP2dot(void *ckt, INPtables *tab, card *current, void *task, void *gnode) /* Maybe generate a "probe" format file in the future. */ return 0; } + else if ((strcmp(token, ".options") == 0)|| + (strcmp(token,".option")==0) || + (strcmp(token,".opt")==0)) { + return dot_options(line, ckt, tab, current, task, gnode, foo); + } LITERR(" unimplemented control card - error \n"); return (0); } diff --git a/src/spicelib/parser/inpdoopt.c b/src/spicelib/parser/inpdoopt.c index bbc135627..ac0becc7e 100644 --- a/src/spicelib/parser/inpdoopt.c +++ b/src/spicelib/parser/inpdoopt.c @@ -71,7 +71,7 @@ INPdoOpts(ckt,anal,optCard,tab) if(error) { errmsg =(char *)MALLOC((35+strlen(token))*sizeof(char)); (void) sprintf(errmsg, - "Warning: can't set optione %s\n", token); + "Warning: can't set option %s\n", token); optCard->error = INPerrCat(optCard->error, errmsg); } break;