From dcde7b590ec4c1cba226485dca7b19bbe073c177 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 20 Jun 2021 16:31:46 +0200 Subject: [PATCH] Don't put brackets around dtemp and temp, when they denote instance parameters and thus are on the left hand side of '=' --- src/frontend/inpcom.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 739b99231..a29ad70c8 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -6349,8 +6349,12 @@ static char *inp_modify_exp(/* NOT CONST */ char *expr) if ((*s == '(') || cieq(buf, "hertz") || cieq(buf, "temper") || cieq(buf, "time") || cieq(buf, "pi") || cieq(buf, "e") || - cieq(buf, "pwl") || cieq(buf, "dtemp") || - cieq(buf, "temp")) { + cieq(buf, "pwl")) { + 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); } /* as soon as we encounter tc1= or tc2= (temp coeffs.) or