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:
Justin Viiret
2016-02-02 09:42:00 +11:00
committed by Matthew Barr
parent 28f379d738
commit 9e9bb6a960
14 changed files with 84 additions and 129 deletions

View File

@@ -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;
}