Re: [PATCH 1/8] safe-alloc: improve doc

2021-04-22 Thread Eric Blake
On 4/22/21 1:20 PM, Eric Blake wrote: > On 4/18/21 11:01 PM, Paul Eggert wrote: >> * doc/safe-alloc.texi: Clarify that reallocating an array appends >> uninitialized storage. Say ‘sizeof *p’ rather than ‘sizeof(*p)’ >> which would need a space before the paren to follow GNU style. > > Something i

Re: [PATCH 1/8] safe-alloc: improve doc

2021-04-22 Thread Eric Blake
On 4/22/21 2:32 PM, Paul Eggert wrote: > On 4/22/21 11:20 AM, Eric Blake wrote: > >> Looks like the definition of macro  __attribute_nonnull__ from cdefs.h >> is no longer implicitly picked up by the system headers used in that >> file. > > I installed the attached Gnulib patch to fix that; pleas

Re: [PATCH 4/8] xalloc: new function xreallocarray

2021-04-22 Thread Paul Eggert
On 4/21/21 5:18 PM, Bruno Haible wrote: I disagree that xnmalloc should be deprecated. I agree. That was a thinko in my ChangeLog entry; I meant to write "xnrealloc". Sorry about that. I installed the attached. >From ca883666cb34922d9ab1bd0ac0101970c7aa3910 Mon Sep 17 00:00:00 2001 From: Paul

Re: [PATCH 1/8] safe-alloc: improve doc

2021-04-22 Thread Paul Eggert
On 4/22/21 11:20 AM, Eric Blake wrote: Looks like the definition of macro __attribute_nonnull__ from cdefs.h is no longer implicitly picked up by the system headers used in that file. I installed the attached Gnulib patch to fix that; please give it a try. If it works, we should sync Gnulib'

Re: [PATCH 1/8] safe-alloc: improve doc

2021-04-22 Thread Eric Blake
On 4/18/21 11:01 PM, Paul Eggert wrote: > * doc/safe-alloc.texi: Clarify that reallocating an array appends > uninitialized storage. Say ‘sizeof *p’ rather than ‘sizeof(*p)’ > which would need a space before the paren to follow GNU style. Something in you recent malloc work (I'm not yet sure if i