]> Savannah Git Hosting - gnulib.git/commit
xalloc: add malloc-related function attributes
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 30 Jul 2021 19:56:24 +0000 (12:56 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 31 Jul 2021 19:00:34 +0000 (12:00 -0700)
commit0c484f5b94afb881676016186d0a15de1bf9872c
tree10d5a484c1a910d5cae4dc30a5a043dd87de59db
parent5ac0cc90d7453595d56dd63e726079d2a4a42d74
xalloc: add malloc-related function attributes

* lib/quotearg.h, lib/xalloc.h: Include stdlib.h, for
the benefit of _GL_ATTRIBUTE_DALLOC_FREE.
* lib/quotearg.h (clone_quoting_options):
* lib/xalloc.h (xmalloc, ximalloc, xzalloc, xizalloc, xcalloc)
(xicalloc, xrealloc, xirealloc, xireallocarray, x2realloc)
(x2nrealloc, xmemdup, ximemdup, xstrdup, xnmalloc, xcharalloc):
Add _GL_ATTRIBUTE_DALLOC_FREE and _GL_ATTRIBUTE_RETURNS_NONNULL
attributes as appropriate.
ChangeLog
lib/quotearg.h
lib/xalloc.h