summaryrefslogtreecommitdiff
path: root/tests/include_by_reentrant.direct.l
diff options
context:
space:
mode:
Diffstat (limited to 'tests/include_by_reentrant.direct.l')
-rw-r--r--tests/include_by_reentrant.direct.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/include_by_reentrant.direct.l b/tests/include_by_reentrant.direct.l
index 7dbad72..544dd2f 100644
--- a/tests/include_by_reentrant.direct.l
+++ b/tests/include_by_reentrant.direct.l
@@ -43,8 +43,8 @@ int error = 0;
%%
<INITIAL>{
-^"#include"[[:blank:]]+"<" { BEGIN(GET_FILENAME); }
-.|\n { ECHO; }
+^"#include"[[:blank:]]+"<" { yybegin(GET_FILENAME); }
+.|\n { yyecho(); }
}
<GET_FILENAME>{
@@ -65,7 +65,7 @@ int error = 0;
testlex(scanner);
testlex_destroy(scanner);
- BEGIN(0);
+ yybegin(0);
}
.|\n {
fprintf(stderr,"Invalid input \"%s\".\n", yytext);