Don't make ABI depend on G_ENABLE_DEBUG, just add an empty

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
This commit is contained in:
Matthias Clasen 2007-01-30 18:12:28 +00:00 committed by Matthias Clasen
parent df3dd538e5
commit 6a6d92a218
4 changed files with 10 additions and 6 deletions

View File

@ -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

View 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__)

View 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"

View 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