From 685bd8696659b13e21af82e8d720f650ca0db2b3 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 11 Oct 2001 07:17:47 +0000 Subject: Use ISSPACE instead of isspace --- gas/ChangeLog | 5 +++++ gas/input-file.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'gas') diff --git a/gas/ChangeLog b/gas/ChangeLog index edb6e8c..28540c0 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2001-10-11 Nick Clifton + + * input-file.c: Include safe-ctype.h. + (input_file_open): Use ISSPACE instead of isspace. + 2001-10-10 Thiemo Seufer * config/tc-mips.c (mips_cpreturn_offset): New variable. diff --git a/gas/input-file.c b/gas/input-file.c index fcd710f..798f327 100644 --- a/gas/input-file.c +++ b/gas/input-file.c @@ -26,9 +26,9 @@ #include #include - #include "as.h" #include "input-file.h" +#include "safe-ctype.h" static int input_file_get PARAMS ((char *, int)); @@ -159,7 +159,7 @@ input_file_open (filename, pre) if (c == 'N') { fgets (buf, 80, f_in); - if (!strncmp (buf, "O_APP", 5) && isspace (buf[5])) + if (!strncmp (buf, "O_APP", 5) && ISSPACE (buf[5])) preprocess = 0; if (!strchr (buf, '\n')) ungetc ('#', f_in); /* It was longer. */ @@ -169,7 +169,7 @@ input_file_open (filename, pre) else if (c == 'A') { fgets (buf, 80, f_in); - if (!strncmp (buf, "PP", 2) && isspace (buf[2])) + if (!strncmp (buf, "PP", 2) && ISSPACE (buf[2])) preprocess = 1; if (!strchr (buf, '\n')) ungetc ('#', f_in); -- cgit v1.1