changeset 27770:1c9d3038a0d3

Better variable name?
author Mark Doliner <mark@kingant.net>
date Fri, 31 Jul 2009 09:21:28 +0000
parents 301c966fa7af
children 2b3a9a68e0bc
files libpurple/protocols/yahoo/util.c
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/util.c	Fri Jul 31 09:18:07 2009 +0000
+++ b/libpurple/protocols/yahoo/util.c	Fri Jul 31 09:21:28 2009 +0000
@@ -342,7 +342,7 @@
 	GString *s;
 	int i, j;
 	gchar *tmp;
-	gboolean no_more_end_tags = FALSE; /* s/endtags/closinganglebrackets */
+	gboolean no_more_lt_brackets = FALSE;
 	const char *match;
 
 	x_len = strlen(x);
@@ -350,8 +350,8 @@
 
 	for (i = 0; i < x_len; i++) {
 		if ((x[i] == 0x1b) && (x[i+1] == '[')) {
-			/* This is the beginning of an escape sequence, which
-			 * contains text formatting. */
+			/* This escape sequence signifies the beginning of some
+			 * text formatting code */
 			j = i + 1;
 
 			while (j++ < x_len) {
@@ -377,14 +377,15 @@
 				}
 			}
 
-		} else if (!no_more_end_tags && (x[i] == '<')) {
+		} else if (!no_more_lt_brackets && (x[i] == '<')) {
+			/* The start of an HTML tag */
 			j = i;
 
 			while (j++ < x_len) {
 				if (x[j] != '>')
 					if (j == x_len) {
 						g_string_append(s, "&lt;");
-						no_more_end_tags = TRUE;
+						no_more_lt_brackets = TRUE;
 					}
 					else
 						continue;