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. --- tests/rescan_nr.direct.l | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/rescan_nr.direct.l') diff --git a/tests/rescan_nr.direct.l b/tests/rescan_nr.direct.l index 86103aa..536ba78 100644 --- a/tests/rescan_nr.direct.l +++ b/tests/rescan_nr.direct.l @@ -58,14 +58,14 @@ main (int argc, char* const argv[]) return 1; } - yyset_out ( stdout); + testset_out ( stdout); for (i=0; i < 4; ++i){ rewind(fp); - yyset_in ( fp); - while( yylex() ) + testset_in ( fp); + while( testlex() ) ; - yylex_destroy(); + testlex_destroy(); } printf("TEST RETURNING OK.\n"); return 0; -- cgit v1.2.3