changeset 4819:9449e9d024f2

xalloc.h now uses inline, so includers need to configure this.
author Paul Eggert <eggert@cs.ucla.edu>
date Mon, 27 Oct 2003 08:11:09 +0000
parents 167a92276385
children 559c5f9c9e45
files lib/ChangeLog m4/ChangeLog m4/xalloc.m4
diffstat 3 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
 	<stdbool.h>, 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.
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-26  Paul Eggert  <eggert@twinsun.com>
+
+	* xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
+	now uses inline.
+
 2003-10-23  Paul Eggert  <eggert@twinsun.com>
 
 	* getline.m4 (AM_FUNC_GETLINE):
--- 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 @@
 
 AC_DEFUN([gl_XALLOC],
 [
+  AC_REQUIRE([AC_C_INLINE])
   gl_PREREQ_XMALLOC
   gl_PREREQ_XSTRDUP
 ])