NetBSD-macppc ctype needs uchars.
This commit is contained in:
parent
94d85bc000
commit
3bd56b04a8
22 changed files with 55 additions and 56 deletions
|
|
@ -93,7 +93,7 @@ pagelist(char *list) {
|
|||
start = 0;
|
||||
while ((c=*list) != '\0') {
|
||||
n = 0;
|
||||
while (isdigit(c)) {
|
||||
while (isdigit((uchar)c)) {
|
||||
n = n * 10 + c - '0';
|
||||
c = *++list;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ readDESC(void) {
|
|||
break;
|
||||
case 2:
|
||||
if (fontmnt <=0) {
|
||||
if (!isdigit(*token)) {
|
||||
if (!isdigit((uchar)*token)) {
|
||||
error(WARNING, "readdesc: expecting number of fonts in mount table.\n");
|
||||
return(FALSE);
|
||||
}
|
||||
|
|
@ -99,7 +99,7 @@ readDESC(void) {
|
|||
break;
|
||||
case 4:
|
||||
/* device resolution in dots per inch */
|
||||
if (!isdigit(*token)) {
|
||||
if (!isdigit((uchar)*token)) {
|
||||
error(WARNING, "readdesc: expecting device resolution.\n");
|
||||
return(FALSE);
|
||||
}
|
||||
|
|
@ -116,7 +116,7 @@ readDESC(void) {
|
|||
break;
|
||||
case 7:
|
||||
/* unitwidth is the font size at which the character widths are 1:1 */
|
||||
if (!isdigit(*token)) {
|
||||
if (!isdigit((uchar)*token)) {
|
||||
error(WARNING, "readdesc: expecting unitwidth.\n");
|
||||
return(FALSE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue