From: Jan Beulich Date: Mon, 3 Feb 2025 11:18:07 +0000 (+0100) Subject: PDP11: use is_whitespace() X-Git-Tag: binutils-2_45~1729 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ca5580284f64049559b37d5c2aab433107f6bd0b;p=thirdparty%2Fbinutils-gdb.git PDP11: use is_whitespace() Convert open-coded checks. --- diff --git a/gas/config/tc-pdp11.c b/gas/config/tc-pdp11.c index 2ae671082ec..2c3722c10c5 100644 --- a/gas/config/tc-pdp11.c +++ b/gas/config/tc-pdp11.c @@ -320,7 +320,7 @@ md_chars_to_number (unsigned char *con, int nbytes) static char * skip_whitespace (char *str) { - while (*str == ' ' || *str == '\t') + while (is_whitespace (*str)) str++; return str; } @@ -328,7 +328,7 @@ skip_whitespace (char *str) static char * find_whitespace (char *str) { - while (*str != ' ' && *str != '\t' && *str != 0) + while (!is_whitespace (*str) && *str != 0) str++; return str; }