From 0d120a3c76b4446b194a54387ce0e7a84b208bfd Mon Sep 17 00:00:00 2001 From: наб Date: Thu, 20 Apr 2023 01:23:04 +0200 Subject: regex.3: Note that pmatch is still used if REG_NOSUB if REG_STARTEND MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Alejandro Colomar --- man3/regex.3 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/man3/regex.3 b/man3/regex.3 index e8fed5147..d77aac2e7 100644 --- a/man3/regex.3 +++ b/man3/regex.3 @@ -80,9 +80,11 @@ The .I nmatch and .I pmatch -arguments to .BR regexec () -are ignored if the pattern buffer supplied was compiled with this flag set. +arguments will be ignored for this purpose (but +.I pmatch +may still be used for +.BR REG_STARTEND ). .TP .B REG_NEWLINE Match-any-character operators don't match a newline. -- cgit v1.2.3