flex
flex copied to clipboard
%option noyyset_extra broken on reentrant scanners
%option noyyset_extra
works fine on non-reentrant scanners, but it generates uncompilable reentrant scanners.
The error is the existence of yyset_extra (yy_user_defined, &dummy_yyguts);
and yyset_extra (yy_user_defined, *ptr_yy_globals);
in yylex_init_extra
function.
I have edited your example only to include the broken option, to prove this:
http://69.23.207.181/miti/reent/reent.l http://69.23.207.181/miti/reent/lex.yy.c