From add62500f74213cc756e77b75d4f4fd2b4f6e9cc Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Mon, 12 Mar 2007 12:28:56 +0000 Subject: [PATCH] marked purely functional g_type accessors as PURE or CONST, closes Mon Mar 12 13:30:20 2007 Tim Janik * gtype.h: marked purely functional g_type accessors as PURE or CONST, closes #305100. svn path=/trunk/; revision=5400 --- gobject/ChangeLog | 5 +++++ gobject/gtype.h | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/gobject/ChangeLog b/gobject/ChangeLog index 5fb2116a9..1239653b4 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,3 +1,8 @@ +Mon Mar 12 13:30:20 2007 Tim Janik + + * gtype.h: marked purely functional g_type accessors as PURE or CONST, + closes #305100. + 2007-01-02 Tor Lillqvist * glib-genmarshal.c (main): Handle "/dev/stdin" by dup()ing fd 0 diff --git a/gobject/gtype.h b/gobject/gtype.h index 1a86643c4..cbcc11d1e 100644 --- a/gobject/gtype.h +++ b/gobject/gtype.h @@ -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 --- */