Don't make ABI depend on G_ENABLE_DEBUG, just add an empty
authorMatthias Clasen <mclasen@redhat.com>
Tue, 30 Jan 2007 18:12:28 +0000 (18:12 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 30 Jan 2007 18:12:28 +0000 (18:12 +0000)
2007-01-30  Matthias Clasen <mclasen@redhat.com>

        * glib/glib.symbols:
        * glib/gslice.h:
        * glib/gslice.c: Don't make ABI depend on G_ENABLE_DEBUG,
        just add an empty g_slice_debug_tree_statistics () implementation
        in the !G_ENABLE_DEBUG case.

svn path=/trunk/; revision=5318

ChangeLog
glib/glib.symbols
glib/gslice.c
glib/gslice.h

index 4daccd4..9b14256 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-01-30  Matthias Clasen <mclasen@redhat.com>
+
+       * glib/glib.symbols:
+       * glib/gslice.h:
+       * glib/gslice.c: Don't make ABI depend on G_ENABLE_DEBUG,
+       just add an empty g_slice_debug_tree_statistics () implementation
+       in the !G_ENABLE_DEBUG case.
+
 2007-01-26  Matthias Clasen <mclasen@redhat.com>
 
        * configure.in: Define G_GNUC_INTERNAL for Sun Studio
index 9c1aeae..ef1adc6 100644 (file)
@@ -686,11 +686,9 @@ g_slice_free_chain_with_offset
 g_slice_set_config
 g_slice_get_config
 g_slice_get_config_state
-#ifdef G_ENABLE_DEBUG
 g_slice_debug_tree_statistics
 #endif
 #endif
-#endif
 
 #if IN_HEADER(__G_MESSAGES_H__)
 #if IN_FILE(__G_MESSAGES_C__)
index 3b67e5e..1f87286 100644 (file)
@@ -1379,10 +1379,10 @@ smc_tree_remove (SmcKType key)
   return found_one;
 }
 
-#ifdef  G_ENABLE_DEBUG
 void
 g_slice_debug_tree_statistics (void)
 {
+#ifdef  G_ENABLE_DEBUG
   g_mutex_lock (smc_tree_mutex);
   if (smc_tree_root)
     {
@@ -1438,8 +1438,8 @@ g_slice_debug_tree_statistics (void)
    * GSlice: MemChecker: 504.900474 branches per trunk, 98.81% utilization
    * GSlice: MemChecker: 4.965039 entries per branch, 1 minimum, 37 maximum
    */
-}
 #endif /* G_ENABLE_DEBUG */
+}
 
 #define __G_SLICE_C__
 #include "galiasdef.c"
index 8d59567..4390841 100644 (file)
@@ -71,9 +71,7 @@ typedef enum {
 void     g_slice_set_config       (GSliceConfig ckey, gint64 value);
 gint64   g_slice_get_config       (GSliceConfig ckey);
 gint64*  g_slice_get_config_state  (GSliceConfig ckey, gint64 address, guint *n_values);
-#ifdef  G_ENABLE_DEBUG
 void     g_slice_debug_tree_statistics (void);
-#endif /* G_ENABLE_DEBUG */
 
 G_END_DECLS