+2005-11-28 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gthread.c (g_static_rw_lock_wait, g_static_rw_lock_signal):
+ * glib/gnode.c (g_node_depth_traverse_level):
+ * glib/gmem.c (g_allocator_new):
+ * glib/ghash.c (g_hash_table_unref, g_hash_table_destroy)
+ (g_hash_table_foreach_remove_or_steal): Silence compiler
+ warnings.
+
2005-11-27 Matthias Clasen <mclasen@redhat.com>
* glib/gunicollate.c (g_utf8_collate_key_for_filename):
Wed Nov 23 17:34:01 2005 Tim Janik <timj@imendio.com>
* glib/gdataset.c: access datalist flags via atomic pointer access
- funcitons, instead of acquiring the dataset lock. this is faster and
+ functions, instead of acquiring the dataset lock. this is faster and
also matches the atomic pointer readouts in gdatalistprivate.h and
direct pointer modifications required by gobject.c.
+2005-11-28 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gthread.c (g_static_rw_lock_wait, g_static_rw_lock_signal):
+ * glib/gnode.c (g_node_depth_traverse_level):
+ * glib/gmem.c (g_allocator_new):
+ * glib/ghash.c (g_hash_table_unref, g_hash_table_destroy)
+ (g_hash_table_foreach_remove_or_steal): Silence compiler
+ warnings.
+
2005-11-27 Matthias Clasen <mclasen@redhat.com>
* glib/gunicollate.c (g_utf8_collate_key_for_filename):
Wed Nov 23 17:34:01 2005 Tim Janik <timj@imendio.com>
* glib/gdataset.c: access datalist flags via atomic pointer access
- funcitons, instead of acquiring the dataset lock. this is faster and
+ functions, instead of acquiring the dataset lock. this is faster and
also matches the atomic pointer readouts in gdatalistprivate.h and
direct pointer modifications required by gobject.c.
+2005-11-28 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gthread.c (g_static_rw_lock_wait, g_static_rw_lock_signal):
+ * glib/gnode.c (g_node_depth_traverse_level):
+ * glib/gmem.c (g_allocator_new):
+ * glib/ghash.c (g_hash_table_unref, g_hash_table_destroy)
+ (g_hash_table_foreach_remove_or_steal): Silence compiler
+ warnings.
+
2005-11-27 Matthias Clasen <mclasen@redhat.com>
* glib/gunicollate.c (g_utf8_collate_key_for_filename):
Wed Nov 23 17:34:01 2005 Tim Janik <timj@imendio.com>
* glib/gdataset.c: access datalist flags via atomic pointer access
- funcitons, instead of acquiring the dataset lock. this is faster and
+ functions, instead of acquiring the dataset lock. this is faster and
also matches the atomic pointer readouts in gdatalistprivate.h and
direct pointer modifications required by gobject.c.
if (g_atomic_int_exchange_and_add (&hash_table->ref_count, -1) - 1 == 0)
{
- guint i;
+ gint i;
+
for (i = 0; i < hash_table->size; i++)
g_hash_nodes_destroy (hash_table->nodes[i],
hash_table->key_destroy_func,
void
g_hash_table_destroy (GHashTable *hash_table)
{
- guint i;
+ gint i;
g_return_if_fail (hash_table != NULL);
g_return_if_fail (hash_table->ref_count > 0);
gboolean notify)
{
GHashNode *node, *prev;
- guint i;
+ gint i;
guint deleted = 0;
for (i = 0; i < hash_table->size; i++)
#endif /* DISABLE_MEM_POOLS */
+struct _GAllocator
+{
+ gchar *name;
+ guint16 n_preallocs;
+ guint is_unused : 1;
+ guint type : 4;
+ GAllocator *last;
+ GMemChunk *mem_chunk;
+ gpointer free_list;
+};
GAllocator*
g_allocator_new (const gchar *name,
guint n_preallocs)
{
- static const struct _GAllocator {
- gchar *name;
- guint16 n_preallocs;
- guint is_unused : 1;
- guint type : 4;
- GAllocator *last;
- GMemChunk *mem_chunk;
- gpointer free_list;
- } dummy = {
+ static const GAllocator dummy = {
"GAllocator is deprecated", 1, TRUE, 0, NULL, NULL, NULL,
};
/* some (broken) GAllocator uses depend on non-NULL allocators */
GNodeTraverseFunc func,
gpointer data)
{
- gint level;
+ guint level;
gboolean more_levels;
level = 0;
*lock = init_lock;
}
-static void inline
+inline static void
g_static_rw_lock_wait (GCond** cond, GStaticMutex* mutex)
{
if (!*cond)
g_cond_wait (*cond, g_static_mutex_get_mutex (mutex));
}
-static void inline
+inline static void
g_static_rw_lock_signal (GStaticRWLock* lock)
{
if (lock->want_to_write && lock->write_cond)