From 72574626a96a884b457fdb2c52628e306a635507 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 1 Jul 1998 18:30:20 +0000 Subject: * 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 : * 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. --- binutils/rclex.l | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'binutils/rclex.l') 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; -- cgit v1.1