[PATCH v2 65/65] gas: suppress use of ISSPACE() / ISBLANK()

Jan Beulich jbeulich@suse.com
Mon Jan 27 16:47:15 GMT 2025


We want is_whitespace() to be used uniformly, no matter what this then
expands to.
---
v2: New.

--- 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 mailing list