Permalink
Browse files

Add G_GNUC_PURE macro (but don't use it anywhere).

Add G_GNUC_PURE macro (but don't use it anywhere).
  • Loading branch information...
1 parent 723ef16 commit bef233642ee5a978ae94ef8be6d79879d1766985 Elliot Lee committed Sep 26, 2000
Showing with 38 additions and 0 deletions.
  1. +3 −0 ChangeLog
  2. +3 −0 ChangeLog.pre-2-0
  3. +3 −0 ChangeLog.pre-2-10
  4. +3 −0 ChangeLog.pre-2-12
  5. +3 −0 ChangeLog.pre-2-2
  6. +3 −0 ChangeLog.pre-2-4
  7. +3 −0 ChangeLog.pre-2-6
  8. +3 −0 ChangeLog.pre-2-8
  9. +7 −0 glib.h
  10. +7 −0 glib/glib.h
View
@@ -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.
View
@@ -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.
View
@@ -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.
View
@@ -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.
View
@@ -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.
View
@@ -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.
View
@@ -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.
View
@@ -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.
View
7 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)))
View
@@ -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)))

0 comments on commit bef2336

Please sign in to comment.