From: Tim Janik Date: Mon, 15 Feb 1999 05:47:24 +0000 (+0000) Subject: return guints instead of gints for g_hash_table_size and X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=d31ba84c8ea40b6f0199318e43cc2bb2e816c586;p=dana%2Fcg-glib.git return guints instead of gints for g_hash_table_size and Mon Feb 15 06:18:58 1999 Tim Janik * glib.h: return guints instead of gints for g_hash_table_size and g_hash_table_foreach_remove. --- diff --git a/ChangeLog b/ChangeLog index 63d3eac7..367c8bf0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Feb 15 06:18:58 1999 Tim Janik + + * glib.h: return guints instead of gints for g_hash_table_size + and g_hash_table_foreach_remove. + Wed Feb 10 12:01:42 1999 Tim Janik * configure.in: don't reset G_MODULE_IMPL, so it can be overridden diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 63d3eac7..367c8bf0 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +Mon Feb 15 06:18:58 1999 Tim Janik + + * glib.h: return guints instead of gints for g_hash_table_size + and g_hash_table_foreach_remove. + Wed Feb 10 12:01:42 1999 Tim Janik * configure.in: don't reset G_MODULE_IMPL, so it can be overridden diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 63d3eac7..367c8bf0 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Mon Feb 15 06:18:58 1999 Tim Janik + + * glib.h: return guints instead of gints for g_hash_table_size + and g_hash_table_foreach_remove. + Wed Feb 10 12:01:42 1999 Tim Janik * configure.in: don't reset G_MODULE_IMPL, so it can be overridden diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 63d3eac7..367c8bf0 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +Mon Feb 15 06:18:58 1999 Tim Janik + + * glib.h: return guints instead of gints for g_hash_table_size + and g_hash_table_foreach_remove. + Wed Feb 10 12:01:42 1999 Tim Janik * configure.in: don't reset G_MODULE_IMPL, so it can be overridden diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 63d3eac7..367c8bf0 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +Mon Feb 15 06:18:58 1999 Tim Janik + + * glib.h: return guints instead of gints for g_hash_table_size + and g_hash_table_foreach_remove. + Wed Feb 10 12:01:42 1999 Tim Janik * configure.in: don't reset G_MODULE_IMPL, so it can be overridden diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 63d3eac7..367c8bf0 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +Mon Feb 15 06:18:58 1999 Tim Janik + + * glib.h: return guints instead of gints for g_hash_table_size + and g_hash_table_foreach_remove. + Wed Feb 10 12:01:42 1999 Tim Janik * configure.in: don't reset G_MODULE_IMPL, so it can be overridden diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 63d3eac7..367c8bf0 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Mon Feb 15 06:18:58 1999 Tim Janik + + * glib.h: return guints instead of gints for g_hash_table_size + and g_hash_table_foreach_remove. + Wed Feb 10 12:01:42 1999 Tim Janik * configure.in: don't reset G_MODULE_IMPL, so it can be overridden diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 63d3eac7..367c8bf0 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Mon Feb 15 06:18:58 1999 Tim Janik + + * glib.h: return guints instead of gints for g_hash_table_size + and g_hash_table_foreach_remove. + Wed Feb 10 12:01:42 1999 Tim Janik * configure.in: don't reset G_MODULE_IMPL, so it can be overridden diff --git a/ghash.c b/ghash.c index 02fddbe0..61b02f1f 100644 --- a/ghash.c +++ b/ghash.c @@ -229,14 +229,14 @@ g_hash_table_thaw (GHashTable *hash_table) g_hash_table_resize (hash_table); } -gint +guint g_hash_table_foreach_remove (GHashTable *hash_table, GHRFunc func, gpointer user_data) { GHashNode *node, *prev; guint i; - gint deleted = 0; + guint deleted = 0; g_return_val_if_fail (hash_table != NULL, 0); g_return_val_if_fail (func != NULL, 0); @@ -294,7 +294,7 @@ g_hash_table_foreach (GHashTable *hash_table, } /* Returns the number of elements contained in the hash table. */ -gint +guint g_hash_table_size (GHashTable *hash_table) { g_return_val_if_fail (hash_table != NULL, 0); diff --git a/glib.h b/glib.h index 84306afe..1f917b76 100644 --- a/glib.h +++ b/glib.h @@ -952,10 +952,10 @@ void g_hash_table_thaw (GHashTable *hash_table); void g_hash_table_foreach (GHashTable *hash_table, GHFunc func, gpointer user_data); -gint g_hash_table_foreach_remove (GHashTable *hash_table, +guint g_hash_table_foreach_remove (GHashTable *hash_table, GHRFunc func, gpointer user_data); -gint g_hash_table_size (GHashTable *hash_table); +guint g_hash_table_size (GHashTable *hash_table); /* Caches diff --git a/glib/ghash.c b/glib/ghash.c index 02fddbe0..61b02f1f 100644 --- a/glib/ghash.c +++ b/glib/ghash.c @@ -229,14 +229,14 @@ g_hash_table_thaw (GHashTable *hash_table) g_hash_table_resize (hash_table); } -gint +guint g_hash_table_foreach_remove (GHashTable *hash_table, GHRFunc func, gpointer user_data) { GHashNode *node, *prev; guint i; - gint deleted = 0; + guint deleted = 0; g_return_val_if_fail (hash_table != NULL, 0); g_return_val_if_fail (func != NULL, 0); @@ -294,7 +294,7 @@ g_hash_table_foreach (GHashTable *hash_table, } /* Returns the number of elements contained in the hash table. */ -gint +guint g_hash_table_size (GHashTable *hash_table) { g_return_val_if_fail (hash_table != NULL, 0); diff --git a/glib/glib.h b/glib/glib.h index 84306afe..1f917b76 100644 --- a/glib/glib.h +++ b/glib/glib.h @@ -952,10 +952,10 @@ void g_hash_table_thaw (GHashTable *hash_table); void g_hash_table_foreach (GHashTable *hash_table, GHFunc func, gpointer user_data); -gint g_hash_table_foreach_remove (GHashTable *hash_table, +guint g_hash_table_foreach_remove (GHashTable *hash_table, GHRFunc func, gpointer user_data); -gint g_hash_table_size (GHashTable *hash_table); +guint g_hash_table_size (GHashTable *hash_table); /* Caches