[v2,39/65] PDP11: use is_whitespace()

Message ID 153cd132-824e-456f-a7ad-9daeaa7d2445@suse.com
State New
Headers
Series gas: whitespace handling |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_binutils_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 fail Patch failed to apply

Commit Message

Jan Beulich Jan. 27, 2025, 4:32 p.m. UTC
  Convert open-coded checks.
---
v2: New.
  

Patch

--- a/gas/config/tc-pdp11.c
+++ b/gas/config/tc-pdp11.c
@@ -320,7 +320,7 @@  md_chars_to_number (unsigned char *con,
 static char *
 skip_whitespace (char *str)
 {
-  while (*str == ' ' || *str == '\t')
+  while (is_whitespace (*str))
     str++;
   return str;
 }
@@ -328,7 +328,7 @@  skip_whitespace (char *str)
 static char *
 find_whitespace (char *str)
 {
-  while (*str != ' ' && *str != '\t' && *str != 0)
+  while (!is_whitespace (*str) && *str != 0)
     str++;
   return str;
 }