From ecc43f7ce6220952bac7d8e751ca102c60f9f812 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 27 Oct 2003 08:11:09 +0000 Subject: [PATCH] xalloc.h now uses inline, so includers need to configure this. --- lib/ChangeLog | 2 ++ m4/ChangeLog | 5 +++++ m4/xalloc.m4 | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index d88f08fa9..70c6ab842 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -3,6 +3,8 @@ * xalloc.h (xalloc_oversized): New static inline function, for callers that want to do their own size-overflow checking. Include , since xalloc_oversized returns bool. + * xalloc.c (array_size_overflow): Remove. All callers changed + to use xalloc_oversized. Add two functions x2realloc, x2nrealloc, for programs that grow arrays dynamically by doubling their sizes. diff --git a/m4/ChangeLog b/m4/ChangeLog index 3ea1e5d99..2cc820752 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,8 @@ +2003-10-26 Paul Eggert + + * xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h + now uses inline. + 2003-10-23 Paul Eggert * getline.m4 (AM_FUNC_GETLINE): diff --git a/m4/xalloc.m4 b/m4/xalloc.m4 index 27c0a7b63..21afc6b12 100644 --- a/m4/xalloc.m4 +++ b/m4/xalloc.m4 @@ -1,4 +1,4 @@ -# xalloc.m4 serial 4 +# xalloc.m4 serial 5 dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General @@ -8,6 +8,7 @@ dnl the same distribution terms as the rest of that program. AC_DEFUN([gl_XALLOC], [ + AC_REQUIRE([AC_C_INLINE]) gl_PREREQ_XMALLOC gl_PREREQ_XSTRDUP ]) -- 2.11.0