From: borutr Date: Sun, 19 Oct 2003 18:37:56 +0000 (+0000) Subject: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=c388476d466f9011a924cbda18bdaf0426ef9840;p=fw%2Fsdcc fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2955 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index b242f43f..58549105 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-10-19 Borut Razem + + * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31 + 2003-10-19 Erik Petrich * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode): diff --git a/src/SDCC.lex b/src/SDCC.lex index d2749698..04aacc53 100644 --- a/src/SDCC.lex +++ b/src/SDCC.lex @@ -211,6 +211,12 @@ static int checkCurrFile(char *s); . { count() ; } %% +/* flex 2.5.31 undefines yytext_ptr, so we have to define it again */ +#ifndef yytext_ptr +#define yytext_ptr yytext +#endif + + static int checkCurrFile (char *s) { char lineNum[10] ;