[binutils-gdb] PDP11: use is_whitespace()

Jan Beulich jbeulich@sourceware.org
Mon Feb 3 11:20:31 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ca5580284f64049559b37d5c2aab433107f6bd0b

commit ca5580284f64049559b37d5c2aab433107f6bd0b
Author: Jan Beulich <jbeulich@suse.com>
Date:   Mon Feb 3 12:18:07 2025 +0100

    PDP11: use is_whitespace()
    
    Convert open-coded checks.

Diff:
---
 gas/config/tc-pdp11.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gas/config/tc-pdp11.c b/gas/config/tc-pdp11.c
index 2ae671082ec..2c3722c10c5 100644
--- a/gas/config/tc-pdp11.c
+++ b/gas/config/tc-pdp11.c
@@ -320,7 +320,7 @@ md_chars_to_number (unsigned char *con, int nbytes)
 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;
 }


More information about the Binutils-cvs mailing list