]> Savannah Git Hosting - gnulib.git/commit
xalloc: new function xreallocarray
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 18 Apr 2021 23:24:51 +0000 (16:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 19 Apr 2021 03:59:51 +0000 (20:59 -0700)
commit109f6d1f8c520a0c2cfeee940a9671c83361a8c1
tree852af133949935928ff7d87daff059684c755c3c
parent9fd0a1ded22094060e351c4df9a1f2448af5eeaf
xalloc: new function xreallocarray

This effectively replaces xnmalloc, which perhaps should be deprecated.
The name xreallocarray should be easier to remember now that
reallocarray is a standard GNU function.
* lib/xalloc.h [GNULIB_XALLOC]: Do not include xalloc-oversized.h.
(xnmalloc, xnrealloc, x2nrealloc): Simplify by using xreallocarray.
* lib/xmalloc.c (xreallocarray): New function.
* modules/xalloc (Depends-on): Add reallocarray;
remove xalloc-oversized.
ChangeLog
lib/xalloc.h
lib/xmalloc.c
modules/xalloc