From: Jan Beulich Date: Fri, 7 Feb 2025 09:30:09 +0000 (+0100) Subject: gas: suppress use of ISSPACE() / ISBLANK() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d958b412375693865bcc2365a687b1e3218c99b0;p=thirdparty%2Fbinutils-gdb.git gas: suppress use of ISSPACE() / ISBLANK() We want is_whitespace() to be used uniformly, no matter what this then expands to. --- 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. */