marked purely functional g_type accessors as PURE or CONST, closes
authorTim Janik <timj@gtk.org>
Mon, 12 Mar 2007 12:28:56 +0000 (12:28 +0000)
committerTim Janik <timj@src.gnome.org>
Mon, 12 Mar 2007 12:28:56 +0000 (12:28 +0000)
Mon Mar 12 13:30:20 2007  Tim Janik  <timj@gtk.org>

        * gtype.h: marked purely functional g_type accessors as PURE or CONST,
        closes #305100.

svn path=/trunk/; revision=5400

gobject/ChangeLog
gobject/gtype.h

index 5fb2116..1239653 100644 (file)
@@ -1,3 +1,8 @@
+Mon Mar 12 13:30:20 2007  Tim Janik  <timj@gtk.org>
+
+       * gtype.h: marked purely functional g_type accessors as PURE or CONST,
+       closes #305100.
+
 2007-01-02  Tor Lillqvist  <tml@novell.com>
 
        * glib-genmarshal.c (main): Handle "/dev/stdin" by dup()ing fd 0
index 1a86643..cbcc11d 100644 (file)
@@ -412,21 +412,21 @@ GTypeValueTable* g_type_value_table_peek        (GType                 type);
 
 
 /*< private >*/
-gboolean        g_type_check_instance          (GTypeInstance      *instance);
+gboolean        g_type_check_instance          (GTypeInstance      *instance) G_GNUC_PURE;
 GTypeInstance*   g_type_check_instance_cast     (GTypeInstance      *instance,
                                                 GType               iface_type);
 gboolean         g_type_check_instance_is_a    (GTypeInstance      *instance,
-                                                GType               iface_type);
+                                                GType               iface_type) G_GNUC_PURE;
 GTypeClass*      g_type_check_class_cast        (GTypeClass         *g_class,
                                                 GType               is_a_type);
 gboolean         g_type_check_class_is_a        (GTypeClass         *g_class,
-                                                GType               is_a_type);
-gboolean        g_type_check_is_value_type     (GType               type);
-gboolean        g_type_check_value             (GValue             *value);
+                                                GType               is_a_type) G_GNUC_PURE;
+gboolean        g_type_check_is_value_type     (GType               type) G_GNUC_CONST;
+gboolean        g_type_check_value             (GValue             *value) G_GNUC_PURE;
 gboolean        g_type_check_value_holds       (GValue             *value,
-                                                GType               type);
+                                                GType               type) G_GNUC_PURE;
 gboolean         g_type_test_flags              (GType               type,
-                                                guint               flags);
+                                                guint               flags) G_GNUC_CONST;
 
 
 /* --- debugging functions --- */