NetBSD-macppc ctype needs uchars.
This commit is contained in:
parent
94d85bc000
commit
3bd56b04a8
22 changed files with 55 additions and 56 deletions
|
|
@ -456,7 +456,7 @@ static int
|
|||
isalldigit(char *s)
|
||||
{
|
||||
while(*s)
|
||||
if(!isdigit(*s++))
|
||||
if(!isdigit((uchar)*s++))
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,8 +25,7 @@ isostring(uchar *buf, int len)
|
|||
while(len > 0 && p[len-1] == ' ')
|
||||
p[--len] = '\0';
|
||||
for(q=p; *q; q++)
|
||||
*q = tolower(*q);
|
||||
|
||||
*q = tolower((uchar)*q);
|
||||
q = atom(p);
|
||||
free(p);
|
||||
return q;
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ struprcpy(char *p, char *s)
|
|||
|
||||
op = p;
|
||||
for(; *s; s++)
|
||||
*p++ = toupper(*s);
|
||||
*p++ = toupper((uchar)*s);
|
||||
*p = '\0';
|
||||
|
||||
return op;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue