mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-17 12:41:05 +03:00
definitions up, to avoid colliding with change below. (static_inline) [HAVE_INLINE]: New macro. (xnmalloc, xnrealloc, x2nrealloc, xcharalloc): Provide extern decls when !HAVE_INLINE. Do not define unless static_inline is defined, either by us or by xmalloc.c. Use static_inline rather than static inline. (XCALLOC): Optimize sizeof(T) = 1 case. * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro. 2006-11-07 Bruno Haible <bruno@clisp.org> * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case. * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of AC_C_INLINE. * modules/xalloc (Files): Add m4/inline.m4.
25 lines
557 B
Plaintext
25 lines
557 B
Plaintext
# xalloc.m4 serial 16
|
|
dnl Copyright (C) 2002, 2003, 2004, 2005, 2006 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],
|
|
[
|
|
AC_LIBOBJ([xmalloc])
|
|
|
|
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], [
|
|
:
|
|
])
|