[binutils-gdb] xgate: use is_whitespace()

Jan Beulich jbeulich@sourceware.org
Mon Feb 3 11:30:56 GMT 2025


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

commit 0dfd4cfe8245c539131073b0bb115ee417e81cf7
Author: Jan Beulich <jbeulich@suse.com>
Date:   Mon Feb 3 12:28:58 2025 +0100

    xgate: use is_whitespace()
    
    Convert an open-coded check.

Diff:
---
 gas/config/tc-xgate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gas/config/tc-xgate.c b/gas/config/tc-xgate.c
index 1c98f2dffb6..5e09ee5f27e 100644
--- a/gas/config/tc-xgate.c
+++ b/gas/config/tc-xgate.c
@@ -812,7 +812,7 @@ xgate_elf_final_processing (void)
 static inline char *
 skip_whitespace (char *s)
 {
-  while (*s == ' ' || *s == '\t' || *s == '(' || *s == ')')
+  while (is_whitespace (*s) || *s == '(' || *s == ')')
     s++;
 
   return s;


More information about the Binutils-cvs mailing list