Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4078697 By: nobody
Hi, i'm trying to switch the buffer in FLEX (i'm pasring a script that uses #include macros). I use GnuWin32 FLEX Ver. 2.5.4a-1 together with GnuWin32 Bison Ver. 1.875-4. I followed FLEX help file which has a sample code for switching buffers. My problem is that when I switch the input buffer with: yy_switch_to_buffer( yy_create_buffer( yyin, YY_BUF_SIZE ) ); FLEX continues to read from the _old_ buffer, no matter what I do, it just never reads anything from the new buffer. I was debugging it half a day and I can't find a reason why FLEX doesn't want to read the new buffer, but just continues to read the old one. yyin = fopen( yytext, "r" ); call seems to succeed btw. Any help would be appreciated. PS: I'm on WinXP using MSVC 2005 if that is relevant. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=74807 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ GnuWin32-Users mailing list GnuWin32-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnuwin32-users