summaryrefslogtreecommitdiff
path: root/m4/xalloc.m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-11-20 22:25:07 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2012-11-29 23:38:52 -0800
commite76d7f2cbc2cd785d0c5dc5085ba9e41ab4720b9 (patch)
treec3809d4bde42ca1bf4f60e917a7c7c95a25e66e6 /m4/xalloc.m4
parent691d7bd0ad1d0ba169776bc9ab6a983a8201848e (diff)
downloadgnulib-e76d7f2cbc2cd785d0c5dc5085ba9e41ab4720b9.tar.gz
xalloc: better 'inline'
* lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE): New macro. Replace all uses of 'static inline' with it. (static_inline): Remove. * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc): Let 'extern inline' do the work automatically, instead of doing it by hand. * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC): Remove. All uses removed. * modules/xalloc (Depends-on): Remove 'inline'. Add 'extern-inline'.
Diffstat (limited to 'm4/xalloc.m4')
-rw-r--r--m4/xalloc.m419
1 files changed, 2 insertions, 17 deletions
diff --git a/m4/xalloc.m4 b/m4/xalloc.m4
index f47b649b5d..6c2d5d0322 100644
--- a/m4/xalloc.m4
+++ b/m4/xalloc.m4
@@ -1,22 +1,7 @@
-# xalloc.m4 serial 17
+# xalloc.m4 serial 18
dnl Copyright (C) 2002-2006, 2009-2012 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
-AC_DEFUN([gl_XALLOC],
-[
- gl_PREREQ_XALLOC
- gl_PREREQ_XMALLOC
-])
-
-# Prerequisites of lib/xalloc.h.
-AC_DEFUN([gl_PREREQ_XALLOC], [
- AC_REQUIRE([gl_INLINE])
- :
-])
-
-# Prerequisites of lib/xmalloc.c.
-AC_DEFUN([gl_PREREQ_XMALLOC], [
- :
-])
+AC_DEFUN([gl_XALLOC], [:])