]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
S/390: use is_whitespace()
authorJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2025 11:21:29 +0000 (12:21 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2025 11:21:29 +0000 (12:21 +0100)
Convert ISSPACE() uses. At the same time use is_end_of_stmt() instead
of kind-of-open-coded checks in adjacent code.

gas/config/tc-s390.c

index cb3de9d2e6c0b6c7e1f13cd5c05beb644d1967a8..a0cfeead25352b8e9cfccbcd7f91530e7bb1d494 100644 (file)
@@ -1429,7 +1429,7 @@ md_gather_operands (char *str,
   char *f;
   int fc, i;
 
-  while (ISSPACE (*str))
+  while (is_whitespace (*str))
     str++;
 
   /* Gather the operands.  */
@@ -1820,7 +1820,7 @@ md_gather_operands (char *str,
        }
     }
 
-  while (ISSPACE (*str))
+  while (is_whitespace (*str))
     str++;
 
   /* Check for tls instruction marker.  */
@@ -1925,7 +1925,7 @@ md_assemble (char *str)
   char *s;
 
   /* Get the opcode.  */
-  for (s = str; *s != '\0' && ! ISSPACE (*s); s++)
+  for (s = str; ! is_end_of_stmt (*s) && ! is_whitespace (*s); s++)
     ;
   if (*s != '\0')
     *s++ = '\0';
@@ -1981,7 +1981,7 @@ s390_insn (int ignore ATTRIBUTE_UNUSED)
 
   /* Get the opcode format.  */
   s = input_line_pointer;
-  while (*s != '\0' && *s != ',' && ! ISSPACE (*s))
+  while (! is_end_of_stmt (*s) && *s != ',' && ! is_whitespace (*s))
     s++;
   if (*s != ',')
     as_bad (_("Invalid .insn format\n"));