transform(), drop local `n'
This commit is contained in:
parent
7cf4338981
commit
6500aeb132
|
|
@ -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 (stripbraces(dstr_p) > 0)
|
||||||
if (n > 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 (stripbraces(dstr_p) > 0)
|
||||||
if (n > 0)
|
|
||||||
category = 'B'; /* line that uses braces */
|
category = 'B'; /* line that uses braces */
|
||||||
else
|
else
|
||||||
category = ' '; /* ordinary code line */
|
category = ' '; /* ordinary code line */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue