changeset 11081:3fc99df46dae

[gaim-migrate @ 13095] Comments + whitespace. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 10 Jul 2005 20:33:19 +0000
parents f54740547c95
children e25575a59f01
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Sun Jul 10 02:29:52 2005 +0000
+++ b/src/protocols/oscar/oscar.c	Sun Jul 10 20:33:19 2005 +0000
@@ -315,8 +315,8 @@
 	int i = 0;
 	int charset = AIM_CHARSET_ASCII;
 
-	/* Determine how we can send this message.  Per the warnings elsewhere 
-	 * in this file, these little checks determine the simplest encoding 
+	/* Determine how we can send this message.  Per the warnings elsewhere
+	 * in this file, these little checks determine the simplest encoding
 	 * we can use for a given message send using it. */
 	while (utf8[i]) {
 		if ((unsigned char)utf8[i] > 0x7f) {
@@ -346,7 +346,7 @@
 
 /*
  * Take a string of the form charset="bleh" where bleh is
- * one of us-ascii, utf-8, iso-8859-1, or unicode-2-0, and 
+ * one of us-ascii, utf-8, iso-8859-1, or unicode-2-0, and
  * return a newly allocated string containing bleh.
  */
 static gchar *oscar_encoding_extract(const char *encoding)
@@ -440,6 +440,8 @@
 }
 
 /*
+ * This attemps to decode an incoming IM into a UTF8 string.
+ *
  * We try decoding using two different character sets.  The charset
  * specified in the IM determines the order in which we attempt to
  * decode.  We do this because there are lots of broken ICQ clients
@@ -490,6 +492,9 @@
 	return ret;
 }
 
+/*
+ * Figure out what encoding to use when sending a given outgoing message.
+ */
 static void
 gaim_plugin_oscar_convert_to_best_encoding(GaimConnection *gc, const char *destsn, const gchar *from,
 										   gchar **msg, int *msglen_int,