From: Jan Beulich Date: Fri, 7 Mar 2025 07:23:37 +0000 (+0100) Subject: Z8k: use is_end_of_stmt() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=02b4b482c3104b14a5df3d4b0228ba56f4a95433;p=thirdparty%2Fbinutils-gdb.git Z8k: use is_end_of_stmt() ... instead of open-coding it. --- diff --git a/gas/config/tc-z8k.c b/gas/config/tc-z8k.c index d73df4ffb1e..4cfb302d82c 100644 --- a/gas/config/tc-z8k.c +++ b/gas/config/tc-z8k.c @@ -536,7 +536,7 @@ get_interrupt_operand (char **ptr, struct z8k_op *mode, unsigned int dst ATTRIBU *ptr = src + l; invalid: as_bad (_("unknown interrupt %s"), src); - while (**ptr && ! is_end_of_line[(unsigned char) **ptr]) + while (! is_end_of_stmt (**ptr)) (*ptr)++; /* Consume rest of line. */ return; } @@ -747,10 +747,10 @@ get_operands (const opcode_entry_type *opcode, char *op_end, op_type *operand) get_cc_operand (&ptr, operand + 0, 0); while (is_whitespace (*ptr)) ptr++; - if (*ptr && ! is_end_of_line[(unsigned char) *ptr]) + if (! is_end_of_stmt (*ptr)) { as_bad (_("invalid condition code '%s'"), ptr); - while (*ptr && ! is_end_of_line[(unsigned char) *ptr]) + while (! is_end_of_stmt (*ptr)) ptr++; /* Consume rest of line. */ } } @@ -759,10 +759,10 @@ get_operands (const opcode_entry_type *opcode, char *op_end, op_type *operand) get_flags_operand (&ptr, operand + 0, 0); while (is_whitespace (*ptr)) ptr++; - if (*ptr && ! is_end_of_line[(unsigned char) *ptr]) + if (! is_end_of_stmt (*ptr)) { as_bad (_("invalid flag '%s'"), ptr); - while (*ptr && ! is_end_of_line[(unsigned char) *ptr]) + while (*ptr && ! is_end_of_stmt (*ptr)) ptr++; /* Consume rest of line. */ } }