remove a hack to workaround lack of yylineno, turn on %option yylineno instead.
This commit is contained in:
parent
c798ff72db
commit
f2f44d1705
22
x11/xdtm/patches/patch-lexical_l
Normal file
22
x11/xdtm/patches/patch-lexical_l
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
$OpenBSD: patch-lexical_l,v 1.1 2009/10/16 10:30:02 sthen Exp $
|
||||||
|
--- lexical.l.orig Fri Oct 16 10:15:02 2009
|
||||||
|
+++ lexical.l Fri Oct 16 10:16:10 2009
|
||||||
|
@@ -1,3 +1,4 @@
|
||||||
|
+%option yylineno
|
||||||
|
%{ /*-*- Mode: C -*-*/
|
||||||
|
/**************************************************************************
|
||||||
|
** File : lexical.l **
|
||||||
|
@@ -171,13 +172,6 @@ static int numkeywords = (sizeof(keywordtable)/sizeof(
|
||||||
|
|
||||||
|
int parseerror=0; /* Number of parse errors */
|
||||||
|
char errormessage[255]; /* used for error messsages */
|
||||||
|
-
|
||||||
|
-/*
|
||||||
|
- * ``yylineno'' not POSIX standard, so have to simulate it when using flex.
|
||||||
|
- */
|
||||||
|
-#ifdef FLEX_SCANNER
|
||||||
|
-int yylineno=0;
|
||||||
|
-#endif
|
||||||
|
|
||||||
|
%}
|
||||||
|
%%
|
Loading…
Reference in New Issue
Block a user