diff options
author | rsc <devnull@localhost> | 2005-09-09 23:16:15 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-09-09 23:16:15 +0000 |
commit | 3bd56b04a8bab7208494fd7dc74af5528fc41604 (patch) | |
tree | edf470d36f67c5726bc93f1b4bc185a516b888b9 /src/cmd/acidtypes | |
parent | 94d85bc000866ecb4874e0e5bdcf30de4a84862e (diff) | |
download | plan9port-3bd56b04a8bab7208494fd7dc74af5528fc41604.tar.gz plan9port-3bd56b04a8bab7208494fd7dc74af5528fc41604.tar.bz2 plan9port-3bd56b04a8bab7208494fd7dc74af5528fc41604.zip |
NetBSD-macppc ctype needs uchars.
Diffstat (limited to 'src/cmd/acidtypes')
-rw-r--r-- | src/cmd/acidtypes/stabs.c | 10 | ||||
-rw-r--r-- | src/cmd/acidtypes/type.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/cmd/acidtypes/stabs.c b/src/cmd/acidtypes/stabs.c index 51d71c4a..7cc45c26 100644 --- a/src/cmd/acidtypes/stabs.c +++ b/src/cmd/acidtypes/stabs.c @@ -115,7 +115,7 @@ comma(char **p) static int parseint(char **pp) { - if(!isdigit(**pp)) + if(!isdigit((uchar)**pp)) oops(); return strtol(*pp, pp, 10); } @@ -129,7 +129,7 @@ parsename(char *desc, char **pp) if(*desc == 'c') return nil; - if(isdigit(*desc) || *desc=='-' || *desc=='(') + if(isdigit((uchar)*desc) || *desc=='-' || *desc=='(') return parseinfo(desc, pp); if(*desc == 0) oops(); @@ -169,7 +169,7 @@ parseinfo(char *desc, char **pp) static int parsenum(char *p, int *n1, int *n2, char **pp) { - if(isdigit(*p)){ + if(isdigit((uchar)*p)){ *n1 = strtol(p, &p, 10); *n2 = 0; *pp = p; @@ -316,7 +316,7 @@ parsedefn(char *p, Type *t, char **pp) long val; Type *tt; - if(*p == '(' || isdigit(*p)){ + if(*p == '(' || isdigit((uchar)*p)){ t->ty = Defer; t->sub = parseinfo(p, pp); return t; @@ -587,7 +587,7 @@ parsebigint(char **pp) neg = 1; p++; } - if(!isdigit(*p)) + if(!isdigit((uchar)*p)) oops(); n = strtol(p, &p, 10); if(neg) diff --git a/src/cmd/acidtypes/type.c b/src/cmd/acidtypes/type.c index 4afd3e54..5757a327 100644 --- a/src/cmd/acidtypes/type.c +++ b/src/cmd/acidtypes/type.c @@ -373,7 +373,7 @@ nameof(Type *t, int doanon) else return ""; for(p=buf; *p; p++) - if(isspace(*p)) + if(isspace((uchar)*p)) *p = '_'; return buf; } |