The fbreak statement now advances p.
[external/ragel.git] / rlgen-cd / ipgotocodegen.cpp
index a314bd5..69f9da7 100644 (file)
@@ -113,7 +113,8 @@ void IpGotoCodeGen::TARGS( ostream &ret, bool inFinish, int targState )
 void IpGotoCodeGen::BREAK( ostream &ret, int targState )
 {
        outLabelUsed = true;
-       ret << "{" << CS() << " = " << targState << "; " << CTRL_FLOW() << "goto _out;}";
+       ret << "{" << P() << "++; " << CS() << " = " << targState << 
+                       "; " << CTRL_FLOW() << "goto _out;}";
 }
 
 bool IpGotoCodeGen::IN_TRANS_ACTIONS( RedStateAp *state )