Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
marked purely functional g_type accessors as PURE or CONST, closes
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tim-janik authored and Tim Janik committed Mar 12, 2007
1 parent f617a7f commit add6250
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions gobject/ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 7 additions & 7 deletions gobject/gtype.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 --- */
Expand Down

0 comments on commit add6250

Please sign in to comment.