Re: CVS commit: src/lib/libc/regex

2021-02-25 Thread Christos Zoulas
In article <5c9e716-7ec1-9c7d-a7cb-21f08946...@invisible.ca>, Jared McNeill wrote: >Building tools on macOS: > >/Users/jmcneill/netbsd/git-src/tools/compat/../../lib/libc/regex/regcomp.c:1585:8: > >error: implicit declaration of function 'reallocarray' is invalid > in C99 [-Werror,-Wimplic

Re: CVS commit: src/lib/libc/regex

2021-02-25 Thread Jared McNeill
Building tools on macOS: /Users/jmcneill/netbsd/git-src/tools/compat/../../lib/libc/regex/regcomp.c:1585:8: error: implicit declaration of function 'reallocarray' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ncs = reallocarray(p->g->sets, p->g->ncsets + 1, sizeof(*n

Re: CVS commit: src/lib/libc/regex

2018-02-26 Thread Kamil Rytarowski
On 26.02.2018 15:41, Christos Zoulas wrote: > On Feb 26, 2:33pm, n...@gmx.com (Kamil Rytarowski) wrote: > -- Subject: Re: CVS commit: src/lib/libc/regex > > | Looking at the internals of regasub(3) and regnsub(3), 10 is not just a > | lower limit, but also the upper limit. I will

Re: CVS commit: src/lib/libc/regex

2018-02-26 Thread Christos Zoulas
On Feb 26, 2:33pm, n...@gmx.com (Kamil Rytarowski) wrote: -- Subject: Re: CVS commit: src/lib/libc/regex | Looking at the internals of regasub(3) and regnsub(3), 10 is not just a | lower limit, but also the upper limit. I will try to explain it better | in a documentation and leave the code as

Re: CVS commit: src/lib/libc/regex

2018-02-26 Thread Kamil Rytarowski
On 25.02.2018 00:45, Christos Zoulas wrote: > On Feb 25, 12:39am, n...@gmx.com (Kamil Rytarowski) wrote: > -- Subject: Re: CVS commit: src/lib/libc/regex > > | > | --MIMEStream=_0+26969_51985210222325_05798576868 > | Content-Type: multipart/signed; micalg=pgp-sha256; > |

Re: CVS commit: src/lib/libc/regex

2018-02-24 Thread Christos Zoulas
On Feb 25, 12:39am, n...@gmx.com (Kamil Rytarowski) wrote: -- Subject: Re: CVS commit: src/lib/libc/regex | | --MIMEStream=_0+26969_51985210222325_05798576868 | Content-Type: multipart/signed; micalg=pgp-sha256; | protocol="application/pgp-signature"; |

Re: CVS commit: src/lib/libc/regex

2018-02-24 Thread Kamil Rytarowski
On 14.01.2016 21:41, Christos Zoulas wrote: > +The > +.Fa rm > +array must be at least 10 elements long, and should contain the result > +of the matches from a previous > +.Fn regexec > +call. Could we have an argument to regasub(3)/regnsub(3) "size_t nmatch" like in regexec(3), instead of assumin

Re: CVS commit: src/lib/libc/regex

2011-11-16 Thread Takehiko NOZAKI
do we have to fix src/dist/nvi/regex too? it is same spencer regex code as src/lib/libc/regex (but modified for wide character). ftp://ftp.netbsd.org/pub/NetBSD/misc/tnozaki/patch-dist_nvi_regex very truly yours -- Takehiko NOZAKI 2011/10/10 Christos Zoulas : > Module Name:    src > Committed