From f4be44b2b2d02c21273d4b89daf8dd60e6d9ee08 Mon Sep 17 00:00:00 2001 From: rlar Date: Wed, 16 Mar 2016 19:44:46 +0100 Subject: main(), warning: old-style function definition [-Wold-style-definition] --- tests/basic_r.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/basic_r.l') diff --git a/tests/basic_r.l b/tests/basic_r.l index e9ff59f..ba5734c 100644 --- a/tests/basic_r.l +++ b/tests/basic_r.l @@ -52,7 +52,7 @@ WS [[:blank:]] int main(void); -int main () +int main (void) { yyscan_t lexer; yylex_init( &lexer ); -- 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. --- tests/basic_r.l | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/basic_r.l') diff --git a/tests/basic_r.l b/tests/basic_r.l index ba5734c..43d3a88 100644 --- a/tests/basic_r.l +++ b/tests/basic_r.l @@ -55,13 +55,13 @@ int main(void); int main (void) { yyscan_t lexer; - yylex_init( &lexer ); - yyset_out ( stdout,lexer); - yyset_in ( stdin, lexer); - while( yylex(lexer) ) + testlex_init( &lexer ); + testset_out ( stdout,lexer); + testset_in ( stdin, lexer); + while( testlex(lexer) ) { } - yylex_destroy( lexer ); + testlex_destroy( lexer ); printf("TEST RETURNING OK.\n"); return 0; } -- cgit v1.2.3