summaryrefslogtreecommitdiff
path: root/examples/manual/user_act.lex
diff options
context:
space:
mode:
Diffstat (limited to 'examples/manual/user_act.lex')
-rw-r--r--examples/manual/user_act.lex7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/manual/user_act.lex b/examples/manual/user_act.lex
index 156d5f9..2e1b72d 100644
--- a/examples/manual/user_act.lex
+++ b/examples/manual/user_act.lex
@@ -4,14 +4,13 @@
void user_action(void);
-#define YY_USER_ACTION user_action();
-
%}
+%option pre-action = "user_action();"
%%
-.* ECHO;
-\n ECHO;
+.* yyecho();
+\n yyecho();
%%