diff options
author | David Schleef <ds@schleef.org> | 2005-08-16 00:09:32 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2005-08-16 00:09:32 +0000 |
commit | 8b6b1130c0eb3bedb2361e28cf17a7329552efc9 (patch) | |
tree | 4c0743975c0b320c1a6b3f83cf38d2bca9461a2d /liboil | |
parent | c823f1e1bcb79885d6bf2494882dd59619fa1357 (diff) | |
download | liboil-8b6b1130c0eb3bedb2361e28cf17a7329552efc9.tar.gz |
GCC complains on solaris when isspace() is called with a
char argument. Rather than argue about such stupidity,
I'll play along.
* liboil/liboilprototype.c: (oil_prototype_from_string),
(parse_string), (oil_param_from_string):
* testsuite/introspect.c: (parse_type), (parse_size),
(parse_string), (parse_prototype):
* testsuite/proto3.c: (check_param):
Diffstat (limited to 'liboil')
-rw-r--r-- | liboil/liboilprototype.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/liboil/liboilprototype.c b/liboil/liboilprototype.c index a694ad3..d137af4 100644 --- a/liboil/liboilprototype.c +++ b/liboil/liboilprototype.c @@ -119,26 +119,26 @@ OilPrototype *oil_prototype_from_string (const char *s) proto = malloc (sizeof(OilPrototype)); memset (proto, 0, sizeof(OilPrototype)); - while (isspace(*s))s++; + while (isspace((int)*s))s++; while (*s) { type_name = parse_string (s, &s); - while (isspace(*s))s++; + while (isspace((int)*s))s++; ptr = FALSE; if(s[0] == '*'){ ptr = TRUE; s++; } - while (isspace(*s))s++; + while (isspace((int)*s))s++; parameter_name = parse_string (s, &s); - while (isspace(*s))s++; + while (isspace((int)*s))s++; if(s[0] == ','){ s++; } - while (isspace(*s))s++; + while (isspace((int)*s))s++; param.type = oil_type_from_string (type_name, ptr); param.type_name = type_name; @@ -200,7 +200,7 @@ static char * parse_string (const char *s, const char **endptr) const char *s0; s0 = s; - while(isalnum(*s) || *s=='_') { + while(isalnum((int)*s) || *s=='_') { s++; } *endptr = s; @@ -550,7 +550,7 @@ oil_param_from_string (OilParameter *p, char *s) p->is_pointer = 1; } - if (isdigit (*s)) { + if (isdigit ((int)*s)) { p->index = *s - '0'; s++; } else { @@ -563,7 +563,7 @@ oil_param_from_string (OilParameter *p, char *s) s++; - if (isdigit (*s)) { + if (isdigit ((int)*s)) { length = strtoul (s, &s, 10); var = 0; } else if (*s == 'n') { @@ -583,7 +583,7 @@ oil_param_from_string (OilParameter *p, char *s) p->prestride_length = length; p->prestride_var = var; - if (isdigit (*s)) { + if (isdigit ((int)*s)) { p->poststride_length = strtoul (s, &s, 10); p->poststride_var = 0; } else if (*s == 'n') { |