mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-19 02:30:35 +03:00
Introduce REPEAT_ALWAYS model for {0,} castle repeats
As Castle guards the repeats, no more state is needed for these repeats
This commit is contained in:
@@ -130,6 +130,9 @@ char repeatIsDead(const struct RepeatInfo *info,
|
||||
return lstate->ctrl.ring.offset == REPEAT_DEAD;
|
||||
case REPEAT_TRAILER:
|
||||
return lstate->ctrl.trailer.offset == REPEAT_DEAD;
|
||||
case REPEAT_ALWAYS:
|
||||
assert(!"REPEAT_ALWAYS should only be used by Castle");
|
||||
return 0;
|
||||
}
|
||||
|
||||
assert(0);
|
||||
|
||||
Reference in New Issue
Block a user