From d31ba84c8ea40b6f0199318e43cc2bb2e816c586 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Mon, 15 Feb 1999 05:47:24 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ ghash.c | 6 +++--- glib.h | 4 ++-- glib/ghash.c | 6 +++--- glib/glib.h | 4 ++-- 12 files changed, 50 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 63d3eac76..367c8bf02 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 63d3eac76..367c8bf02 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 63d3eac76..367c8bf02 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 63d3eac76..367c8bf02 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 63d3eac76..367c8bf02 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 63d3eac76..367c8bf02 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 63d3eac76..367c8bf02 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 63d3eac76..367c8bf02 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 02fddbe07..61b02f1ff 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 84306afeb..1f917b762 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 02fddbe07..61b02f1ff 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 84306afeb..1f917b762 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