changeset 28167:c859855474ba

Use TRUE and FALSE instead of 1 and 0. I like TRUE and FALSE.
author Mark Doliner <mark@kingant.net>
date Tue, 04 Aug 2009 22:47:58 +0000
parents bc9da266d25d
children 64fd19956153
files libpurple/protocols/yahoo/util.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/util.c	Tue Aug 04 21:03:34 2009 +0000
+++ b/libpurple/protocols/yahoo/util.c	Tue Aug 04 22:47:58 2009 +0000
@@ -699,7 +699,7 @@
 {
 
 	int m, n, vstart;
-	gboolean quote = 0, done = 0;
+	gboolean quote = FALSE, done = FALSE;
 
 	m = *j;
 
@@ -724,7 +724,7 @@
 
 				if (src[n] == '"') {
 					if (!quote) {
-						quote = 1;
+						quote = TRUE;
 						vstart = n;
 						continue;
 					} else {
@@ -733,7 +733,7 @@
 				}
 
 				if (!quote && ((src[n] == ' ') || (src[n] == '>')))
-					done = 1;
+					done = TRUE;
 
 				if (done) {
 					if (!g_ascii_strncasecmp(&src[*j+1], "FACE", m - *j - 1)) {
@@ -790,7 +790,7 @@
 			*j = m;
 
 		if (src[m] == '>') {
-			gboolean needendtag = 0;
+			gboolean needendtag = FALSE;
 			fontattr *f;
 			GString *tmp = g_string_new(NULL);
 
@@ -799,7 +799,7 @@
 					switch (f->type) {
 					case FATYPE_SIZE:
 						if (!needendtag) {
-							needendtag = 1;
+							needendtag = TRUE;
 							g_string_append(dest, "<font ");
 						}
 
@@ -808,7 +808,7 @@
 						break;
 					case FATYPE_FACE:
 						if (!needendtag) {
-							needendtag = 1;
+							needendtag = TRUE;
 							g_string_append(dest, "<font ");
 						}
 
@@ -817,7 +817,7 @@
 						break;
 					case FATYPE_JUNK:
 						if (!needendtag) {
-							needendtag = 1;
+							needendtag = TRUE;
 							g_string_append(dest, "<font ");
 						}
 
@@ -829,7 +829,7 @@
 						if (needendtag) {
 							g_string_append(tmp, "</font>");
 							dest->str[dest->len-1] = '>';
-							needendtag = 0;
+							needendtag = TRUE;
 						}
 
 						g_string_append(tmp, *colors ? (*colors)->data : "\033[#000000m");