From 2ac219221cae35469cd7c829478d439ab96f3959 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 1 May 2011 20:11:21 +0000 Subject: [PATCH] mop up, in the shadow of the last commits --- ChangeLog | 4 ++++ src/spicelib/parser/inpdomod.c | 18 +++++++++--------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4141a62ec..9b68b932c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-05-01 Robert Larice + * src/spicelib/parser/inpdomod.c : + mop up, in the shadow of the last commits + 2011-05-01 Robert Larice * src/spicelib/parser/inpdomod.c : rename variable typename --> type_name diff --git a/src/spicelib/parser/inpdomod.c b/src/spicelib/parser/inpdomod.c index 454fa27ce..28f5c3e2f 100644 --- a/src/spicelib/parser/inpdomod.c +++ b/src/spicelib/parser/inpdomod.c @@ -43,7 +43,7 @@ char *INPdomodel(CKTcircuit *ckt, card * image, INPtables * tab) INPgetTok(&line, &type_name, 1); /* get model type */ /* ----- Check if model is a BJT --------- */ - if ((strcmp(type_name, "npn") == 0) || (strcmp(type_name, "pnp") == 0)) { + if (strcmp(type_name, "npn") == 0 || strcmp(type_name, "pnp") == 0) { err = INPfindLev(line,&lev); switch(lev) { case 0: @@ -106,8 +106,8 @@ char *INPdomodel(CKTcircuit *ckt, card * image, INPtables * tab) } /* else if (strcmp(typename, "d") == 0) { */ /* -------- Check if model is a jfet --------- */ - else if ((strcmp(type_name, "njf") == 0) - || (strcmp(type_name, "pjf") == 0)) { + else if (strcmp(type_name, "njf") == 0 || + strcmp(type_name, "pjf") == 0) { err = INPfindLev(line, &lev); switch (lev) { case 0: @@ -137,10 +137,10 @@ char *INPdomodel(CKTcircuit *ckt, card * image, INPtables * tab) } /* end else if ((strcmp(typename, "njf") == 0) */ /* -------- Check if model is a MES or an HFET --------- */ - else if ((strcmp(type_name, "nmf") == 0) - || (strcmp(type_name, "pmf") == 0) - || (strcmp(type_name, "nhfet") == 0) - || (strcmp(type_name, "phfet") == 0)) { + else if (strcmp(type_name, "nmf") == 0 || + strcmp(type_name, "pmf") == 0 || + strcmp(type_name, "nhfet") == 0 || + strcmp(type_name, "phfet") == 0) { err = INPfindLev( line, &lev ); switch ( lev ) { @@ -608,8 +608,8 @@ char *INPdomodel(CKTcircuit *ckt, card * image, INPtables * tab) /* type poly added by SDB . . . */ #ifdef XSPICE /* -------- Check if model is a poly (specific to xspice) --------- */ - else if ( (strcmp(type_name, "poly") == 0) || - (strcmp(type_name, "POLY") == 0) ) { + else if ( strcmp(type_name, "poly") == 0 || + strcmp(type_name, "POLY") == 0 ) { type = INPtypelook("POLY"); if (type < 0) { err =