]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas: don't open-code IS_WHITESPACE() / IS_NEWLINE()
authorJan Beulich <jbeulich@suse.com>
Thu, 11 Jul 2024 10:27:18 +0000 (12:27 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 11 Jul 2024 10:27:18 +0000 (12:27 +0200)
Better be consistent in use of the wrapper macros, which imo also helps
readability.

gas/app.c

index b268b66b8f0517b8d99573a8d082af049f4854a1..acddd70d13467873399e016c1fef8df6f988ea79 100644 (file)
--- a/gas/app.c
+++ b/gas/app.c
@@ -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