mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-10 04:43:00 +03:00
* doc/glibc-functions/reallocarray.texi (reallocarray): Mention ptrdiff_t overflow. * lib/reallocarray.c (reallocarray): Reindent as per usual GNU. * lib/stdlib.in.h (reallocarray): Allow reallocarray to be replaced. * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Check for ptrdiff_t overflow. * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set up REPLACE_REALLOCARRAY. * modules/reallocarray (Files): Add malloc.m4. (configure.ac): Also test REPLACE_REALLOCARRAY. * modules/reallocarray-tests (Depends-on): Add stdint. * modules/stdlib (stdlib.h): Substitute REPLACE_REALLOCARRAY. * tests/test-reallocarray.c: Include stdint.h. (main): Check for ptrdiff_t overflow.
34 lines
492 B
Plaintext
34 lines
492 B
Plaintext
Description:
|
|
reallocarray function that is glibc compatible.
|
|
|
|
Files:
|
|
lib/reallocarray.c
|
|
m4/malloc.m4
|
|
m4/reallocarray.m4
|
|
|
|
Depends-on:
|
|
extensions
|
|
xalloc-oversized
|
|
realloc-gnu
|
|
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
|