From db9c08d08b3053e040c2ba4bc57611cc36e9f5cf Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 2 Jan 2007 13:09:03 +0000 Subject: [PATCH] Guard g_slice_debug_tree_statistics by G_ENABLE_DEBUG. (#390940, Kazuki 2007-01-02 Matthias Clasen * glib/glib.symbols: Guard g_slice_debug_tree_statistics by G_ENABLE_DEBUG. (#390940, Kazuki Iwamoto) svn path=/trunk/; revision=5190 --- ChangeLog | 5 +++++ docs/reference/ChangeLog | 4 ++++ docs/reference/glib/running.sgml | 4 ++-- glib/glib.symbols | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index a9b0b85..32c856b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-01-02 Matthias Clasen + + * glib/glib.symbols: Guard g_slice_debug_tree_statistics + by G_ENABLE_DEBUG. (#390940, Kazuki Iwamoto) + 2007-01-02 Michael Natterer * configure.in diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index f3000cb..58b5254 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,7 @@ +2007-01-02 Matthias Clasen + + * glib/running.sgml: Remove C99ism from example. + 2006-12-31 Matthias Clasen * glib/tmpl/threads.sgml: Fix whitespace. (#391116) diff --git a/docs/reference/glib/running.sgml b/docs/reference/glib/running.sgml index 910a3ee..8aae4f4 100644 --- a/docs/reference/glib/running.sgml +++ b/docs/reference/glib/running.sgml @@ -158,8 +158,8 @@ variables like LANG, PATH or HOME. A potential cause for such a situation that will be caught by G_SLICE=debug-blocks is e.g.: - void *slist = g_slist_alloc(); // void* gives up type-safety - g_list_free (slist); // corruption: sizeof (GSList) != sizeof (GList) + void *slist = g_slist_alloc(); /* void* gives up type-safety */ + g_list_free (slist); /* corruption: sizeof (GSList) != sizeof (GList) */ diff --git a/glib/glib.symbols b/glib/glib.symbols index 9a31540..bfad3e2 100644 --- a/glib/glib.symbols +++ b/glib/glib.symbols @@ -686,7 +686,7 @@ g_slice_free_chain_with_offset g_slice_set_config g_slice_get_config g_slice_get_config_state -#ifndef G_DISABLE_DEPRECATED +#ifdef G_ENABLE_DEBUG g_slice_debug_tree_statistics #endif #endif -- 2.7.4