fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 19 Oct 2003 18:37:56 +0000 (18:37 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 19 Oct 2003 18:37:56 +0000 (18:37 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2955 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/SDCC.lex

index b242f43f8810a7cdf51fbc54abd408b1dcc027d3..58549105f8bf2d9bc9c6fc7194024c475d27a5cb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-10-19  Borut Razem <borut.razem@siol.net>
+
+       * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
+
 2003-10-19 Erik Petrich <epetrich@ivorytower.norman.ok.us>
 
        * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
index d27496983af877116d40853c61f5e2e6bef9b4bf..04aacc53228d690872dfce68794e24679d22424d 100644 (file)
@@ -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]                   ;