From: Alexander Larsson Date: Wed, 3 Jan 2001 10:03:49 +0000 (+0000) Subject: Move glib_debug_objects out of the G_ENABLE_DEBUG #ifdef. X-Git-Tag: GLIB_1_2_9PRE1~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b579b5933b2f11c9b673899d8a61a39a3aeb23c;p=platform%2Fupstream%2Fglib.git Move glib_debug_objects out of the G_ENABLE_DEBUG #ifdef. 2001-01-03 Alexander Larsson * gobject.c: Move glib_debug_objects out of the G_ENABLE_DEBUG #ifdef. --- diff --git a/gobject/ChangeLog b/gobject/ChangeLog index 7be5398..22c23d2 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,3 +1,8 @@ +2001-01-03 Alexander Larsson + + * gobject.c: + Move glib_debug_objects out of the G_ENABLE_DEBUG #ifdef. + Thu Dec 28 11:36:44 2000 Tim Janik * gbsearcharray.c (upper_power2): disable G_BSEARCH_ALIGN_POWER2 diff --git a/gobject/gobject.c b/gobject/gobject.c index d273552..f4b8233 100644 --- a/gobject/gobject.c +++ b/gobject/gobject.c @@ -133,13 +133,14 @@ static gulong gobject_signals[LAST_SIGNAL] = { 0, }; /* --- functions --- */ -#ifdef G_ENABLE_DEBUG /* We need an actual method for handling debug keys in GLib. * For now, we'll simply use, as a method * 'extern gboolean glib_debug_objects' */ -static volatile GObject *glib_trap_object_ref = NULL; gboolean glib_debug_objects = FALSE; + +#ifdef G_ENABLE_DEBUG +static volatile GObject *glib_trap_object_ref = NULL; static guint debug_objects_count = 0; static GHashTable *debug_objects_ht = NULL; static void