pidgin: 927900cd: nomoreendtags is used as a boolean, so s...
markdoliner at pidgin.im
markdoliner at pidgin.im
Fri Jul 31 04:40:36 EDT 2009
-----------------------------------------------------------------
Revision: 927900cd6c22e94680245ab0d17da1c1604e842e
Ancestor: 3845832b08111866737242f85f1b56088a6dcdf1
Author: markdoliner at pidgin.im
Date: 2009-07-31T08:39:03
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/927900cd6c22e94680245ab0d17da1c1604e842e
Modified files:
libpurple/protocols/yahoo/util.c
ChangeLog:
nomoreendtags is used as a boolean, so set the variable type appropriately
And add some underscores for readability
-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/util.c 53e73b732d2cf1111d894cbe4c8f161846af9587
+++ libpurple/protocols/yahoo/util.c 8f0922e54fc1e24976cfe50007e471734c2531ef
@@ -339,7 +339,8 @@ char *yahoo_codes_to_html(const char *x)
char *yahoo_codes_to_html(const char *x)
{
GString *s, *tmp;
- int i, j, xs, nomoreendtags = 0; /* s/endtags/closinganglebrackets */
+ int i, j, xs;
+ gboolean no_more_end_tags = FALSE; /* s/endtags/closinganglebrackets */
char *match;
s = g_string_sized_new(strlen(x));
@@ -370,14 +371,14 @@ char *yahoo_codes_to_html(const char *x)
}
}
- } else if (!nomoreendtags && (x[i] == '<')) {
+ } else if (!no_more_end_tags && (x[i] == '<')) {
j = i;
while (j++ < xs) {
if (x[j] != '>')
if (j == xs) {
g_string_append(s, "<");
- nomoreendtags = 1;
+ no_more_end_tags = TRUE;
}
else
continue;
More information about the Commits
mailing list