xpressn.c, fetchid(), #8/15 rewrite

This commit is contained in:
rlar 2015-10-10 15:01:07 +02:00
parent aa87d90ba9
commit 3fea077ebe
1 changed files with 5 additions and 3 deletions

View File

@ -722,10 +722,12 @@ fetchid(SPICE_DSTRINGPTR t, const char *s, const char *s_end)
ok = alfanum(c) || c == '.';
if (ok)
cadd(t, upcase(c));
if (!ok)
return s - 1;
} while (ok);
cadd(t, upcase(c));
} while (1);
return s - 1; /* return updated s */
}