[binutils-gdb] Mach-O: use is_end_of_stmt()
Jan Beulich
jbeulich@sourceware.org
Fri Mar 7 07:10:22 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bcd356af2813ea8a71f7ce1ad73517448b9bc6c8
commit bcd356af2813ea8a71f7ce1ad73517448b9bc6c8
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri Mar 7 08:08:44 2025 +0100
Mach-O: use is_end_of_stmt()
... instead of open-coding it.
Diff:
---
gas/config/obj-macho.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
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';
}
}
More information about the Binutils-cvs
mailing list