NetBSD-macppc ctype needs uchars.

This commit is contained in:
rsc 2005-09-09 23:16:15 +00:00
parent 94d85bc000
commit 3bd56b04a8
22 changed files with 55 additions and 56 deletions

View file

@ -456,7 +456,7 @@ static int
isalldigit(char *s)
{
while(*s)
if(!isdigit(*s++))
if(!isdigit((uchar)*s++))
return 0;
return 1;
}

View file

@ -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;

View file

@ -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;