Browse Source

transform(), drop local `n'

pre-master-46
rlar 10 years ago
parent
commit
6500aeb132
  1. 8
      src/frontend/numparam/spicenum.c

8
src/frontend/numparam/spicenum.c

@ -311,7 +311,7 @@ transform(dico_t *dico, SPICE_DSTRINGPTR dstr_p, bool incontrol)
* 'B' netlist (or .model ?) line that had Braces killed * 'B' netlist (or .model ?) line that had Braces killed
*/ */
{ {
int a, n;
int a;
char *s; /* dstring value of dstr_p */ char *s; /* dstring value of dstr_p */
char *t; /* dstring value of tstr */ char *t; /* dstring value of tstr */
char category; char category;
@ -347,8 +347,7 @@ transform(dico_t *dico, SPICE_DSTRINGPTR dstr_p, bool incontrol)
category = 'U'; category = 'U';
} else { } else {
category = '.'; category = '.';
n = stripbraces(dstr_p);
if (n > 0)
if (stripbraces(dstr_p) > 0)
category = 'B'; /* priority category ! */ category = 'B'; /* priority category ! */
} }
} else if (s[0] == Intro) { } else if (s[0] == Intro) {
@ -363,8 +362,7 @@ transform(dico_t *dico, SPICE_DSTRINGPTR dstr_p, bool incontrol)
category = '+'; category = '+';
} else if (!strchr("*$#", s[0])) { } else if (!strchr("*$#", s[0])) {
/* not a comment line! */ /* not a comment line! */
n = stripbraces(dstr_p);
if (n > 0)
if (stripbraces(dstr_p) > 0)
category = 'B'; /* line that uses braces */ category = 'B'; /* line that uses braces */
else else
category = ' '; /* ordinary code line */ category = ' '; /* ordinary code line */

Loading…
Cancel
Save