summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/regex2.h
diff options
context:
space:
mode:
authormartijn <martijn@openbsd.org>2016-05-26 05:46:44 +0000
committermartijn <martijn@openbsd.org>2016-05-26 05:46:44 +0000
commite315dedff8d9cbbf64bc080d283f4c20ae7a136a (patch)
tree0156a7008083d58b5f7af6b389fe46d8057e304c /lib/libc/regex/regex2.h
parentRemove superfluous loop counter to set alternate video interface since we (diff)
downloadwireguard-openbsd-e315dedff8d9cbbf64bc080d283f4c20ae7a136a.tar.xz
wireguard-openbsd-e315dedff8d9cbbf64bc080d283f4c20ae7a136a.zip
Change the way regexec handles REG_STARTEND combined with REG_NOTBOL.
The new code sees this combination as a continuation of string at offset pmatch[0].rm_so, instead of a new string which starts at that offset. This change fixes a search quirk in vi and is needed for upcoming fixes in ed/sed/vi. This new behaviour is also used in gnu regex. Lots of help from schwarze@ Manpage bits by schwarze@ OK schwarze@ and millert@
Diffstat (limited to 'lib/libc/regex/regex2.h')
0 files changed, 0 insertions, 0 deletions