mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-17 09:45:28 +03:00
Rose: pack global state bits into one u8
Eliminate the RoseRuntimeState structure in favour of a single status byte that is stored in scratch and copied to/from stream state.
This commit is contained in:
committed by
Matthew Barr
parent
28f379d738
commit
9e9bb6a960
@@ -290,7 +290,7 @@ int roseAdaptor_i(u64a offset, ReportID id, struct hs_scratch *scratch,
|
||||
exit:
|
||||
if (halt) {
|
||||
DEBUG_PRINTF("callback requested to terminate matches\n");
|
||||
ci->broken = BROKEN_FROM_USER;
|
||||
ci->status |= STATUS_TERMINATED;
|
||||
return MO_HALT_MATCHING;
|
||||
}
|
||||
|
||||
@@ -354,7 +354,7 @@ int roseDeliverReport(u64a offset, ReportID id, struct hs_scratch *scratch,
|
||||
to_offset, flags, ci->userContext);
|
||||
if (halt) {
|
||||
DEBUG_PRINTF("callback requested to terminate matches\n");
|
||||
ci->broken = BROKEN_FROM_USER;
|
||||
ci->status |= STATUS_TERMINATED;
|
||||
return MO_HALT_MATCHING;
|
||||
}
|
||||
|
||||
@@ -455,7 +455,7 @@ int roseSomAdaptor_i(u64a from_offset, u64a to_offset, ReportID id,
|
||||
exit:
|
||||
if (halt) {
|
||||
DEBUG_PRINTF("callback requested to terminate matches\n");
|
||||
ci->broken = BROKEN_FROM_USER;
|
||||
ci->status |= STATUS_TERMINATED;
|
||||
return MO_HALT_MATCHING;
|
||||
}
|
||||
|
||||
@@ -515,7 +515,7 @@ int roseDeliverSomReport(u64a from_offset, u64a to_offset, ReportID id,
|
||||
|
||||
if (halt) {
|
||||
DEBUG_PRINTF("callback requested to terminate matches\n");
|
||||
ci->broken = BROKEN_FROM_USER;
|
||||
ci->status |= STATUS_TERMINATED;
|
||||
return MO_HALT_MATCHING;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user