From b31f947795fe9711d6094bbfc4675f60b8ffc746 Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Wed, 5 Jul 2017 09:35:57 +0200 Subject: 41402: Delay has_tokens() in ecstrcode as may not be needed --- Src/parse.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/parse.c b/Src/parse.c index 00a8f6a5a..ba9cd61eb 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -394,11 +394,12 @@ ecdel(int p) static wordcode ecstrcode(char *s) { - int l, t = has_token(s); + int l, t; unsigned val = hasher(s); if ((l = strlen(s) + 1) && l <= 4) { + t = has_token(s); wordcode c = (t ? 3 : 2); switch (l) { case 4: c |= ((wordcode) STOUC(s[2])) << 19; @@ -417,6 +418,9 @@ ecstrcode(char *s) } pp = (cmp < 0 ? &(p->left) : &(p->right)); } + + t = has_token(s); + p = *pp = (Eccstr) zhalloc(sizeof(*p)); p->left = p->right = 0; p->offs = ((ecsoffs - ecssub) << 2) | (t ? 1 : 0); -- cgit 1.4.1