getword(), reorder args

This commit is contained in:
rlar 2017-11-12 21:16:37 +01:00
parent 6ca0c74cbf
commit ba4d81b2d9
1 changed files with 2 additions and 2 deletions

View File

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