pidgin: 7ac42a31: Use TRUE and FALSE instead of 1 and 0. ...

markdoliner at pidgin.im markdoliner at pidgin.im
Tue Aug 4 18:56:42 EDT 2009


-----------------------------------------------------------------
Revision: 7ac42a3144e42153f025f364fbf354b5288e6a9c
Ancestor: bbf99bea4afce4c8a595f103e6d4f8df3b3b3321
Author: markdoliner at pidgin.im
Date: 2009-08-04T22:47:58
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/7ac42a3144e42153f025f364fbf354b5288e6a9c

Modified files:
        libpurple/protocols/yahoo/util.c

ChangeLog: 

Use TRUE and FALSE instead of 1 and 0.  I like TRUE and FALSE.

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/util.c	83f5ec2649bb23dba9bc166bb0f4c8c6dac0dc2f
+++ libpurple/protocols/yahoo/util.c	5f3cfb608185f1aabafea045111267ae8f152115
@@ -699,7 +699,7 @@ static void _parse_font_tag(const char *
 {
 
 	int m, n, vstart;
-	gboolean quote = 0, done = 0;
+	gboolean quote = FALSE, done = FALSE;
 
 	m = *j;
 
@@ -724,7 +724,7 @@ static void _parse_font_tag(const char *
 
 				if (src[n] == '"') {
 					if (!quote) {
-						quote = 1;
+						quote = TRUE;
 						vstart = n;
 						continue;
 					} else {
@@ -733,7 +733,7 @@ static void _parse_font_tag(const char *
 				}
 
 				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 @@ static void _parse_font_tag(const char *
 			*j = m;
 
 		if (src[m] == '>') {
-			gboolean needendtag = 0;
+			gboolean needendtag = FALSE;
 			fontattr *f;
 			GString *tmp = g_string_new(NULL);
 
@@ -799,7 +799,7 @@ static void _parse_font_tag(const char *
 					switch (f->type) {
 					case FATYPE_SIZE:
 						if (!needendtag) {
-							needendtag = 1;
+							needendtag = TRUE;
 							g_string_append(dest, "<font ");
 						}
 
@@ -808,7 +808,7 @@ static void _parse_font_tag(const char *
 						break;
 					case FATYPE_FACE:
 						if (!needendtag) {
-							needendtag = 1;
+							needendtag = TRUE;
 							g_string_append(dest, "<font ");
 						}
 
@@ -817,7 +817,7 @@ static void _parse_font_tag(const char *
 						break;
 					case FATYPE_JUNK:
 						if (!needendtag) {
-							needendtag = 1;
+							needendtag = TRUE;
 							g_string_append(dest, "<font ");
 						}
 
@@ -829,7 +829,7 @@ static void _parse_font_tag(const char *
 						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");


More information about the Commits mailing list