Browse Source

If function is not found, bail out if strict_errorhandling is set.

pre-master-46
Holger Vogt 4 years ago
parent
commit
46696a6aaa
  1. 5
      src/spicelib/parser/inpptree.c

5
src/spicelib/parser/inpptree.c

@ -15,6 +15,8 @@ Author: 1987 Wayne A. Christopher, U. C. Berkeley CAD Group
#include "inpptree-parser.h"
#include "inpptree-parser-y.h"
extern bool ft_stricterror;
#ifdef OLD_BISON
int PTparse(char **line, INPparseNode **p, CKTcircuit *ckt);
#endif
@ -1109,6 +1111,9 @@ INPparseNode *PT_mkfnode(const char *fname, INPparseNode * arg)
if (i == NUM_FUNCS) {
fprintf(stderr, "Error: no such function '%s'\n", buf);
if (ft_stricterror)
controlled_exit(EXIT_BAD);
return mkfirst(NULL, arg);
}

Loading…
Cancel
Save