]> git.ipfire.org Git - thirdparty/man-pages.git/commit
regex.3: Note that pmatch is still used if REG_NOSUB if REG_STARTEND
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Wed, 19 Apr 2023 23:23:04 +0000 (01:23 +0200)
committerAlejandro Colomar <alx@kernel.org>
Thu, 20 Apr 2023 11:17:09 +0000 (13:17 +0200)
commit0d120a3c76b4446b194a54387ce0e7a84b208bfd
treed3ed808545ae871d03f647b0f4a0c7fa00bcf765
parent34bb376e954f61adf9b70c84155d06568d161fd9
regex.3: Note that pmatch is still used if REG_NOSUB if REG_STARTEND

In the regexec() signature
  regmatch_t pmatch[restrict .nmatch],
is a simplification. It's actually
  regmatch_t pmatch[restrict
    ((.preg->flags & REG_NOSUB) ? 0 : .nmatch) ?:
     !!(.eflags & REG_STARTEND)],

But speccing that would be insane.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man3/regex.3