bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 09/13] xvasprintf: no 'static inline'


From: Paul Eggert
Subject: [PATCH 09/13] xvasprintf: no 'static inline'
Date: Thu, 08 Nov 2012 23:51:18 -0800
User-agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121028 Thunderbird/16.0.2

* lib/xvasprintf.c (xstrcat):
Now static, not static inline.
* m4/xvasprintf.m4 (gl_XVASPRINTF):
Do not require AC_C_INLINE.
---
 ChangeLog        | 6 ++++++
 lib/xvasprintf.c | 2 +-
 m4/xvasprintf.m4 | 9 +++------
 3 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 05c581c..b165e9e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2012-11-08  Paul Eggert  <address@hidden>
 
+       xvasprintf: no 'static inline'
+       * lib/xvasprintf.c (xstrcat):
+       Now static, not static inline.
+       * m4/xvasprintf.m4 (gl_XVASPRINTF):
+       Do not require AC_C_INLINE.
+
        parse-datetime, parse-duration: no 'static inline'
        * lib/parse-datetime.y (to_uchar):
        * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
diff --git a/lib/xvasprintf.c b/lib/xvasprintf.c
index 7aaafd8..6213292 100644
--- a/lib/xvasprintf.c
+++ b/lib/xvasprintf.c
@@ -29,7 +29,7 @@
 /* Checked size_t computations.  */
 #include "xsize.h"
 
-static inline char *
+static char *
 xstrcat (size_t argcount, va_list args)
 {
   char *result;
diff --git a/m4/xvasprintf.m4 b/m4/xvasprintf.m4
index 0e19deb..3c6f7a5 100644
--- a/m4/xvasprintf.m4
+++ b/m4/xvasprintf.m4
@@ -1,11 +1,8 @@
-# xvasprintf.m4 serial 1
+# xvasprintf.m4 serial 2
 dnl Copyright (C) 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_XVASPRINTF],
-[
-  dnl Prerequisites of lib/xvasprintf.c.
-  AC_REQUIRE([AC_C_INLINE])
-])
+dnl Prerequisites of lib/xvasprintf.c.
+AC_DEFUN([gl_XVASPRINTF], [:])
-- 
1.7.11.7




reply via email to

[Prev in Thread] Current Thread [Next in Thread]