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 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

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

2021-04-18 Thread Paul Eggert
* 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. --- ChangeLog | 5 + doc/safe-alloc.texi | 14 +- 2 files changed, 14 inserti