diff options
author | Jan Beulich <jbeulich@suse.com> | 2025-02-03 12:18:53 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2025-02-03 12:18:53 +0100 |
commit | 0a4e0f2a78825a80714616b35968744f555dabaa (patch) | |
tree | 2a44b068fac4b9c6735125eb9ca6890887de3f55 | |
parent | 2f7cfc9eb228b8979910ebec605432f1aaae6807 (diff) | |
download | binutils-0a4e0f2a78825a80714616b35968744f555dabaa.zip binutils-0a4e0f2a78825a80714616b35968744f555dabaa.tar.gz binutils-0a4e0f2a78825a80714616b35968744f555dabaa.tar.bz2 |
pru: use is_whitespace()
Convert open-coded checks as well as an ISSPACE() use.
-rw-r--r-- | gas/config/tc-pru.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-pru.c b/gas/config/tc-pru.c index abf7870..2e9d8e5 100644 --- a/gas/config/tc-pru.c +++ b/gas/config/tc-pru.c @@ -1441,7 +1441,7 @@ pru_parse_args (pru_insn_infoS *insn ATTRIBUTE_UNUSED, char *argstr, /* Strip trailing whitespace. */ len = strlen (parsed_args[i]); for (char *temp = parsed_args[i] + len - 1; - len && ISSPACE (*temp); + len && is_whitespace (*temp); temp--, len--) *temp = '\0'; @@ -1830,7 +1830,7 @@ pru_frob_label (symbolS *lab) static inline char * skip_space (char *s) { - while (*s == ' ' || *s == '\t') + while (is_whitespace (*s)) ++s; return s; } |