diff options
Diffstat (limited to 'colm/fsmcodegen.cpp')
-rw-r--r-- | colm/fsmcodegen.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/colm/fsmcodegen.cpp b/colm/fsmcodegen.cpp index 6d819970..fe5a6fb3 100644 --- a/colm/fsmcodegen.cpp +++ b/colm/fsmcodegen.cpp @@ -321,16 +321,8 @@ void FsmCodeGen::ACTION( ostream &ret, GenAction *action, int targState, bool in ret << "\t{"; INLINE_LIST( ret, action->inlineList, targState, inFinish ); - if ( action->objField ) { - ObjField *field = action->objField; - if ( action->markType == MarkEnter ) - ret << "mark_enter[" << field->offset << "] = " << P() << ";\n"; - else if ( action->markType == MarkLeave ) - ret << "mark_leave[" << field->offset << "] = " << P() << ";\n"; - } - - if ( action->markType == MarkMatchEnd ) - ret << "mark_match_end[" << action->matchEndNum << "] = " << P() << ";\n"; + if ( action->markId >= 0 ) + ret << "mark[" << action->markId << "] = " << P() << ";\n"; ret << "}\n"; |