rose: parameterise CHECK_LIT_EARLY

This commit is contained in:
Justin Viiret
2016-05-03 16:16:20 +10:00
committed by Matthew Barr
parent 7690881f85
commit 1df4da16ad
4 changed files with 40 additions and 10 deletions

View File

@@ -880,9 +880,9 @@ hwlmcb_rv_t roseRunProgram(const struct RoseEngine *t,
PROGRAM_NEXT_INSTRUCTION
PROGRAM_CASE(CHECK_LIT_EARLY) {
if (end < t->floatingMinLiteralMatchOffset) {
DEBUG_PRINTF("halt: too soon, min offset=%u\n",
t->floatingMinLiteralMatchOffset);
if (end < ri->min_offset) {
DEBUG_PRINTF("halt: before min_offset=%u\n",
ri->min_offset);
return HWLM_CONTINUE_MATCHING;
}
}