|
| From: | Bruce Lilly |
| Subject: | Re: flex 2.5.2[34] / bison 1.75b interaction |
| Date: | Tue, 26 Nov 2002 10:41:41 -0500 |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2a) Gecko/20020910 |
Bruce Lilly wrote:
Current workaround is: #undef YYLTYPE #ifndef FLEX_SCANNER # define YY_HEADER_NO_UNDEFS # include "mailflex.h" # undef yyout #endif where mailflex.h is the flex-generated header.
Actually it is a post-processed version of the header.
Post-processing is via:
egrep -v 'yylval[^p]|<(string|errno|stdlib)\.h>' mailflex.h > z.h
mv -f z.h mailflex.h
which also removes yylval conflicts with bison as previously
reported on the help-flex list (as well as removing a bunch
of unnecessary header #includes that only slow down compilation).
| [Prev in Thread] | Current Thread | [Next in Thread] |