summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliot Lee <sopwith@src.gnome.org>2000-09-26 16:56:52 +0000
committerElliot Lee <sopwith@src.gnome.org>2000-09-26 16:56:52 +0000
commitbef233642ee5a978ae94ef8be6d79879d1766985 (patch)
tree9af920a15591f745316236c7cd48679a32809260
parent723ef16447f7d478e78a0cd0dbc63619c82b0cfb (diff)
Add G_GNUC_PURE macro (but don't use it anywhere).GNOME_PRINT_0_24
Add G_GNUC_PURE macro (but don't use it anywhere).
-rw-r--r--ChangeLog3
-rw-r--r--ChangeLog.pre-2-03
-rw-r--r--ChangeLog.pre-2-103
-rw-r--r--ChangeLog.pre-2-123
-rw-r--r--ChangeLog.pre-2-23
-rw-r--r--ChangeLog.pre-2-43
-rw-r--r--ChangeLog.pre-2-63
-rw-r--r--ChangeLog.pre-2-83
-rw-r--r--glib.h7
-rw-r--r--glib/glib.h7
10 files changed, 38 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4dd64cb18..26a0a2908 100644
--- 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.
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 4dd64cb18..26a0a2908 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -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/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 4dd64cb18..26a0a2908 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -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/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12
index 4dd64cb18..26a0a2908 100644
--- a/ChangeLog.pre-2-12
+++ b/ChangeLog.pre-2-12
@@ -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/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 4dd64cb18..26a0a2908 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -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/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 4dd64cb18..26a0a2908 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -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/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 4dd64cb18..26a0a2908 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -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/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 4dd64cb18..26a0a2908 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -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 f03db3fbf..155d66ce7 100644
--- 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)))
diff --git a/glib/glib.h b/glib/glib.h
index f03db3fbf..155d66ce7 100644
--- a/glib/glib.h
+++ b/glib/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)))