From e50d903620be9b81e8dd89d1ed1063c13836ff26 Mon Sep 17 00:00:00 2001 From: Demi Obenour Date: Fri, 23 Sep 2016 11:28:56 -0400 Subject: no longer generate K&R C scanners --- src/options.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/options.c') diff --git a/src/options.c b/src/options.c index 39d020e..3f3a39f 100644 --- a/src/options.c +++ b/src/options.c @@ -213,10 +213,6 @@ optspec_t flexopts[] = { , {"--nowarn", OPT_NO_WARN, 0} , /* Suppress warning messages. */ - {"--noansi-definitions", OPT_NO_ANSI_FUNC_DEFS, 0} - , - {"--noansi-prototypes", OPT_NO_ANSI_FUNC_PROTOS, 0} - , {"--yyclass=NAME", OPT_YYCLASS, 0} , {"--yylineno", OPT_YYLINENO, 0} -- cgit v1.2.3 From 9d3ddf572e3744e4cf5e9788b676f423fe69aee8 Mon Sep 17 00:00:00 2001 From: Demi Obenour Date: Tue, 27 Sep 2016 10:54:16 -0400 Subject: 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. --- src/options.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/options.c') diff --git a/src/options.c b/src/options.c index 3f3a39f..366bc2e 100644 --- a/src/options.c +++ b/src/options.c @@ -271,7 +271,8 @@ optspec_t flexopts[] = { , {"--noyyset_lloc", OPT_NO_YYSET_LLOC, 0} , - + {"--unsafe-no-m4-sect3-escape", OPT_NO_SECT3_ESCAPE, 0} + , {0, 0, 0} /* required final NULL entry. */ }; -- cgit v1.2.3