inp2m.c, #4/15b, unify code slightly

This commit is contained in:
rlar 2017-03-05 13:46:40 +01:00
parent f7b3f40c70
commit 0a95935e46
1 changed files with 4 additions and 2 deletions

View File

@ -32,6 +32,7 @@ INP2M(CKTcircuit *ckt, INPtables *tab, card *current)
char *nname5; /* the fifth node's name */
char *nname6; /* the sixt node's name */
char *nname7; /* the seventh node's name */
char *nname8;
char *save; /* saj - used to save the posn of the start of
the parameters if the model is a mosfet*/
CKTnode *node1; /* the first node's node pointer */
@ -102,9 +103,9 @@ INP2M(CKTcircuit *ckt, INPtables *tab, card *current)
if (!thismodel) {
nodeflag = 7;
INPgetTok(&line, &model, 1);
INPgetTok(&line, &nname8, 1);
err_msg = INPgetMod(ckt, model, &thismodel, tab);
err_msg = INPgetMod(ckt, nname8, &thismodel, tab);
tfree(err_msg);
if (thismodel) {
@ -120,6 +121,7 @@ INP2M(CKTcircuit *ckt, INPtables *tab, card *current)
INPtermInsert(ckt, &nname5, tab, &node5);
INPtermInsert(ckt, &nname6, tab, &node6);
INPtermInsert(ckt, &nname7, tab, &node7);
model = nname8;
}
}
else {