[binutils-gdb] S/390: use is_whitespace()
Jan Beulich
jbeulich@sourceware.org
Mon Feb 3 11:23:46 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ea091addb352f955393c228af5ffe5d4faad97d7
commit ea091addb352f955393c228af5ffe5d4faad97d7
Author: Jan Beulich <jbeulich@suse.com>
Date: Mon Feb 3 12:21:29 2025 +0100
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:
---
gas/config/tc-s390.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
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"));
More information about the Binutils-cvs
mailing list