diff options
author | Jan Beulich <jbeulich@suse.com> | 2025-02-03 12:22:33 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2025-02-03 12:22:33 +0100 |
commit | 5e194d8567bf96014277801ee81c44a55f8aad41 (patch) | |
tree | 6e111ae032a78e06d3541d3fd9a93c83c44fa08e | |
parent | 52da676aa8a89c972a1651e071831d34019627ff (diff) | |
download | binutils-5e194d8567bf96014277801ee81c44a55f8aad41.zip binutils-5e194d8567bf96014277801ee81c44a55f8aad41.tar.gz binutils-5e194d8567bf96014277801ee81c44a55f8aad41.tar.bz2 |
spu: use is_whitespace()
Convert ISSPACE() uses. At the same time use is_end_of_stmt() instead
of a kind-of-open-coded check in adjacent code.
-rw-r--r-- | gas/config/tc-spu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/config/tc-spu.c b/gas/config/tc-spu.c index 8dba224..335fffc 100644 --- a/gas/config/tc-spu.c +++ b/gas/config/tc-spu.c @@ -263,7 +263,7 @@ md_assemble (char *op) /* skip over instruction to find parameters */ - for (param = op; *param != 0 && !ISSPACE (*param); param++) + for (param = op; !is_end_of_stmt (*param) && !is_whitespace (*param); param++) ; c = *param; *param = 0; @@ -388,7 +388,7 @@ calcop (struct spu_opcode *format, const char *param, struct spu_insn *insn) arg = format->arg[i]; syntax_error_arg = i; - while (ISSPACE (*param)) + while (is_whitespace (*param)) param++; if (*param == 0 || *param == ',') return 0; @@ -406,7 +406,7 @@ calcop (struct spu_opcode *format, const char *param, struct spu_insn *insn) if (!param) return 0; - while (ISSPACE (*param)) + while (is_whitespace (*param)) param++; if (arg != A_P && paren) @@ -426,7 +426,7 @@ calcop (struct spu_opcode *format, const char *param, struct spu_insn *insn) } } } - while (ISSPACE (*param)) + while (is_whitespace (*param)) param++; return !paren && (*param == 0 || *param == '\n'); } |