comparison src/protocols/oscar/aim.h @ 6322:dd2be7cd66df

[gaim-migrate @ 6821] This is: -Alphabetize the translation things in ChangeLog -Spell Brian Tarricone's name correctly (I hope...) -A fix for a crash when renaming a group containing a chat, thanks to javabsp. Me gusta this change. -Make the rename group dialog use gaim_request_input(). The old dialog may be a bit prettier, but this one uses the request code, which means less work for UIs, which rocks. -Change the TRUE and FALSE defines in aim.h to be more compatible with c++. Thanks to Zack Rusin for this change. -Declare aim.h as a C file when it is used in a c++ program. This should let libfaim be used in C++ programs such as kopete. Thanks again to Zack Rusin. -Rename aimutil_itemidx() to aimutil_itemindex(). "idx" is not a standard abbreviation, and code is written once and read many times--it should be easily readable. -Not an automatic laundry folding machine. So I'm going to do that. (Fold my laundry) (Not automatically) (yet) committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 29 Jul 2003 04:27:31 +0000
parents 96196cfb132e
children 5d7063e137da
comparison
equal deleted inserted replaced
6321:3613007cbb6e 6322:dd2be7cd66df
33 #include <sys/socket.h> 33 #include <sys/socket.h>
34 #else 34 #else
35 #include <winsock.h> 35 #include <winsock.h>
36 #endif 36 #endif
37 37
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41
38 /* XXX adjust these based on autoconf-detected platform */ 42 /* XXX adjust these based on autoconf-detected platform */
39 typedef unsigned char fu8_t; 43 typedef unsigned char fu8_t;
40 typedef unsigned short fu16_t; 44 typedef unsigned short fu16_t;
41 typedef unsigned int fu32_t; 45 typedef unsigned int fu32_t;
42 typedef fu32_t aim_snacid_t; 46 typedef fu32_t aim_snacid_t;
65 */ 69 */
66 #define faim_export 70 #define faim_export
67 #define faim_internal 71 #define faim_internal
68 #endif 72 #endif
69 73
74 #ifndef FALSE
75 #define FALSE (0)
76 #endif
77
70 #ifndef TRUE 78 #ifndef TRUE
71 #define TRUE 1 79 #define TRUE (!FALSE)
72 #define FALSE 0
73 #endif 80 #endif
74 81
75 /* 82 /*
76 * Current Maximum Length for Screen Names (not including NULL) 83 * Current Maximum Length for Screen Names (not including NULL)
77 * 84 *
1431 faim_export int aimutil_putstr(char *, const char *, int); 1438 faim_export int aimutil_putstr(char *, const char *, int);
1432 faim_export fu16_t aimutil_iconsum(const fu8_t *buf, int buflen); 1439 faim_export fu16_t aimutil_iconsum(const fu8_t *buf, int buflen);
1433 faim_export int aim_util_getlocalip(fu8_t *ip); 1440 faim_export int aim_util_getlocalip(fu8_t *ip);
1434 faim_export int aimutil_tokslen(char *toSearch, int index, char dl); 1441 faim_export int aimutil_tokslen(char *toSearch, int index, char dl);
1435 faim_export int aimutil_itemcnt(char *toSearch, char dl); 1442 faim_export int aimutil_itemcnt(char *toSearch, char dl);
1436 faim_export char *aimutil_itemidx(char *toSearch, int index, char dl); 1443 faim_export char *aimutil_itemindex(char *toSearch, int index, char dl);
1437 1444
1438 faim_export int aim_snlen(const char *sn); 1445 faim_export int aim_snlen(const char *sn);
1439 faim_export int aim_sncmp(const char *sn1, const char *sn2); 1446 faim_export int aim_sncmp(const char *sn1, const char *sn2);
1440 1447
1441 #include <aim_internal.h> 1448 #include <aim_internal.h>
1442 1449
1450 #ifdef __cplusplus
1451 }
1452 #endif
1453
1443 #endif /* __AIM_H__ */ 1454 #endif /* __AIM_H__ */