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

Message ID 208756e6-c4cd-4355-981b-37be9c95e716@suse.com
State New
Headers
Series gas: whitespace handling |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_binutils_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 success Test passed
linaro-tcwg-bot/tcwg_binutils_check--master-arm success Test passed

Commit Message

Jan Beulich Jan. 27, 2025, 4:47 p.m. UTC
  We want is_whitespace() to be used uniformly, no matter what this then
expands to.
---
v2: New.
  

Patch

--- 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.  */