Don't put brackets around dtemp and temp, when they denote

instance parameters and thus are on the left hand side of '='
This commit is contained in:
Holger Vogt 2021-06-20 16:31:46 +02:00
parent 945786fba7
commit dcde7b590e
1 changed files with 6 additions and 2 deletions

View File

@ -6349,8 +6349,12 @@ static char *inp_modify_exp(/* NOT CONST */ char *expr)
if ((*s == '(') || cieq(buf, "hertz") || if ((*s == '(') || cieq(buf, "hertz") ||
cieq(buf, "temper") || cieq(buf, "time") || cieq(buf, "temper") || cieq(buf, "time") ||
cieq(buf, "pi") || cieq(buf, "e") || cieq(buf, "pi") || cieq(buf, "e") ||
cieq(buf, "pwl") || cieq(buf, "dtemp") || cieq(buf, "pwl")) {
cieq(buf, "temp")) { wl->wl_word = copy(buf);
}
/* no parens {} around instance parameters temp and dtemp (on left hand side) */
else if ((*s == '=') &&
(cieq(buf, "dtemp") || cieq(buf, "temp"))) {
wl->wl_word = copy(buf); wl->wl_word = copy(buf);
} }
/* as soon as we encounter tc1= or tc2= (temp coeffs.) or /* as soon as we encounter tc1= or tc2= (temp coeffs.) or