transform(), ci_prefix() is case insensitive
thus can use `s' instead of `t' and ci_prefix() does return a boolean
This commit is contained in:
parent
6500aeb132
commit
f776a24ea7
|
|
@ -329,21 +329,21 @@ transform(dico_t *dico, SPICE_DSTRINGPTR dstr_p, bool incontrol)
|
||||||
|
|
||||||
t = spice_dstring_value(&tstr);
|
t = spice_dstring_value(&tstr);
|
||||||
|
|
||||||
if (ci_prefix(".PARAM", t) == 1) {
|
if (ci_prefix(".PARAM", s)) {
|
||||||
/* comment it out */
|
/* comment it out */
|
||||||
/* s[0] = '*'; */
|
/* s[0] = '*'; */
|
||||||
category = 'P';
|
category = 'P';
|
||||||
} else if (ci_prefix(".SUBCKT", t) == 1) {
|
} else if (ci_prefix(".SUBCKT", s)) {
|
||||||
/* split off any "params" tail */
|
/* split off any "params" tail */
|
||||||
a = spos_("PARAMS:", t);
|
a = spos_("PARAMS:", t);
|
||||||
if (a >= 0)
|
if (a >= 0)
|
||||||
pscopy(dstr_p, s, 0, a);
|
pscopy(dstr_p, s, 0, a);
|
||||||
category = 'S';
|
category = 'S';
|
||||||
} else if (ci_prefix(".CONTROL", t) == 1) {
|
} else if (ci_prefix(".CONTROL", s)) {
|
||||||
category = 'C';
|
category = 'C';
|
||||||
} else if (ci_prefix(".ENDC", t) == 1) {
|
} else if (ci_prefix(".ENDC", s)) {
|
||||||
category = 'E';
|
category = 'E';
|
||||||
} else if (ci_prefix(".ENDS", t) == 1) {
|
} else if (ci_prefix(".ENDS", s)) {
|
||||||
category = 'U';
|
category = 'U';
|
||||||
} else {
|
} else {
|
||||||
category = '.';
|
category = '.';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue