numparam, use `isdigit_c()'

This commit is contained in:
rlar 2016-04-30 19:31:15 +02:00
parent e88e75a8d4
commit 31ca73a6f0
2 changed files with 1 additions and 8 deletions

View File

@ -390,13 +390,6 @@ alfa(char c)
}
bool
num(char c)
{
return (c >= '0') && (c <= '9');
}
bool
alfanum(char c)
{

View File

@ -1342,7 +1342,7 @@ getword(char *s, SPICE_DSTRINGPTR tstr_p, int after, int *pi)
spice_dstring_reinit(tstr_p);
while ((i <= ls) && (alfa(s[i - 1]) || num(s[i - 1]))) {
while ((i <= ls) && (alfa(s[i - 1]) || isdigit_c(s[i - 1]))) {
cadd(tstr_p, toupper_c(s[i - 1]));
i++;
}