if (rose->flushCombProgramOffset) {
if (roseRunFlushCombProgram(rose, scratch, ~0ULL) == MO_HALT_MATCHING) {
- unmarkScratchInUse(scratch);
if (unlikely(internal_matching_error(scratch))) {
+ unmarkScratchInUse(scratch);
return HS_UNKNOWN_ERROR;
}
-
+ unmarkScratchInUse(scratch);
return HS_SCAN_TERMINATED;
}
}
return HS_SCRATCH_IN_USE;
}
report_eod_matches(to_id, scratch, onEvent, context);
- unmarkScratchInUse(scratch);
if (unlikely(internal_matching_error(scratch))) {
+ unmarkScratchInUse(scratch);
return HS_UNKNOWN_ERROR;
}
+ unmarkScratchInUse(scratch);
}
size_t stateSize
return HS_SCRATCH_IN_USE;
}
report_eod_matches(id, scratch, onEvent, context);
- unmarkScratchInUse(scratch);
if (unlikely(internal_matching_error(scratch))) {
+ unmarkScratchInUse(scratch);
return HS_UNKNOWN_ERROR;
}
+ unmarkScratchInUse(scratch);
}
if (id->rose->flushCombProgramOffset && !told_to_stop_matching(scratch)) {
if (roseRunFlushCombProgram(id->rose, scratch, ~0ULL)
== MO_HALT_MATCHING) {
scratch->core_info.status |= STATUS_TERMINATED;
- unmarkScratchInUse(scratch);
if (unlikely(internal_matching_error(scratch))) {
+ unmarkScratchInUse(scratch);
return HS_UNKNOWN_ERROR;
}
+ unmarkScratchInUse(scratch);
}
}
return HS_SCRATCH_IN_USE;
}
report_eod_matches(id, scratch, onEvent, context);
- unmarkScratchInUse(scratch);
if (unlikely(internal_matching_error(scratch))) {
+ unmarkScratchInUse(scratch);
return HS_UNKNOWN_ERROR;
}
+ unmarkScratchInUse(scratch);
}
if (id->rose->flushCombProgramOffset && !told_to_stop_matching(scratch)) {
if (roseRunFlushCombProgram(id->rose, scratch, ~0ULL)
== MO_HALT_MATCHING) {
scratch->core_info.status |= STATUS_TERMINATED;
- unmarkScratchInUse(scratch);
if (unlikely(internal_matching_error(scratch))) {
+ unmarkScratchInUse(scratch);
return HS_UNKNOWN_ERROR;
}
+ unmarkScratchInUse(scratch);
}
}
return HS_SCRATCH_IN_USE;
}
report_eod_matches(to_stream, scratch, onEvent, context);
- unmarkScratchInUse(scratch);
if (unlikely(internal_matching_error(scratch))) {
+ unmarkScratchInUse(scratch);
return HS_UNKNOWN_ERROR;
}
+ unmarkScratchInUse(scratch);
}
if (expand_stream(to_stream, rose, buf, buf_size)) {