The reference to the act variable in the scanner switch was not done with
authorthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Mon, 5 Feb 2007 21:23:25 +0000 (21:23 +0000)
committerthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Mon, 5 Feb 2007 21:23:25 +0000 (21:23 +0000)
ACT(). Now fixed.

git-svn-id: http://svn.complang.org/ragel/trunk@80 052ea7fc-9027-0410-9066-f65837a77df0

rlcodegen/fsmcodegen.cpp
rlgen-java/javacodegen.cpp
rlgen-ruby/rubycodegen.cpp

index d3f33b5..652c05e 100644 (file)
@@ -235,7 +235,7 @@ void FsmCodeGen::LM_SWITCH( ostream &ret, InlineItem *item,
                int targState, int inFinish )
 {
        ret << 
-               "       switch( act ) {\n";
+               "       switch( " << ACT() << " ) {\n";
 
        /* If the switch handles error then we also forced the error state. It
         * will exist. */
index 2f0fcce..995a16d 100644 (file)
@@ -1313,7 +1313,7 @@ void JavaTabCodeGen::LM_SWITCH( ostream &ret, InlineItem *item,
                int targState, int inFinish )
 {
        ret << 
-               "       switch( act ) {\n";
+               "       switch( " << ACT() << " ) {\n";
 
        /* If the switch handles error then we also forced the error state. It
         * will exist. */
index 1e3ae36..e7af7cd 100644 (file)
@@ -1331,7 +1331,7 @@ void RubyCodeGen::LM_SWITCH( ostream &ret, InlineItem *item,
                int targState, int inFinish )
 {
        ret << 
-               "       switch( act ) {\n";
+               "       switch( " << ACT() << " ) {\n";
 
        /* If the switch handles error then we also forced the error state. It
         * will exist. */