Browse Source

getword(), drop `after' argument which is identical to `*pi'

pre-master-46
rlar 10 years ago
parent
commit
6ba5a05905
  1. 5
      src/frontend/numparam/xpressn.c

5
src/frontend/numparam/xpressn.c

@ -1317,13 +1317,12 @@ nupa_substitute(dico_t *dico, const char *s, char *r)
static void static void
getword(const char * const s, SPICE_DSTRINGPTR tstr_p, int after, int *pi)
getword(const char * const s, SPICE_DSTRINGPTR tstr_p, int *pi)
/* isolate a word from s after position "after". return i= last read+1 */ /* isolate a word from s after position "after". return i= last read+1 */
{ {
int i = *pi; int i = *pi;
int ls; int ls;
i = after;
ls = (int) strlen(s); ls = (int) strlen(s);
do do
@ -1464,7 +1463,7 @@ nupa_assignment(dico_t *dico, char *s, char mode)
while ((i < ls) && !error) { while ((i < ls) && !error) {
getword(s, &tstr, i, &i);
getword(s, &tstr, &i);
t_p = spice_dstring_value(&tstr); t_p = spice_dstring_value(&tstr);
if (t_p[0] == '\0') if (t_p[0] == '\0')
error = message(dico, " Identifier expected\n"); error = message(dico, " Identifier expected\n");

Loading…
Cancel
Save