From bdf895136ea393bd59960623d7cab970900048f7 Mon Sep 17 00:00:00 2001 From: Bertrand Guiheneuf Date: Thu, 20 May 1999 21:24:54 +0000 Subject: recipient list printing * camel/camel-mime-message.c (_write_to_file): recipient list printing * tests/test1.c (main): more tests. svn path=/trunk/; revision=936 --- camel/gstring-util.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'camel/gstring-util.c') diff --git a/camel/gstring-util.c b/camel/gstring-util.c index 05cdc08beb..4d0411de33 100644 --- a/camel/gstring-util.c +++ b/camel/gstring-util.c @@ -37,7 +37,7 @@ * @Return Value : true if the strings equal, false otherwise **/ gboolean -g_string_equals(GString *string1, GString *string2) +g_string_equals (GString *string1, GString *string2) { g_assert(string1); g_assert(string2); @@ -46,6 +46,7 @@ g_string_equals(GString *string1, GString *string2) + /** * g_string_clone : clone a GString * @@ -192,6 +193,11 @@ g_string_equal_for_hash (gconstpointer v, gconstpointer v2) return strcmp ( ((const GString*)v)->str, ((const GString*)v2)->str) == 0; } +g_string_equal_for_glist (gconstpointer v, gconstpointer v2) +{ + return !strcmp ( ((const GString*)v)->str, ((const GString*)v2)->str) == 0; +} + /** * g_string_hash: computes a hash value for a Gstring -- cgit