summaryrefslogtreecommitdiff
path: root/gen.c
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1995-03-18 09:27:37 +0000
committerVern Paxson <vern@ee.lbl.gov>1995-03-18 09:27:37 +0000
commitf76cc4c9838f478ff9f8dbc5e4a4c36681700d7c (patch)
tree8843202e51f360ae166661af97704c85e51575cd /gen.c
parenta564f393fa20da7ed88f0e2bd69ef5fff253db46 (diff)
added do_yylineno
Diffstat (limited to 'gen.c')
-rw-r--r--gen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gen.c b/gen.c
index f78af88..75ee2f6 100644
--- a/gen.c
+++ b/gen.c
@@ -1344,7 +1344,7 @@ void make_tables()
gen_find_action();
skelout();
- if ( lex_compat )
+ if ( do_yylineno )
{
indent_puts( "if ( yy_act != YY_END_OF_BUFFER )" );
indent_up();
@@ -1518,7 +1518,7 @@ void make_tables()
gen_NUL_trans();
skelout();
- if ( lex_compat )
+ if ( do_yylineno )
{ /* update yylineno inside of unput() */
indent_puts( "if ( c == '\\n' )" );
indent_up();
@@ -1531,7 +1531,7 @@ void make_tables()
if ( bol_needed )
{
indent_puts( "yy_current_buffer->yy_at_bol = (c == '\\n');" );
- if ( lex_compat )
+ if ( do_yylineno )
{
indent_puts( "if ( yy_current_buffer->yy_at_bol )" );
indent_up();
@@ -1540,7 +1540,7 @@ void make_tables()
}
}
- else if ( lex_compat )
+ else if ( do_yylineno )
{
indent_puts( "if ( c == '\\n' )" );
indent_up();