Re: [PATCH v4 1/6] regex.3: Fix subsection headings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/20/23 15:02, наб wrote:
> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@xxxxxxxxxxxxxxxxxx>
> ---
> $ git diff v3
> 
> But the patches are re-ordered (and a new move-only one added);
> --range-diff, humorously, /only/ picks up that one, and doesn't
> understand the rest, which is worse than if it failed entirely.
> 
> The 3type move is as far back as I could make it I think,
> 6/6 wants to come after regoff_t deduplication.
> 
>  man3/regex.3 | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/man3/regex.3 b/man3/regex.3
> index 3ee58f61d..637cb2231 100644
> --- a/man3/regex.3
> +++ b/man3/regex.3
> @@ -31,7 +31,7 @@ size_t " errbuf_size );
>  .BI "void regfree(regex_t *" preg );
>  .fi
>  .SH DESCRIPTION
> -.SS POSIX regex compiling
> +.SS Compilation
>  .BR regcomp ()
>  is used to compile a regular expression into a form that is suitable
>  for subsequent
> @@ -110,7 +110,7 @@ whether
>  .I eflags
>  contains
>  .BR REG_NOTEOL .
> -.SS POSIX regex matching
> +.SS Matching
>  .BR regexec ()
>  is used to match a null-terminated string
>  against the precompiled pattern buffer,
> @@ -159,7 +159,7 @@ or
>  .B REG_NEWLINE
>  processing.
>  This flag is a BSD extension, not present in POSIX.
> -.SS Byte offsets
> +.SS Match offsets

I think it might be a bit clearer as "Subexpression match offsets" or
something like that?  What do you think?

>  Unless
>  .B REG_NOSUB
>  was set for the compilation of the pattern buffer, it is possible to
> @@ -209,7 +209,7 @@ The relative
>  .I rm_eo
>  element indicates the end offset of the match,
>  which is the offset of the first character after the matching text.
> -.SS POSIX error reporting
> +.SS Error reporting
>  .BR regerror ()
>  is used to turn the error codes that can be returned by both
>  .BR regcomp ()
> @@ -238,7 +238,7 @@ are nonzero,
>  is filled in with the first
>  .I "errbuf_size \- 1"
>  characters of the error message and a terminating null byte (\[aq]\e0\[aq]).
> -.SS POSIX pattern buffer freeing
> +.SS Freeing
>  Supplying
>  .BR regfree ()
>  with a precompiled pattern buffer,

-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux