Adding features for matching is fairly straightforward, but requires some
duplication because of this fast/slow setup. They can be fairly trivially combined
into a single walk(), so do it to make it less error prone.
Details
Details
Run regex(3), sed, grep, gsed tests
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
lib/libc/regex/engine.c | ||
---|---|---|
870 ↗ | (On Diff #29697) | style nit: spaces around + |
lib/libc/regex/engine.c | ||
---|---|---|
482 ↗ | (On Diff #29804) | walk inside of assert() is OK? |
lib/libc/regex/engine.c | ||
---|---|---|
482 ↗ | (On Diff #29804) | I believe in this case it should be fine; it's a sanity walk that shouldn't alter state since we should have exhausted the substring at that point. |