From 577352e6bb814f2f669bf73aff3930595b8bce17 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 7 Nov 2015 19:09:44 +0100 Subject: [PATCH] xpressn.c, formula(), #4/6 move around --- src/frontend/numparam/xpressn.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontend/numparam/xpressn.c b/src/frontend/numparam/xpressn.c index 8cd9ac59a..a8a25dd54 100644 --- a/src/frontend/numparam/xpressn.c +++ b/src/frontend/numparam/xpressn.c @@ -1003,15 +1003,15 @@ formula(dico_t *dico, const char *s, const char *s_end, bool *perror) fu = 0; } else if (alfa(c)) { const char *s_next = fetchid(s, s_end); - const char *t; - spice_dstring_reinit(&tstr); - for (t = s; t < s_next;) - cadd(&tstr, upcase(*t++)); { fu = keyword(fmathS, s, s_next); /* numeric function? */ if (fu > 0) { state = S_init; /* S_init means: ignore for the moment */ } else { + const char *t; + spice_dstring_reinit(&tstr); + for (t = s; t < s_next;) + cadd(&tstr, upcase(*t++)); u = fetchnumentry(dico, spice_dstring_value(&tstr), &error); state = S_atom; }