guile-commits
[Top][All Lists]
Advanced

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

[Guile-commits] 69/86: Move SCM_C_INLINE_KEYWORD definition to inline.h


From: Andy Wingo
Subject: [Guile-commits] 69/86: Move SCM_C_INLINE_KEYWORD definition to inline.h
Date: Wed, 20 Jun 2018 14:09:43 -0400 (EDT)

wingo pushed a commit to branch master
in repository guile.

commit 2b4ecafab8cb0d57b2a82ac650274b7b7ae7db83
Author: Andy Wingo <address@hidden>
Date:   Wed Jun 20 14:40:52 2018 +0200

    Move SCM_C_INLINE_KEYWORD definition to inline.h
    
    * libguile/__scm.h:
    * libguile/inline.h (SCM_C_INLINE_KEYWORD): Move this definition here.
---
 libguile/__scm.h  | 11 -----------
 libguile/inline.h | 11 +++++++++++
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/libguile/__scm.h b/libguile/__scm.h
index 2e45a31..eae1afb 100644
--- a/libguile/__scm.h
+++ b/libguile/__scm.h
@@ -388,17 +388,6 @@ typedef long SCM_STACKITEM;
 
 
 
-/* Define SCM_C_INLINE_KEYWORD so that it can be used as a replacement
-   for the "inline" keyword, expanding to nothing when "inline" is not
-   available.
-*/
-
-#ifdef SCM_C_INLINE
-#define SCM_C_INLINE_KEYWORD SCM_C_INLINE
-#else
-#define SCM_C_INLINE_KEYWORD
-#endif
-
 /* Handling thread-local storage (TLS).  */
 
 #ifdef SCM_HAVE_THREAD_STORAGE_CLASS
diff --git a/libguile/inline.h b/libguile/inline.h
index 4c17813..7bafb06 100644
--- a/libguile/inline.h
+++ b/libguile/inline.h
@@ -27,6 +27,17 @@
 
 #include "libguile/__scm.h"
 
+/* Define SCM_C_INLINE_KEYWORD so that it can be used as a replacement
+   for the "inline" keyword, expanding to nothing when "inline" is not
+   available.
+*/
+
+#ifdef SCM_C_INLINE
+#define SCM_C_INLINE_KEYWORD SCM_C_INLINE
+#else
+#define SCM_C_INLINE_KEYWORD
+#endif
+
 /* We would like gnu89 extern inline semantics, not C99 extern inline
    semantics, so that we can be sure to avoid reifying definitions of
    inline functions in all compilation units, which is a possibility at



reply via email to

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