lm_switch needs to set p from tokend when there is no user action.
[external/ragel.git] / test / erract5.rl
index 73edec8..0ea6e9a 100644 (file)
 {
        const char *p = _data;
        const char *pe = _data + _len;
+       const char *eof = pe;
        %% write exec;
 }
 
 - (int) finish;
 {
-       %% write eof;
        if ( cs == ErrAct_error )
                return -1;
        else if ( cs >= ErrAct_first_final )