diff options
author | Jan Beulich <jbeulich@suse.com> | 2024-07-11 12:27:18 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2024-07-11 12:27:18 +0200 |
commit | 0cec3ce5705b14bfc693c54ab47b65635744b4ce (patch) | |
tree | c15e908392112580c75ea41b8c95c664789d6122 /gas/app.c | |
parent | 296597f53e2a3cf14eafdca4c3141f7a4a7ab14b (diff) | |
download | binutils-0cec3ce5705b14bfc693c54ab47b65635744b4ce.zip binutils-0cec3ce5705b14bfc693c54ab47b65635744b4ce.tar.gz binutils-0cec3ce5705b14bfc693c54ab47b65635744b4ce.tar.bz2 |
gas: don't open-code IS_WHITESPACE() / IS_NEWLINE()
Better be consistent in use of the wrapper macros, which imo also helps
readability.
Diffstat (limited to 'gas/app.c')
-rw-r--r-- | gas/app.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -851,7 +851,7 @@ do_scrub_chars (size_t (*get) (char *, size_t), char *tostart, size_t tolen, if (ch != '\0' && (*mri_state == ch || (*mri_state == ' ' - && lex[ch] == LEX_IS_WHITESPACE) + && IS_WHITESPACE (ch)) || (*mri_state == '0' && ch == '1'))) { @@ -859,8 +859,7 @@ do_scrub_chars (size_t (*get) (char *, size_t), char *tostart, size_t tolen, ++mri_state; } else if (*mri_state != '\0' - || (lex[ch] != LEX_IS_WHITESPACE - && lex[ch] != LEX_IS_NEWLINE)) + || (!IS_WHITESPACE (ch) && !IS_NEWLINE (ch))) { /* We did not get the expected character, or we didn't get a valid terminating character after seeing the |