From f776a24ea745144ed252628b0d5b8432d69d8896 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 15 May 2016 18:13:11 +0200 Subject: [PATCH] transform(), ci_prefix() is case insensitive thus can use `s' instead of `t' and ci_prefix() does return a boolean --- src/frontend/numparam/spicenum.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frontend/numparam/spicenum.c b/src/frontend/numparam/spicenum.c index 000a96084..d32af5580 100644 --- a/src/frontend/numparam/spicenum.c +++ b/src/frontend/numparam/spicenum.c @@ -329,21 +329,21 @@ transform(dico_t *dico, SPICE_DSTRINGPTR dstr_p, bool incontrol) t = spice_dstring_value(&tstr); - if (ci_prefix(".PARAM", t) == 1) { + if (ci_prefix(".PARAM", s)) { /* comment it out */ /* s[0] = '*'; */ category = 'P'; - } else if (ci_prefix(".SUBCKT", t) == 1) { + } else if (ci_prefix(".SUBCKT", s)) { /* split off any "params" tail */ a = spos_("PARAMS:", t); if (a >= 0) pscopy(dstr_p, s, 0, a); category = 'S'; - } else if (ci_prefix(".CONTROL", t) == 1) { + } else if (ci_prefix(".CONTROL", s)) { category = 'C'; - } else if (ci_prefix(".ENDC", t) == 1) { + } else if (ci_prefix(".ENDC", s)) { category = 'E'; - } else if (ci_prefix(".ENDS", t) == 1) { + } else if (ci_prefix(".ENDS", s)) { category = 'U'; } else { category = '.';