flex icon indicating copy to clipboard operation
flex copied to clipboard

%option noyyset_extra broken on reentrant scanners

Open henstepl opened this issue 3 years ago • 0 comments

%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

henstepl avatar Nov 14 '21 00:11 henstepl