summaryrefslogtreecommitdiffstats
path: root/gl/m4/calloc.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/calloc.m4')
-rw-r--r--gl/m4/calloc.m413
1 files changed, 7 insertions, 6 deletions
diff --git a/gl/m4/calloc.m4 b/gl/m4/calloc.m4
index fe12b15..c01520e 100644
--- a/gl/m4/calloc.m4
+++ b/gl/m4/calloc.m4
@@ -1,6 +1,6 @@
1# calloc.m4 serial 27 1# calloc.m4 serial 29
2 2
3# Copyright (C) 2004-2021 Free Software Foundation, Inc. 3# Copyright (C) 2004-2022 Free Software Foundation, Inc.
4# This file is free software; the Free Software Foundation 4# This file is free software; the Free Software Foundation
5# gives unlimited permission to copy and/or distribute it, 5# gives unlimited permission to copy and/or distribute it,
6# with or without modifications, as long as this notice is preserved. 6# with or without modifications, as long as this notice is preserved.
@@ -58,8 +58,9 @@ AC_DEFUN([gl_FUNC_CALLOC_GNU],
58[ 58[
59 AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) 59 AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
60 AC_REQUIRE([gl_FUNC_CALLOC_POSIX]) 60 AC_REQUIRE([gl_FUNC_CALLOC_POSIX])
61 if test $REPLACE_CALLOC = 0; then 61 REPLACE_CALLOC_FOR_CALLOC_GNU="$REPLACE_CALLOC_FOR_CALLOC_POSIX"
62 _AC_FUNC_CALLOC_IF([], [REPLACE_CALLOC=1]) 62 if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 0; then
63 _AC_FUNC_CALLOC_IF([], [REPLACE_CALLOC_FOR_CALLOC_GNU=1])
63 fi 64 fi
64])# gl_FUNC_CALLOC_GNU 65])# gl_FUNC_CALLOC_GNU
65 66
@@ -72,8 +73,8 @@ AC_DEFUN([gl_FUNC_CALLOC_POSIX],
72[ 73[
73 AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) 74 AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
74 AC_REQUIRE([gl_FUNC_MALLOC_POSIX]) 75 AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
75 if test $REPLACE_MALLOC = 1; then 76 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
76 REPLACE_CALLOC=1 77 REPLACE_CALLOC_FOR_CALLOC_POSIX=1
77 fi 78 fi
78 dnl Although in theory we should also test for size_t overflow, 79 dnl Although in theory we should also test for size_t overflow,
79 dnl in practice testing for ptrdiff_t overflow suffices 80 dnl in practice testing for ptrdiff_t overflow suffices