diff options
Diffstat (limited to 'tests/include_by_push.direct.l')
-rw-r--r-- | tests/include_by_push.direct.l | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/include_by_push.direct.l b/tests/include_by_push.direct.l index 8aaea69..6f1b4ea 100644 --- a/tests/include_by_push.direct.l +++ b/tests/include_by_push.direct.l @@ -42,8 +42,8 @@ int error = 0; %% <INITIAL>{ -^"#include"[[:blank:]]+"<" { BEGIN(GET_FILENAME); } -.|\n { ECHO; } +^"#include"[[:blank:]]+"<" { yybegin(GET_FILENAME); } +.|\n { yyecho(); } } <GET_FILENAME>{ @@ -56,7 +56,7 @@ int error = 0; yyterminate(); } testpush_buffer_state( yy_create_buffer( yyin, YY_BUF_SIZE )); - BEGIN(0); + yybegin(0); } .|\n { fprintf(stderr,"Invalid input \"%s\".\n", yytext); @@ -68,7 +68,7 @@ int error = 0; <<EOF>> { fclose(yyin); testpop_buffer_state(); - if(!YY_CURRENT_BUFFER) + if(!yy_current_buffer()) yyterminate(); } |