Mercurial > pidgin.yaz
comparison src/protocols/yahoo/yahoo.c @ 7475:08ce2a94d9c7
[gaim-migrate @ 8088]
I made Gaim compile with -ansi in my CFLAGS... I don't really know why.
I had to set HAVE_GETADDRINFO and HAVE_SIGNAL_H to 0
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 11 Nov 2003 07:08:13 +0000 |
parents | c8b4a617ee5b |
children | 3c21f3084ff0 |
comparison
equal
deleted
inserted
replaced
7474:2bdacd38528c | 7475:08ce2a94d9c7 |
---|---|
129 } | 129 } |
130 | 130 |
131 /* sometimes i wish prpls could #include things from other prpls. then i could just | 131 /* sometimes i wish prpls could #include things from other prpls. then i could just |
132 * use the routines from libfaim and not have to admit to knowing how they work. */ | 132 * use the routines from libfaim and not have to admit to knowing how they work. */ |
133 #define yahoo_put16(buf, data) ( \ | 133 #define yahoo_put16(buf, data) ( \ |
134 (*(buf) = (u_char)((data)>>8)&0xff), \ | 134 (*(buf) = (unsigned char)((data)>>8)&0xff), \ |
135 (*((buf)+1) = (u_char)(data)&0xff), \ | 135 (*((buf)+1) = (unsigned char)(data)&0xff), \ |
136 2) | 136 2) |
137 #define yahoo_get16(buf) ((((*(buf))<<8)&0xff00) + ((*((buf)+1)) & 0xff)) | 137 #define yahoo_get16(buf) ((((*(buf))<<8)&0xff00) + ((*((buf)+1)) & 0xff)) |
138 #define yahoo_put32(buf, data) ( \ | 138 #define yahoo_put32(buf, data) ( \ |
139 (*((buf)) = (u_char)((data)>>24)&0xff), \ | 139 (*((buf)) = (unsigned char)((data)>>24)&0xff), \ |
140 (*((buf)+1) = (u_char)((data)>>16)&0xff), \ | 140 (*((buf)+1) = (unsigned char)((data)>>16)&0xff), \ |
141 (*((buf)+2) = (u_char)((data)>>8)&0xff), \ | 141 (*((buf)+2) = (unsigned char)((data)>>8)&0xff), \ |
142 (*((buf)+3) = (u_char)(data)&0xff), \ | 142 (*((buf)+3) = (unsigned char)(data)&0xff), \ |
143 4) | 143 4) |
144 #define yahoo_get32(buf) ((((*(buf))<<24)&0xff000000) + \ | 144 #define yahoo_get32(buf) ((((*(buf))<<24)&0xff000000) + \ |
145 (((*((buf)+1))<<16)&0x00ff0000) + \ | 145 (((*((buf)+1))<<16)&0x00ff0000) + \ |
146 (((*((buf)+2))<< 8)&0x0000ff00) + \ | 146 (((*((buf)+2))<< 8)&0x0000ff00) + \ |
147 (((*((buf)+3) )&0x000000ff))) | 147 (((*((buf)+3) )&0x000000ff))) |