rose_program: merge RECORD_ANCHORED instruction into ANCHORED_DELAY

This commit is contained in:
Alex Coyte
2017-04-26 09:31:04 +10:00
committed by Matthew Barr
parent e24c38a85c
commit f74f475189
6 changed files with 71 additions and 95 deletions

View File

@@ -1892,6 +1892,8 @@ hwlmcb_rv_t roseRunProgram_i(const struct RoseEngine *t,
DEBUG_PRINTF("delay until playback\n");
tctxt->groups |= ri->groups;
work_done = 1;
recordAnchoredLiteralMatch(t, scratch, ri->anch_id, end);
assert(ri->done_jump); // must progress
pc += ri->done_jump;
continue;
@@ -2085,8 +2087,8 @@ hwlmcb_rv_t roseRunProgram_i(const struct RoseEngine *t,
}
PROGRAM_NEXT_INSTRUCTION
PROGRAM_CASE(RECORD_ANCHORED) {
recordAnchoredLiteralMatch(t, scratch, ri->id, end);
PROGRAM_CASE(DUMMY_NOP) {
assert(0);
}
PROGRAM_NEXT_INSTRUCTION