opensubscriber
   Find in this group all groups
 
Unknown more information…

h : help-flex@gnu.org 2 April 2007 • 10:44PM -0400

Getting YY_CURRENT_BUFFER when using reentrant scanner
by henrik.sorensen

REPLY TO AUTHOR
 
REPLY TO GROUP




Hi List,

Just wondering how you are using YY_CURRENT_BUFFER in a reentrant scanner.

When using the %option reentrant, I have to do the following hack to use the
YY_CURRENT_BUFFER in a function that only takes the yyscan_t yyscanner as
parameter.


struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* <== HACK HACK */

yy_flush_buffer((YY_CURRENT_BUFFER),yyscanner);


Is there anyother way, that doesnt require the yyg variable ?


thanks for your help
Henrik


_______________________________________________
help-flex mailing list
help-flex@gnu....
http://lists.gnu.org/mailman/listinfo/help-flex

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.