Re: [Flex-devel] yytext and similar in -P scanners
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Will E. <wl...@us...> - 2007-06-28 01:57:37
|
Thanks much for the additional submission. --Will On Monday, 25 June 2007, 4:08 pm +0200, Petr Machata <pma...@re...> wrote: > Will Estes wrote: > > Thanks for the patch. We'll evaluate it for inclusion in the cvs tree. > > There was a bug discovered in my earlier "yy" patch. When in C++ mode, > it shouldn't emit the yy macros. I'm sending cvs diff that does this. > (Originally created by Srinivas Aji) > > Thanks, > PM > Index: flex.skl > =================================================================== > RCS file: /cvsroot/flex/flex/flex.skl,v > retrieving revision 2.208 > diff -u -r2.208 flex.skl > --- flex.skl 31 May 2007 06:21:57 -0000 2.208 > +++ flex.skl 25 Jun 2007 13:52:20 -0000 > @@ -56,6 +56,7 @@ > %# > > %not-for-header > +%if-c-only > %if-not-reentrant > m4_ifelse(M4_YY_PREFIX,yy,, > #define yy_create_buffer M4_YY_PREFIX[[_create_buffer]] > @@ -78,6 +79,7 @@ > #define yyfree M4_YY_PREFIX[[free]] > ) > %endif > +%endif > %ok-for-header > > #define FLEX_SCANNER > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Flex-devel mailing list > Fle...@li... > https://lists.sourceforge.net/lists/listinfo/flex-devel -- Will Estes Flex Project Maintainer http://flex.sourceforge.net/ |