[binutils-gdb] gas: suppress use of ISSPACE() / ISBLANK()
Jan Beulich
jbeulich@sourceware.org
Fri Feb 7 09:32:52 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d958b412375693865bcc2365a687b1e3218c99b0
commit d958b412375693865bcc2365a687b1e3218c99b0
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri Feb 7 10:30:09 2025 +0100
gas: suppress use of ISSPACE() / ISBLANK()
We want is_whitespace() to be used uniformly, no matter what this then
expands to.
Diff:
---
gas/read.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gas/read.h b/gas/read.h
index e2fd0cec977..535f02807b9 100644
--- a/gas/read.h
+++ b/gas/read.h
@@ -51,6 +51,10 @@ extern bool input_from_string;
#define is_whitespace(c) \
( lex_type[(unsigned char) (c)] & LEX_WHITE )
+/* Don't allow safe-ctype.h's counterparts to be used. */
+#undef ISSPACE
+#undef ISBLANK
+
/* The distinction of "line" and "statement" sadly is blurred by unhelpful
naming of e.g. the underlying array. Most users really mean "end of
statement". Going forward only these wrappers are supposed to be used. */
More information about the Binutils-cvs
mailing list