aboutsummaryrefslogtreecommitdiff
path: root/binutils/rclex.l
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1998-07-01 18:30:20 +0000
committerIan Lance Taylor <ian@airs.com>1998-07-01 18:30:20 +0000
commit72574626a96a884b457fdb2c52628e306a635507 (patch)
treeab81f964254841b8ee37b88c6a4a49e2400a4bf6 /binutils/rclex.l
parentd8d4c4e71aef1fec35258a6ae80260193d5cfc95 (diff)
downloadgdb-72574626a96a884b457fdb2c52628e306a635507.zip
gdb-72574626a96a884b457fdb2c52628e306a635507.tar.gz
gdb-72574626a96a884b457fdb2c52628e306a635507.tar.bz2
* rclex.l: Add casts and change types to avoid warnings.
* rcparse.y: Likewise. * resbin.c: Likewise. * rescoff.c: Likewise. * resrc.c: Likewise. * Makefile.am: Rebuild dependencies. (HFILES): Remove readelf.h. * Makefile.in: Rebuild. Based on patches from Andrew Kozin <Andrew.Kozin@p14.f960.n5020.z2.fidonet.org>: * winduni.h: New file, from windres.h. * winduni.c: New file, from windres.c. * windres.c: Move Unicode functions into winduni.c. * windres.h: Move Unicode declarations into winduni.h. Include winduni.h. (RT_ACCELERATOR): Rename from RT_ACCELERATORS to match Windows macro. Change all uses. (RT_PLUGPLAY, RT_VXD): Correct values. * Makefile.am (HFILES): Add windres.h. (CFILES): Add winduni.c. (windres_SOURCES): Add winduni.c.
Diffstat (limited to 'binutils/rclex.l')
-rw-r--r--binutils/rclex.l10
1 files changed, 5 insertions, 5 deletions
diff --git a/binutils/rclex.l b/binutils/rclex.l
index 50ef185..06a6607 100644
--- a/binutils/rclex.l
+++ b/binutils/rclex.l
@@ -235,18 +235,18 @@ cpp_line (s)
char *send, *fn;
++s;
- while (isspace (*s))
+ while (isspace ((unsigned char) *s))
++s;
line = strtol (s, &send, 0);
- if (*send != '\0' && ! isspace (*send))
+ if (*send != '\0' && ! isspace ((unsigned char) *send))
return;
/* Subtract 1 because we are about to count the newline. */
rc_lineno = line - 1;
s = send;
- while (isspace (*s))
+ while (isspace ((unsigned char) *s))
++s;
if (*s != '"')
@@ -392,8 +392,8 @@ handle_quotes (input, len)
else
{
++t;
- assert (isspace (*t));
- while (isspace (*t))
+ assert (isspace ((unsigned char) *t));
+ while (isspace ((unsigned char) *t))
++t;
if (*t == '\0')
break;