mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-10-09 07:42:21 +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
@@ -76,15 +76,14 @@
|
||||
|
||||
char nfaCheckFinalState(const struct NFA *nfa, const char *state,
|
||||
const char *streamState, u64a offset,
|
||||
NfaCallback callback, SomNfaCallback som_cb,
|
||||
void *context) {
|
||||
NfaCallback callback, void *context) {
|
||||
assert(ISALIGNED_CL(nfa) && ISALIGNED_CL(getImplNfa(nfa)));
|
||||
|
||||
// Caller should avoid calling us if we can never produce matches.
|
||||
assert(nfaAcceptsEod(nfa));
|
||||
|
||||
DISPATCH_BY_NFA_TYPE(_testEOD(nfa, state, streamState, offset, callback,
|
||||
som_cb, context));
|
||||
context));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user