Mercurial > pidgin
comparison src/protocols/yahoo/util.c @ 6631:f80e23e66de0
[gaim-migrate @ 7155]
A patch from Bjoern Voigt that allows the languages in the about window
to be i10ned. Bjoern, I was having some problems emailing you earlier.
I just wanted to say that I've been rather busy and wasn't sure when I
would be able to commit this. Thanks for the patch, it looks nice. I
hand applied it because I'm a freak, and I think there may have been some
other changes to that code since the patch was made. Anyhoo, you might
just want to double check everything.
Fixed some compile warnings:
util.c: In function `_parse_font_tag':
util.c:313: warning: suggest explicit braces to avoid ambiguous `else'
util.c: In function `yahoo_html_to_codes':
util.c:456: warning: unused variable `m'
util.c:456: warning: unused variable `n'
util.c:456: warning: unused variable `vstart'
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 26 Aug 2003 02:55:29 +0000 |
parents | bdc448cf4cb6 |
children | ee32e030c9be |
comparison
equal
deleted
inserted
replaced
6630:889279abb909 | 6631:f80e23e66de0 |
---|---|
308 if (n >= len) { | 308 if (n >= len) { |
309 m = n; | 309 m = n; |
310 break; | 310 break; |
311 } | 311 } |
312 | 312 |
313 if (src[n] == '"') | 313 if (src[n] == '"') { |
314 if (!quote) { | 314 if (!quote) { |
315 quote = 1; | 315 quote = 1; |
316 vstart = n; | 316 vstart = n; |
317 continue; | 317 continue; |
318 } else { | 318 } else { |
319 done = 1; | 319 done = 1; |
320 } | 320 } |
321 } | |
321 | 322 |
322 if (!quote && ((src[n] == ' ') || (src[n] == '>'))) | 323 if (!quote && ((src[n] == ' ') || (src[n] == '>'))) |
323 done = 1; | 324 done = 1; |
324 | 325 |
325 if (done) { | 326 if (done) { |
451 | 452 |
452 } | 453 } |
453 | 454 |
454 char *yahoo_html_to_codes(const char *src) | 455 char *yahoo_html_to_codes(const char *src) |
455 { | 456 { |
456 int i, j, m, n, vstart, len; | 457 int i, j, len; |
457 GString *dest; | 458 GString *dest; |
458 char *ret, *esc; | 459 char *ret, *esc; |
459 GQueue *colors, *tags; | 460 GQueue *colors, *tags; |
460 GQueue *ftattr = NULL; | 461 GQueue *ftattr = NULL; |
461 | 462 |