bug-gnulib
[Top][All Lists]
Advanced

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

[PATCH 04/13] error, filevercmp: no 'static inline'


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

* lib/error.c (is_open, flush_stdout):
* lib/filevercmp.c (order):
Now static, not static inline.
* m4/error.m4 (gl_PREREQ_ERROR):
* modules/filevercmp (configure.ac):
Do not require AC_C_INLINE.
---
 ChangeLog          | 8 ++++++++
 lib/error.c        | 4 ++--
 lib/filevercmp.c   | 2 +-
 m4/error.m4        | 1 -
 modules/filevercmp | 1 -
 5 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 62b25ca..d535d57 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2012-11-08  Paul Eggert  <address@hidden>
 
+       error, filevercmp: no 'static inline'
+       * lib/error.c (is_open, flush_stdout):
+       * lib/filevercmp.c (order):
+       Now static, not static inline.
+       * m4/error.m4 (gl_PREREQ_ERROR):
+       * modules/filevercmp (configure.ac):
+       Do not require AC_C_INLINE.
+
        dup, execute, fatal-signal, etc.: no 'static inline'
        * lib/dup.c (dup_nothrow):
        * lib/execute.c (nonintr_close, nonintr_open):
diff --git a/lib/error.c b/lib/error.c
index dc8c65f..7d2bc71 100644
--- a/lib/error.c
+++ b/lib/error.c
@@ -121,7 +121,7 @@ extern char *program_name;
 
 #if !_LIBC
 /* Return non-zero if FD is open.  */
-static inline int
+static int
 is_open (int fd)
 {
 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
@@ -139,7 +139,7 @@ is_open (int fd)
 }
 #endif
 
-static inline void
+static void
 flush_stdout (void)
 {
 #if !_LIBC
diff --git a/lib/filevercmp.c b/lib/filevercmp.c
index bc1cc07..c477e2f 100644
--- a/lib/filevercmp.c
+++ b/lib/filevercmp.c
@@ -57,7 +57,7 @@ match_suffix (const char **str)
 }
 
 /* verrevcmp helper function */
-static inline int
+static int
 order (unsigned char c)
 {
   if (c_isdigit (c))
diff --git a/m4/error.m4 b/m4/error.m4
index 5d9c70a..1190e32 100644
--- a/m4/error.m4
+++ b/m4/error.m4
@@ -23,6 +23,5 @@ AC_DEFUN([gl_ERROR],
 AC_DEFUN([gl_PREREQ_ERROR],
 [
   AC_REQUIRE([AC_FUNC_STRERROR_R])
-  AC_REQUIRE([AC_C_INLINE])
   :
 ])
diff --git a/modules/filevercmp b/modules/filevercmp
index dd6b0a6..373dfd0 100644
--- a/modules/filevercmp
+++ b/modules/filevercmp
@@ -11,7 +11,6 @@ stdbool
 string
 
 configure.ac:
-AC_REQUIRE([AC_C_INLINE])
 
 Makefile.am:
 lib_SOURCES += filevercmp.c
-- 
1.7.11.7




reply via email to

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