Mercurial > pidgin
comparison plugins/spellchk.c @ 11318:519dc2186438
[gaim-migrate @ 13521]
Bits and pieces all over the place. I was hunting down compiler warnings
all over the place, with crazy CFLAGS. I think I might have got a bit
carried away.
I made the perl stuff compile with gcc 2.x (which don't support
mixed declerations and statements), I think what I did was safe but
readily admit I have no clue how all the perl stuff works.
Rename gaim_presence_add_presence() to gaim_presence_add_list() (to match
the header file - obviously nothing actually _uses_ this)
Implement gaim_savedstatus_get_handle() because it's in the header file.
Remove gaim_account_set_presence() from account.h - it's not actually
implemented anywhere, so it can't be that important.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 20 Aug 2005 20:17:08 +0000 |
parents | cdd9d1011d97 |
children | d9debf609b79 |
comparison
equal
deleted
inserted
replaced
11317:cdd9d1011d97 | 11318:519dc2186438 |
---|---|
1648 gchar *buf; | 1648 gchar *buf; |
1649 gchar *ibuf; | 1649 gchar *ibuf; |
1650 GHashTable *hashes; | 1650 GHashTable *hashes; |
1651 char bad[82] = ""; | 1651 char bad[82] = ""; |
1652 char good[256] = ""; | 1652 char good[256] = ""; |
1653 char completestr[BUFSIZ] = ""; | |
1654 int pnt = 0; | 1653 int pnt = 0; |
1655 gsize size; | 1654 gsize size; |
1656 gboolean complete = TRUE; | 1655 gboolean complete = TRUE; |
1657 | 1656 |
1658 buf = g_build_filename(gaim_user_dir(), "dict", NULL); | 1657 buf = g_build_filename(gaim_user_dir(), "dict", NULL); |
1672 { | 1671 { |
1673 strncpy(bad, buf + 4, 81); | 1672 strncpy(bad, buf + 4, 81); |
1674 } | 1673 } |
1675 else if(!strncasecmp(buf, "COMPLETE ", 9)) | 1674 else if(!strncasecmp(buf, "COMPLETE ", 9)) |
1676 { | 1675 { |
1677 strncpy(completestr, buf + 9, BUFSIZ - 1); | 1676 complete = *(buf+9) == '0' ? FALSE : TRUE; |
1678 complete = (gboolean)strtol(completestr, NULL, 10); | |
1679 } | 1677 } |
1680 else if (!strncasecmp(buf, "GOOD ", 5)) | 1678 else if (!strncasecmp(buf, "GOOD ", 5)) |
1681 { | 1679 { |
1682 strncpy(good, buf + 5, 255); | 1680 strncpy(good, buf + 5, 255); |
1683 | 1681 |