aboutsummaryrefslogtreecommitdiffstats
path: root/camel/gstring-util.c
diff options
context:
space:
mode:
authorBertrand Guiheneuf <bertrand@src.gnome.org>1999-05-21 05:24:54 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-05-21 05:24:54 +0800
commitbdf895136ea393bd59960623d7cab970900048f7 (patch)
tree6d1f724e51cbaaf4fef4047edf41b61d6df0bc85 /camel/gstring-util.c
parent1cf9ad83368e754a5b8072f3ed820785609eb709 (diff)
downloadgsoc2013-evolution-bdf895136ea393bd59960623d7cab970900048f7.tar.gz
gsoc2013-evolution-bdf895136ea393bd59960623d7cab970900048f7.tar.zst
gsoc2013-evolution-bdf895136ea393bd59960623d7cab970900048f7.zip
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
Diffstat (limited to 'camel/gstring-util.c')
-rw-r--r--camel/gstring-util.c8
1 files changed, 7 insertions, 1 deletions
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