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

This commit is contained in:
rlar 2015-10-10 16:34:21 +02:00
parent 16b53e3784
commit 880b41bb7f
1 changed files with 2 additions and 6 deletions

View File

@ -710,10 +710,7 @@ fetchid(SPICE_DSTRINGPTR t, const char *s, const char *s_end)
spice_dstring_reinit(t);
cadd(t, upcase(c));
do
{
if (s >= s_end)
break;
for (; s < s_end; ) {
c = *s++;
@ -727,8 +724,7 @@ fetchid(SPICE_DSTRINGPTR t, const char *s, const char *s_end)
return s - 1;
cadd(t, upcase(c));
} while (1);
}
return s;
}