diff options
author | Sebastian Wilhelmi <wilhelmi@ira.uka.de> | 2000-10-30 14:34:52 +0000 |
---|---|---|
committer | Sebastian Wilhelmi <wilhelmi@src.gnome.org> | 2000-10-30 14:34:52 +0000 |
commit | 267b6813703e24ef60d0e8ba42557c414f9dd52e (patch) | |
tree | 555ac313ee58d9ea4f7a68855d16ee6c485e54bf /gtypes.h | |
parent | d42361a6e3d60fc6b926eae47a7aed85dedfd397 (diff) | |
download | glib-267b6813703e24ef60d0e8ba42557c414f9dd52e.tar.gz |
Introduced new function type GEqualFunc to return TRUE for equal params.
2000-10-30 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gcache.h, gcache.c, ghash.h, ghash.c, grel.c, grel.h, gtypes.h:
Introduced new function type GEqualFunc to return TRUE for equal
params. This is now used instead of GCompareFunc (which should
work akin to strcmp) here. This kind of fixes Bug #14412. Note
that technically GCompareFunc and GEqualFunc are still the same
types, as gint == gboolean.
* ghash.h, gutils.c: g_int_equal and g_direct_equal now return
gboolean to be really become GEqualFunc.
* gscanner.c, testglib.c, tests/hash-test.c: Some tiny changes to
follow the above change.
Diffstat (limited to 'gtypes.h')
-rw-r--r-- | gtypes.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -69,6 +69,8 @@ typedef const void *gconstpointer; typedef gint (*GCompareFunc) (gconstpointer a, gconstpointer b); +typedef gboolean (*GEqualFunc) (gconstpointer a, + gconstpointer b); typedef void (*GDestroyNotify) (gpointer data); typedef void (*GFunc) (gpointer data, gpointer user_data); |