Various bug fixes
This commit is contained in:
parent
860df0844a
commit
72a751f567
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue