Add G_GNUC_PURE macro (but don't use it anywhere). GNOME_PRINT_0_24
authorElliot Lee <sopwith@src.gnome.org>
Tue, 26 Sep 2000 16:56:52 +0000 (16:56 +0000)
committerElliot Lee <sopwith@src.gnome.org>
Tue, 26 Sep 2000 16:56:52 +0000 (16:56 +0000)
Add G_GNUC_PURE macro (but don't use it anywhere).

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib.h
glib/glib.h

index 4dd64cb..26a0a29 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+Tue Sep 26 2000 Elliot Lee <sopwith@redhat.com>
+       * glib.h: Add G_GNUC_PURE macro (but don't use it anywhere).
+
 Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
        * garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
 
index 4dd64cb..26a0a29 100644 (file)
@@ -1,3 +1,6 @@
+Tue Sep 26 2000 Elliot Lee <sopwith@redhat.com>
+       * glib.h: Add G_GNUC_PURE macro (but don't use it anywhere).
+
 Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
        * garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
 
index 4dd64cb..26a0a29 100644 (file)
@@ -1,3 +1,6 @@
+Tue Sep 26 2000 Elliot Lee <sopwith@redhat.com>
+       * glib.h: Add G_GNUC_PURE macro (but don't use it anywhere).
+
 Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
        * garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
 
index 4dd64cb..26a0a29 100644 (file)
@@ -1,3 +1,6 @@
+Tue Sep 26 2000 Elliot Lee <sopwith@redhat.com>
+       * glib.h: Add G_GNUC_PURE macro (but don't use it anywhere).
+
 Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
        * garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
 
index 4dd64cb..26a0a29 100644 (file)
@@ -1,3 +1,6 @@
+Tue Sep 26 2000 Elliot Lee <sopwith@redhat.com>
+       * glib.h: Add G_GNUC_PURE macro (but don't use it anywhere).
+
 Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
        * garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
 
index 4dd64cb..26a0a29 100644 (file)
@@ -1,3 +1,6 @@
+Tue Sep 26 2000 Elliot Lee <sopwith@redhat.com>
+       * glib.h: Add G_GNUC_PURE macro (but don't use it anywhere).
+
 Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
        * garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
 
index 4dd64cb..26a0a29 100644 (file)
@@ -1,3 +1,6 @@
+Tue Sep 26 2000 Elliot Lee <sopwith@redhat.com>
+       * glib.h: Add G_GNUC_PURE macro (but don't use it anywhere).
+
 Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
        * garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
 
index 4dd64cb..26a0a29 100644 (file)
@@ -1,3 +1,6 @@
+Tue Sep 26 2000 Elliot Lee <sopwith@redhat.com>
+       * glib.h: Add G_GNUC_PURE macro (but don't use it anywhere).
+
 Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
        * garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
 
diff --git a/glib.h b/glib.h
index f03db3f..155d66c 100644 (file)
--- a/glib.h
+++ b/glib.h
@@ -271,6 +271,13 @@ extern "C" {
 
 /* Provide macros to feature the GCC function attribute.
  */
+#if    __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
+#define G_GNUC_PURE                            \
+  __attribute__((pure))
+#else
+#define G_GNUC_PURE
+#endif
+
 #if    __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
 #define G_GNUC_PRINTF( format_idx, arg_idx )   \
   __attribute__((format (printf, format_idx, arg_idx)))
index f03db3f..155d66c 100644 (file)
@@ -271,6 +271,13 @@ extern "C" {
 
 /* Provide macros to feature the GCC function attribute.
  */
+#if    __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
+#define G_GNUC_PURE                            \
+  __attribute__((pure))
+#else
+#define G_GNUC_PURE
+#endif
+
 #if    __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
 #define G_GNUC_PRINTF( format_idx, arg_idx )   \
   __attribute__((format (printf, format_idx, arg_idx)))