From c37ce079eb13c250c8ee3ff834739e389cefdcfa Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 11 Mar 2017 19:12:10 +0100 Subject: [PATCH] inp2q.c, #1/23, rewrite, early 'exit' and 'return' --- src/spicelib/parser/inp2q.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/spicelib/parser/inp2q.c b/src/spicelib/parser/inp2q.c index 34b201240..04d6ee03a 100644 --- a/src/spicelib/parser/inp2q.c +++ b/src/spicelib/parser/inp2q.c @@ -88,7 +88,7 @@ void INP2Q(CKTcircuit *ckt, INPtables * tab, card * current, CKTnode *gnode) fprintf(stderr, "%s\nPlease check model, level or number of terminals!\n", current->error); controlled_exit(EXIT_BAD); } - else if ((thismodel->INPmodType == INPtypelook("hicum0")) + if ((thismodel->INPmodType == INPtypelook("hicum0")) || (thismodel->INPmodType == INPtypelook("hicum2")) || (thismodel->INPmodType == INPtypelook("bjt504t"))) { @@ -182,12 +182,10 @@ void INP2Q(CKTcircuit *ckt, INPtables * tab, card * current, CKTnode *gnode) #ifdef CIDER if( type == INPtypelook("NBJT2") ) { LITERR(" error: no unlabeled parameter permitted on NBJT2\n"); - } else { + return; + } #endif ptemp.rValue = leadval; GCA(INPpName, ("area", &ptemp, ckt, type, fast)); - } -#ifdef CIDER } -#endif }