]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: consolidate whitespace recognition
authorJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2025 10:48:55 +0000 (11:48 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2025 10:48:55 +0000 (11:48 +0100)
commite8efdd32b56793c962ff7af065d2701a455bd18f
tree505822e963dc1bff4a342e2c43017ae868e5e330
parenta450dd002fce247827520ac21834c86c2d093515
gas: consolidate whitespace recognition

Let's extend lex_type[] to also cover whitespace, then having a simple
macro to uniformly recognize both blanks and tabs (and \r when it's not
EOL) as such.

In macro.c use sb_skip_white() as appropriate, instead of open-coding
it.
gas/cond.c
gas/expr.c
gas/listing.c
gas/macro.c
gas/read.c
gas/read.h
gas/sb.c