From f5d686e23c51cd79d9273eee9fc73bfcf343719c Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 1 May 2016 17:37:01 +0200 Subject: [PATCH] getword(), cleanup --- src/frontend/numparam/xpressn.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/frontend/numparam/xpressn.c b/src/frontend/numparam/xpressn.c index abd0bbee9..440f20b04 100644 --- a/src/frontend/numparam/xpressn.c +++ b/src/frontend/numparam/xpressn.c @@ -1318,18 +1318,12 @@ nupa_substitute(dico_t *dico, const char *s, char *r) static const char * getword(const char *s, const char * const s_end, SPICE_DSTRINGPTR tstr_p) -/* isolate a word from s after position "after". return i= last read+1 */ { - s++; - s--; while ((s < s_end - 1) && !alfa(*s)) s++; - s++; spice_dstring_reinit(tstr_p); - s--; - while ((s < s_end) && (alfa(*s) || isdigit_c(*s))) cadd(tstr_p, toupper_c(*s++));