Browse Source

fix commit: inp2q.c, #18/23, rewrite, combine two 'for' loop's

which replaced a INPgetNetTok() by INPgetTok()
causing a bug when handling special node names
for example this case
  q1 /c /c 0 npnmodel
pre-master-46
rlar 9 years ago
parent
commit
9ddd1d7d40
  1. 2
      src/spicelib/parser/inp2q.c

2
src/spicelib/parser/inp2q.c

@ -65,7 +65,7 @@ void INP2Q(CKTcircuit *ckt, INPtables * tab, card * current, CKTnode *gnode)
for (i = 0; ; i++) {
char *token;
INPgetTok(&line, &token, 1);
INPgetNetTok(&line, &token, 1);
if (i >= 3 && INPlookMod(token)) {
INPinsert(&token, tab);
txfree(INPgetMod(ckt, token, &thismodel, tab));

Loading…
Cancel
Save