]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Mach-O: use is_end_of_stmt()
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 07:08:44 +0000 (08:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 07:08:44 +0000 (08:08 +0100)
... instead of open-coding it.

gas/config/obj-macho.c

index 89c2e0494dbf8d8d4a22f8c09b0e4573079b4964..d0cd3af958eaedfe4137a15979676462b17d252e 100644 (file)
@@ -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';
        }
     }