comparison libpurple/protocols/yahoo/util.c @ 27302:377e063ecda5

Convert the yahoo prpl to using the debug convenience functions instead of purple_debug().
author John Bailey <rekkanoryo@rekkanoryo.org>
date Sun, 05 Jul 2009 02:23:43 +0000
parents 01f1929d0936
children ef5f0cde8d74
comparison
equal deleted inserted replaced
27301:84b2e1770ede 27302:377e063ecda5
352 if (tmp->str[0] == '#') 352 if (tmp->str[0] == '#')
353 g_string_append_printf(s, "<FONT COLOR=\"%s\">", tmp->str); 353 g_string_append_printf(s, "<FONT COLOR=\"%s\">", tmp->str);
354 else if ((match = (char *) g_hash_table_lookup(ht, tmp->str))) 354 else if ((match = (char *) g_hash_table_lookup(ht, tmp->str)))
355 g_string_append(s, match); 355 g_string_append(s, match);
356 else { 356 else {
357 purple_debug(PURPLE_DEBUG_ERROR, "yahoo", 357 purple_debug_error("yahoo",
358 "Unknown ansi code 'ESC[%sm'.\n", tmp->str); 358 "Unknown ansi code 'ESC[%sm'.\n", tmp->str);
359 g_string_free(tmp, TRUE); 359 g_string_free(tmp, TRUE);
360 break; 360 break;
361 } 361 }
362 362
421 } 421 }
422 } 422 }
423 423
424 ret = s->str; 424 ret = s->str;
425 g_string_free(s, FALSE); 425 g_string_free(s, FALSE);
426 purple_debug(PURPLE_DEBUG_MISC, "yahoo", "yahoo_codes_to_html: Returning string: '%s'.\n", ret); 426 purple_debug_misc("yahoo", "yahoo_codes_to_html: Returning string: '%s'.\n", ret);
427 return ret; 427 return ret;
428 } 428 }
429 429
430 /* borrowed from gtkimhtml */ 430 /* borrowed from gtkimhtml */
431 #define MAX_FONT_SIZE 7 431 #define MAX_FONT_SIZE 7
820 820
821 ret = dest->str; 821 ret = dest->str;
822 g_string_free(dest, FALSE); 822 g_string_free(dest, FALSE);
823 823
824 esc = g_strescape(ret, NULL); 824 esc = g_strescape(ret, NULL);
825 purple_debug(PURPLE_DEBUG_MISC, "yahoo", "yahoo_html_to_codes: Returning string: '%s'.\n", esc); 825 purple_debug_misc("yahoo", "yahoo_html_to_codes: Returning string: '%s'.\n", esc);
826 g_free(esc); 826 g_free(esc);
827 827
828 yahoo_htc_queue_cleanup(colors); 828 yahoo_htc_queue_cleanup(colors);
829 yahoo_htc_queue_cleanup(tags); 829 yahoo_htc_queue_cleanup(tags);
830 830