]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas: suppress use of ISSPACE() / ISBLANK()
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Feb 2025 09:30:09 +0000 (10:30 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Feb 2025 09:30:09 +0000 (10:30 +0100)
We want is_whitespace() to be used uniformly, no matter what this then
expands to.

gas/read.h

index e2fd0cec977388048dff7d1fed9adc219f5a68b1..535f02807b9bcad5be9898dcc7ab1ff5282067f3 100644 (file)
@@ -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.  */