Browse Source

INPparseNumMod(), #3/14, `continue' the loop instead of

'break'ing out of the `switch'

this is equivalent because the 'switch' is the last statement in the loop body
pre-master-46
rlar 10 years ago
parent
commit
7862a4f59f
  1. 4
      src/spicelib/parser/inpgmod.c

4
src/spicelib/parser/inpgmod.c

@ -364,7 +364,7 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess
case '\n':
/* comment or empty cards */
lastType = E_MISSING;
break;
continue;
case '+':
/* continuation card */
if (lastType >= 0) {
@ -375,7 +375,7 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess
cardNum);
err = INPerrCat(err,tmp);
lastType = E_MISSING;
break;
continue;
}
/* FALL THRU when continuing a card */
default:

Loading…
Cancel
Save