From: <ebo...@us...> - 2003-06-28 22:45:08
|
Update of /cvsroot/alleg/allegro/tools In directory sc8-pr-cvs1:/tmp/cvs-serv4580/tools Modified Files: dat2c.c Log Message: Fixed 4 compilations warnings on Solaris. Index: dat2c.c =================================================================== RCS file: /cvsroot/alleg/allegro/tools/dat2c.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- dat2c.c 18 May 2003 09:24:55 -0000 1.13 +++ dat2c.c 28 Jun 2003 22:45:04 -0000 1.14 @@ -135,9 +135,9 @@ static int invalid_macro_name(const char* n) { const char* m = 0; - if(*n != '_' && !isalpha(*n)) return 1; + if(*n != '_' && !isalpha((int)*n)) return 1; for(m = n + 1; *m; m++) - if(*m != '_' && !isalnum(*m)) return 1; + if(*m != '_' && !isalnum((int)*m)) return 1; return 0; } @@ -848,9 +848,9 @@ if(prop_name && strlen(prop_name)) { int i; for(i = 1; prop_name[i]; i++) { - if(!isalnum(prop_name[i]) && prop_name[i] != '_') break; + if(!isalnum((int)prop_name[i]) && prop_name[i] != '_') break; } - if((*prop_name == '_' || isalpha(*prop_name)) && + if((*prop_name == '_' || isalpha((int)*prop_name)) && !prop_name[i]) { return new_cident(prefix, prop_name, obj); |