[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] xmalloc, xnmalloc
From: |
Bruno Haible |
Subject: |
Re: [bug-gnulib] xmalloc, xnmalloc |
Date: |
Tue, 7 Nov 2006 14:41:44 +0100 |
User-agent: |
KMail/1.9.1 |
Paul Eggert wrote:
> HAVE_INLINE isn't defined by xalloc.m4 or any of xalloc's prerequisites.
Oops, thanks for noticing that. I'm adding this.
2006-11-06 Bruno Haible <address@hidden>
* m4/inline.m4: New file.
* m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
* modules/list (Files): Add m4/inline.m4.
* modules/oset (Files): Likewise.
*** /dev/null 2003-09-23 19:59:22.000000000 +0200
--- gnulib-20061106-modified/m4/inline.m4 2006-11-07 01:57:14.000000000
+0100
***************
*** 0 ****
--- 1,19 ----
+ # inline.m4 serial 1
+ dnl Copyright (C) 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.
+
+ dnl Test for the 'inline' keyword or equivalent.
+ dnl Define 'inline' to a supported equivalent, or to nothing if not supported,
+ dnl like AC_C_INLINE does. Also, define HAVE_INLINE if 'inline' or an
+ dnl equivalent is supported, i.e. if the compiler is likely to drop unused
+ dnl 'static inline' functions.
+ AC_DEFUN([gl_INLINE],
+ [
+ AC_REQUIRE([AC_C_INLINE])
+ if test $ac_cv_c_inline != no; then
+ AC_DEFINE([HAVE_INLINE], 1,
+ [Define to 1 if the compiler supports one of the keywords 'inline',
'__inline__', '__inline'.])
+ fi
+ ])
*** gnulib-20061106/m4/gl_list.m4 2006-07-17 02:12:23.000000000 +0200
--- gnulib-20061106-modified/m4/gl_list.m4 2006-11-07 01:57:34.000000000
+0100
***************
*** 1,4 ****
! # gl_list.m4 serial 1
dnl Copyright (C) 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,
--- 1,4 ----
! # gl_list.m4 serial 2
dnl Copyright (C) 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,
***************
*** 6,14 ****
AC_DEFUN([gl_LIST],
[
! AC_REQUIRE([AC_C_INLINE])
! if test $ac_cv_c_inline != no; then
! AC_DEFINE([HAVE_INLINE], 1,
! [Define to 1 if the compiler supports one of the keywords 'inline',
'__inline__', '__inline'.])
! fi
])
--- 6,10 ----
AC_DEFUN([gl_LIST],
[
! AC_REQUIRE([gl_INLINE])
])
*** gnulib-20061106/modules/list 2006-07-17 02:13:30.000000000 +0200
--- gnulib-20061106-modified/modules/list 2006-11-07 01:59:26.000000000
+0100
***************
*** 5,10 ****
--- 5,11 ----
lib/gl_list.h
lib/gl_list.c
m4/gl_list.m4
+ m4/inline.m4
Depends-on:
stdbool
*** gnulib-20061106/modules/oset 2006-07-17 02:33:44.000000000 +0200
--- gnulib-20061106-modified/modules/oset 2006-11-07 01:59:34.000000000
+0100
***************
*** 5,10 ****
--- 5,11 ----
lib/gl_oset.h
lib/gl_oset.c
m4/gl_list.m4
+ m4/inline.m4
Depends-on:
stdbool
- Re: [bug-gnulib] xmalloc, xnmalloc (was: Re: C++ support (2)), Bruno Haible, 2006/11/01
- Re: [bug-gnulib] xmalloc, xnmalloc, Paul Eggert, 2006/11/01
- Re: [bug-gnulib] xmalloc, xnmalloc, Bruno Haible, 2006/11/02
- Re: [bug-gnulib] xmalloc, xnmalloc, Paul Eggert, 2006/11/02
- Re: [bug-gnulib] xmalloc, xnmalloc, Bruno Haible, 2006/11/06
- Re: [bug-gnulib] xmalloc, xnmalloc, Paul Eggert, 2006/11/06
- Re: [bug-gnulib] xmalloc, xnmalloc,
Bruno Haible <=
- Re: [bug-gnulib] xmalloc, xnmalloc, Bruno Haible, 2006/11/07
- Re: [bug-gnulib] xmalloc, xnmalloc, Paul Eggert, 2006/11/07
- Re: [bug-gnulib] xmalloc, xnmalloc, Bruno Haible, 2006/11/08
- Re: [bug-gnulib] xmalloc, xnmalloc, Bruno Haible, 2006/11/08
- Re: [bug-gnulib] xmalloc, xnmalloc, Bruno Haible, 2006/11/07