summaryrefslogtreecommitdiff
path: root/glib
diff options
context:
space:
mode:
authorTim Janik <timj@src.gnome.org>1998-04-08 00:51:05 +0000
committerTim Janik <timj@src.gnome.org>1998-04-08 00:51:05 +0000
commit2ab408a70056ed0e8aed7b920fa9b15b6d8bdc64 (patch)
treeebadc42b1616ecb8e93629e17cb3a951f2c30f1e /glib
parent1c77b5f9269a9841b100664dae61a95e1810da38 (diff)
downloadgdk-pixbuf-2ab408a70056ed0e8aed7b920fa9b15b6d8bdc64.tar.gz
really remove g_direct_compare() (this includes its declaration ;).
Diffstat (limited to 'glib')
-rw-r--r--glib/glib.h11
-rw-r--r--glib/gutils.c2
2 files changed, 7 insertions, 6 deletions
diff --git a/glib/glib.h b/glib/glib.h
index 4a8423d0a..7d395d5e5 100644
--- a/glib/glib.h
+++ b/glib/glib.h
@@ -782,11 +782,12 @@ GArray* g_rarray_truncate (GArray *array,
gint g_str_equal (const gpointer v,
const gpointer v2);
guint g_str_hash (const gpointer v);
-/* These two "hash" functions actually just return the value and/or
- comparison of the pointers themselves - useful for hashing
- on an int value or something like that */
-gint g_direct_compare(gpointer a, gpointer b);
-guint g_direct_hash(gpointer key);
+
+/* This "hash" function will just return the key's adress as an
+ * unsigned integer. Useful for hashing on plain adresses or
+ * simple integer values.
+ */
+guint g_direct_hash (gpointer key);
/* GScanner: Flexible lexical scanner for general purpose.
diff --git a/glib/gutils.c b/glib/gutils.c
index f9b5f94ca..7c42bf856 100644
--- a/glib/gutils.c
+++ b/glib/gutils.c
@@ -912,6 +912,6 @@ g_parse_debug_string (const gchar *string,
guint
g_direct_hash(gpointer key)
{
- return (guint)key;
+ return (guint) key;
}