mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-18 10:10:35 +03:00
nfa: unify NfaCallback and SomNfaCallback
Use just one callback type, with both start and end offsets.
This commit is contained in:
committed by
Matthew Barr
parent
9087d59be5
commit
cf9e40ae1c
@@ -130,7 +130,7 @@ int limexRunReports(const ReportID *reports, NfaCallback callback,
|
||||
for (; *reports != MO_INVALID_IDX; ++reports) {
|
||||
DEBUG_PRINTF("firing report for id %u at offset %llu\n",
|
||||
*reports, offset);
|
||||
int rv = callback(offset, *reports, context);
|
||||
int rv = callback(0, offset, *reports, context);
|
||||
if (rv == MO_HALT_MATCHING) {
|
||||
return MO_HALT_MATCHING;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user