Skip to content

Commit 8a9c6a7

Browse files
author
Christopher Sean Morrison
committed
from mpictor's commit fixing a crash from newer versions of flex, mpictor/StepClassLibrary@37ac5dc; which is from a gentoo spim patch, which seems to have originated from a fedora patch. apparently yy_init was changed from meaning 'needs to be initialized' to 'was initialized', effectively flipping the boolean meaning.
1 parent 7133ef4 commit 8a9c6a7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/express/expscan.l

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,11 @@ exp_flex_init()
434434
{
435435
/* yy_init is what tells flex to reinitialize its buffers */
436436

437+
# if (YY_FLEX_MAJOR_VERSION==2 && YY_FLEX_MINOR_VERSION==5 && YY_FLEX_SUBMINOR_VERSION>=33)
438+
/* flex 2.5.33 flips the polarity of this flag */
439+
yy_init = 0;
440+
# else
437441
yy_init = 1;
442+
# endif
438443
}
439444
#endif

0 commit comments

Comments
 (0)