]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
regex(3): Refactor fast/slow stepping bits in the matching engine
authorKyle Evans <kevans@FreeBSD.org>
Wed, 9 Aug 2017 01:04:36 +0000 (01:04 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Wed, 9 Aug 2017 01:04:36 +0000 (01:04 +0000)
commita0bf5d8a682d6137a5ec7fd834d9742376f2c9c8
tree681ffc4f1dcbd1a7bb58c4335d82ceb59201f2ba
parenta355bb884638810e76cf4a661c93607902ea5449
regex(3): Refactor fast/slow stepping bits in the matching engine

Adding features for matching is fairly straightforward, but this requires
some duplication because of this fast/slow setup. They can be fairly
trivially combined into a single walk(), so do it to make future additions
less error prone.

Reviewed by: cem (earlier version), emaste, pfg
Approved by: emaste (mentor)
Differential Revision: https://reviews.freebsd.org/D11233
lib/libc/regex/engine.c