mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
exhaust: Update interface
- Only use functions in exhaust.h for valid ekeys - Use INVALID_EKEY everywhere (remove dupe END_EXHAUST sentinel)
This commit is contained in:
committed by
Matthew Barr
parent
d75cc809fe
commit
50885f210a
@@ -119,9 +119,9 @@ char roseSuffixInfoIsExhausted(const struct RoseEngine *t,
|
||||
|
||||
DEBUG_PRINTF("check exhaustion -> start at %u\n", info->ekeyListOffset);
|
||||
|
||||
/* END_EXHAUST terminated list */
|
||||
/* INVALID_EKEY terminated list */
|
||||
const u32 *ekeys = (const u32 *)((const char *)t + info->ekeyListOffset);
|
||||
while (*ekeys != END_EXHAUST) {
|
||||
while (*ekeys != INVALID_EKEY) {
|
||||
DEBUG_PRINTF("check %u\n", *ekeys);
|
||||
if (!isExhausted(t, exhausted, *ekeys)) {
|
||||
DEBUG_PRINTF("not exhausted -> alive\n");
|
||||
|
Reference in New Issue
Block a user