From: Jan Beulich Date: Mon, 3 Feb 2025 11:21:29 +0000 (+0100) Subject: S/390: use is_whitespace() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ea091addb352f955393c228af5ffe5d4faad97d7;p=thirdparty%2Fbinutils-gdb.git S/390: use is_whitespace() Convert ISSPACE() uses. At the same time use is_end_of_stmt() instead of kind-of-open-coded checks in adjacent code. --- diff --git a/gas/config/tc-s390.c b/gas/config/tc-s390.c index cb3de9d2e6c..a0cfeead253 100644 --- a/gas/config/tc-s390.c +++ b/gas/config/tc-s390.c @@ -1429,7 +1429,7 @@ md_gather_operands (char *str, char *f; int fc, i; - while (ISSPACE (*str)) + while (is_whitespace (*str)) str++; /* Gather the operands. */ @@ -1820,7 +1820,7 @@ md_gather_operands (char *str, } } - while (ISSPACE (*str)) + while (is_whitespace (*str)) str++; /* Check for tls instruction marker. */ @@ -1925,7 +1925,7 @@ md_assemble (char *str) char *s; /* Get the opcode. */ - for (s = str; *s != '\0' && ! ISSPACE (*s); s++) + for (s = str; ! is_end_of_stmt (*s) && ! is_whitespace (*s); s++) ; if (*s != '\0') *s++ = '\0'; @@ -1981,7 +1981,7 @@ s390_insn (int ignore ATTRIBUTE_UNUSED) /* Get the opcode format. */ s = input_line_pointer; - while (*s != '\0' && *s != ',' && ! ISSPACE (*s)) + while (! is_end_of_stmt (*s) && *s != ',' && ! is_whitespace (*s)) s++; if (*s != ',') as_bad (_("Invalid .insn format\n"));