The cs variable is now always initialized, unless the "nocs" option is given to
[external/ragel.git] / test / export1.rl
index 1fec2e7..fe96141 100644 (file)
@@ -18,7 +18,7 @@
                c3 . '.'* '\n' @{ printf( "c3\n" );}
        )*;
                
-       main := any*;
+       some_other := any*;
 }%%
 
 %% write exports;
 
 int test( const char *data, int len )
 {
-       int cs;
+       int cs = test_en_commands;
        const char *p = data, *pe = data + len;
 
-       cs = test_en_commands;
+       %% write init nocs;
        %% write exec;
 
        if ( cs >= test_first_final )