From: Jan Beulich Date: Fri, 7 Mar 2025 07:08:44 +0000 (+0100) Subject: Mach-O: use is_end_of_stmt() X-Git-Tag: binutils-2_45~1319 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bcd356af2813ea8a71f7ce1ad73517448b9bc6c8;p=thirdparty%2Fbinutils-gdb.git Mach-O: use is_end_of_stmt() ... instead of open-coding it. --- diff --git a/gas/config/obj-macho.c b/gas/config/obj-macho.c index 89c2e0494db..d0cd3af958e 100644 --- a/gas/config/obj-macho.c +++ b/gas/config/obj-macho.c @@ -105,7 +105,7 @@ collect_16char_name (char *dest, const char *msg, int require_comma) namstart = input_line_pointer; while ( (c = *input_line_pointer) != ',' - && !is_end_of_line[(unsigned char) c]) + && !is_end_of_stmt (c)) input_line_pointer++; { @@ -325,7 +325,7 @@ obj_mach_o_section (int ignore ATTRIBUTE_UNUSED) SKIP_WHITESPACE (); p = input_line_pointer; while ((c = *input_line_pointer) != ',' - && !is_end_of_line[(unsigned char) c]) + && !is_end_of_stmt (c)) input_line_pointer++; len = input_line_pointer - p; @@ -364,7 +364,7 @@ obj_mach_o_section (int ignore ATTRIBUTE_UNUSED) p = input_line_pointer; while ((c = *input_line_pointer) != '+' && c != ',' - && !is_end_of_line[(unsigned char) c]) + && !is_end_of_stmt (c)) input_line_pointer++; len = input_line_pointer - p; @@ -1135,7 +1135,7 @@ obj_mach_o_sym_qual (int ntype) { input_line_pointer++; SKIP_WHITESPACE (); - if (is_end_of_line[(unsigned char) *input_line_pointer]) + if (is_end_of_stmt (*input_line_pointer)) c = '\n'; } }