Guard g_slice_debug_tree_statistics by G_ENABLE_DEBUG. (#390940, Kazuki
authorMatthias Clasen <mclasen@redhat.com>
Tue, 2 Jan 2007 13:09:03 +0000 (13:09 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 2 Jan 2007 13:09:03 +0000 (13:09 +0000)
2007-01-02  Matthias Clasen  <mclasen@redhat.com>

        * glib/glib.symbols: Guard g_slice_debug_tree_statistics
        by G_ENABLE_DEBUG.  (#390940, Kazuki Iwamoto)

svn path=/trunk/; revision=5190

ChangeLog
docs/reference/ChangeLog
docs/reference/glib/running.sgml
glib/glib.symbols

index a9b0b858e8e5af1ba32ef9cad17050fea7b30bfb..32c856b60be03fd8199129dc4dbec882c103003e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-02  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/glib.symbols: Guard g_slice_debug_tree_statistics
+       by G_ENABLE_DEBUG.  (#390940, Kazuki Iwamoto)
+
 2007-01-02  Michael Natterer  <mitch@imendio.com>
 
        * configure.in
index f3000cbeca73f1ad91dc85835e7177feed6418aa..58b52541e8e21d38d8e7d6cee25c2a5c8b50de79 100644 (file)
@@ -1,3 +1,7 @@
+2007-01-02  Matthias Clasen  <mclasen@redhat.com>
+       
+       * glib/running.sgml: Remove C99ism from example.
+
 2006-12-31  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/tmpl/threads.sgml: Fix whitespace.  (#391116)
index 910a3eefe009c0291e34648cfb72aed136092257..8aae4f49f5d630dec99c29f14d229886752a4851 100644 (file)
@@ -158,8 +158,8 @@ variables like <envar>LANG</envar>, <envar>PATH</envar> or <envar>HOME</envar>.
                  A potential cause for such a situation that will be caught by G_SLICE=debug-blocks
                  is e.g.:
                  <programlisting>
-                   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) */
                  </programlisting>
                </para>
              </listitem>
index 9a315403d9172f9ac591f3b12406c4d3f45f9f1b..bfad3e2240837cea51687426c61a61fd9a6f677d 100644 (file)
@@ -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