blob: cbbf1a6c8d457826f6e6848677dfc7d49ae519b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
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));
}
|