/* Advance and test buffer pos. */
if ( state->labelNeeded ) {
- if ( hasEnd ) {
+ if ( !noEnd ) {
out <<
" if ( ++" << P() << " == " << PE() << " )\n"
" goto _test_eof" << state->id << ";\n";
}
}
- if ( hasEnd ) {
+ if ( !noEnd ) {
for ( RedStateList::Iter st = redFsm->stateList; st.lte(); st++ ) {
if ( st != redFsm->errState )
st->outNeeded = st->labelNeeded;
if ( redFsm->anyConditions() )
out << " " << WIDE_ALPH_TYPE() << " _widec;\n";
- if ( hasEnd ) {
+ if ( !noEnd ) {
testEofUsed = true;
out <<
" if ( " << P() << " == " << PE() << " )\n"
" }\n"
"\n";
- if ( hasEnd ) {
+ if ( !noEnd ) {
testEofUsed = true;
out <<
" if ( ++" << P() << " == " << PE() << " )\n"