xpressn.c, fetchid(), #5/15 express some facts

This commit is contained in:
rlar 2015-10-10 14:53:48 +02:00
parent cc68d8fadb
commit 16496f8ff7
1 changed files with 4 additions and 0 deletions

View File

@ -716,6 +716,10 @@ fetchid(SPICE_DSTRINGPTR t, const char *s, const char *s_end)
if (s > s_end)
c = '\0';
// facts: upcase('\0') == '\0'
// facts: alfanum('\0') == false
// facts: alfanum(upcase(x)) == alfanum(x)
c = upcase(c);
ok = alfanum(c) || c == '.';