Mercurial > pidgin.yaz
comparison src/protocols/gg/gg.c @ 4520:4fe661860577
[gaim-migrate @ 4798]
No! Bad! Don't declare vars in the middle of a block :)
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 04 Feb 2003 20:30:17 +0000 |
parents | 2ad2f5caeb81 |
children | cbdc0fc5c3c6 |
comparison
equal
deleted
inserted
replaced
4519:599d350fce4e | 4520:4fe661860577 |
---|---|
1 /* | 1 /* |
2 * gaim - Gadu-Gadu Protocol Plugin | 2 * gaim - Gadu-Gadu Protocol Plugin |
3 * $Id: gg.c 4794 2003-02-04 15:46:05Z faceprint $ | 3 * $Id: gg.c 4798 2003-02-04 20:30:17Z chipx86 $ |
4 * | 4 * |
5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> | 5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> |
6 * | 6 * |
7 * This program is free software; you can redistribute it and/or modify | 7 * This program is free software; you can redistribute it and/or modify |
8 * it under the terms of the GNU General Public License as published by | 8 * it under the terms of the GNU General Public License as published by |
777 | 777 |
778 users_tbl = g_strsplit(ptr, "\n", AGG_PUBDIR_MAX_ENTRIES); | 778 users_tbl = g_strsplit(ptr, "\n", AGG_PUBDIR_MAX_ENTRIES); |
779 | 779 |
780 /* Parse array of Buddies List */ | 780 /* Parse array of Buddies List */ |
781 for (i = 0; users_tbl[i] != NULL; i++) { | 781 for (i = 0; users_tbl[i] != NULL; i++) { |
782 gchar **data_tbl; | |
783 gchar *name, *show; | |
784 | |
782 if (strlen(users_tbl[i])==0) { | 785 if (strlen(users_tbl[i])==0) { |
783 debug_printf("import_buddies_server_results: users_tbl[i] is empty\n"); | 786 debug_printf("import_buddies_server_results: users_tbl[i] is empty\n"); |
784 break; | 787 break; |
785 } | 788 } |
786 gchar **data_tbl; | |
787 gchar *name, *show; | |
788 | 789 |
789 g_strdelimit(users_tbl[i], "\r\t\n\015", ' '); | 790 g_strdelimit(users_tbl[i], "\r\t\n\015", ' '); |
790 data_tbl = g_strsplit(users_tbl[i], ";", 8); | 791 data_tbl = g_strsplit(users_tbl[i], ";", 8); |
791 | 792 |
792 show = charset_convert(data_tbl[3], "CP1250", "UTF-8"); | 793 show = charset_convert(data_tbl[3], "CP1250", "UTF-8"); |