mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-10-04 08:08:27 +00:00
* lib/reallocarray.c: Include intprops.h. (reallocarray): Use INT_MULTIPLY_WRAPV instead of xalloc_oversized, as it now suffices and is likely a bit more efficient (five fewer machine insns on Ubuntu 20.10 x86-64). * modules/reallocarray (Depends-on): Depend on intprops, not xalloc-oversized. Use conditional dependencies to avoid building realloc-gnu when not needed.
34 lines
621 B
Plaintext
34 lines
621 B
Plaintext
Description:
|
|
reallocarray function that is glibc compatible.
|
|
|
|
Files:
|
|
lib/reallocarray.c
|
|
m4/malloc.m4
|
|
m4/reallocarray.m4
|
|
|
|
Depends-on:
|
|
extensions
|
|
intprops [test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1]
|
|
realloc-gnu [test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1]
|
|
stdlib
|
|
|
|
configure.ac:
|
|
gl_FUNC_REALLOCARRAY
|
|
if test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1; then
|
|
AC_LIBOBJ([reallocarray])
|
|
gl_PREREQ_REALLOCARRAY
|
|
fi
|
|
gl_MODULE_INDICATOR([reallocarray])
|
|
gl_STDLIB_MODULE_INDICATOR([reallocarray])
|
|
|
|
Makefile.am:
|
|
|
|
Include:
|
|
<stdlib.h>
|
|
|
|
License:
|
|
LGPLv2+
|
|
|
|
Maintainer:
|
|
all
|