]> granicus.if.org Git - flex/commit
Fix M4 quoting of section 3.
authorDemi Obenour <demiobenour@gmail.com>
Tue, 27 Sep 2016 14:54:16 +0000 (10:54 -0400)
committerWill Estes <westes575@gmail.com>
Wed, 5 Oct 2016 23:25:56 +0000 (19:25 -0400)
commit9d3ddf572e3744e4cf5e9788b676f423fe69aee8
tree1a9ae51e2be904714c0afdae5dbad00c81ccf300
parent735ffb6a653552831321acaa0e7d0a834a210a84
Fix M4 quoting of section 3.

This fixes M4 quoting of section 3 of the input file, including escape
sequences and character constants.

Tests were added to verify the behavior in section 3 with respect to
quoting. Both escaping of quotes and quoting of potential macro-start
characters are tested. Existing tests were also fixed to account for the new -- and now correct -- behavior. Many tests relied on the old behavior of expanding M4 macros
in section 3.  They needed to be updated for the new behavior.
28 files changed:
src/filter.c
src/flexdef.h
src/main.c
src/misc.c
src/options.c
src/options.h
src/scan.l
src/yylex.c
tests/Makefile.am
tests/alloc_extra.l
tests/array_r.l
tests/basic_r.l
tests/c_cxx_nr.lll
tests/c_cxx_r.lll
tests/debug_r.l
tests/include_by_reentrant.direct.l
tests/lineno_r.l
tests/mem_nr.l
tests/mem_r.l
tests/posix.l
tests/posixly_correct.l
tests/pthread.l
tests/quotes.l
tests/reject.l4
tests/rescan_nr.direct.l
tests/rescan_r.direct.l
tests/string_nr.l
tests/string_r.l