diff -Naur boxes-1.0.1-orig/src/lexer.l boxes-1.0.1/src/lexer.l --- boxes-1.0.1-orig/src/lexer.l 2006-07-02 20:39:46.000000000 -0600 +++ boxes-1.0.1/src/lexer.l 2006-07-02 20:47:06.000000000 -0600 @@ -116,7 +116,6 @@ "$Id: boxes-1.0.1-flex.patch,v 1.1 2007/01/18 00:04:20 dirtyepic Exp $"; -int yylineno = 1; static int yyerrcnt = 0; static char sdel = '\"'; @@ -138,6 +137,7 @@ %option noyywrap %option never-interactive %option caseless +%option noyylineno %x SAMPLE @@ -468,7 +468,7 @@ exit (EXIT_FAILURE); } yy_delete_buffer (YY_CURRENT_BUFFER); - YY_CURRENT_BUFFER = yy_create_buffer (yyin, sinf.st_size+10); + yy_switch_to_buffer (yy_create_buffer (yyin, sinf.st_size+10)); }