From d958b412375693865bcc2365a687b1e3218c99b0 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 7 Feb 2025 10:30:09 +0100 Subject: [PATCH] gas: suppress use of ISSPACE() / ISBLANK() We want is_whitespace() to be used uniformly, no matter what this then expands to. --- 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. */ -- 2.39.5