--- orig/pascal-lex.l Mon Feb 7 00:46:23 2005 +++ p/pascal-lex.l Tue Mar 29 01:55:10 2005 @@ -24,6 +24,9 @@ %option noyywrap %option nodefault +%option noyyalloc +%option noyyrealloc +%option noyyfree %pointer %x CaretLetter @@ -95,6 +99,10 @@ return c >= '0' && c <= '9'; } +#ifndef yyfree +#define yyfree free +#endif + void InitLex (const char *SrcName, FILE *i, int IsInteractive) { if (IsInteractive >= 0) --- orig/gpc-lex.c Mon Feb 14 20:56:20 2005 +++ p/gpc-lex.c Tue Mar 29 01:56:49 2005 @@ -40,9 +44,7 @@ #define BITS_PER_BYTES 8 #define BYTES_PER_INTEGER 8 #define lex_malloc xmalloc -#define YY_NO_FLEX_ALLOC #define yyalloc xmalloc -#define YY_NO_FLEX_REALLOC #define yyrealloc xrealloc #define YY_TYPEDEF_YY_SIZE_T typedef size_t yy_size_t;