comparison src/protocols/msn/msg.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 414c701ef1ff
children 3a48ade4f510
comparison
equal deleted inserted replaced
7474:2bdacd38528c 7475:08ce2a94d9c7
36 if (*(tmp) != '\0') *(tmp)++ = '\0'; \ 36 if (*(tmp) != '\0') *(tmp)++ = '\0'; \
37 if (*(tmp) == '\n') (tmp)++ 37 if (*(tmp) == '\n') (tmp)++
38 38
39 39
40 #define msn_put16(buf, data) ( \ 40 #define msn_put16(buf, data) ( \
41 (*(buf) = (u_char)((data)>>8)&0xff), \ 41 (*(buf) = (unsigned char)((data)>>8)&0xff), \
42 (*((buf)+1) = (u_char)(data)&0xff), \ 42 (*((buf)+1) = (unsigned char)(data)&0xff), \
43 2) 43 2)
44 #define msn_get16(buf) ((((*(buf))<<8)&0xff00) + ((*((buf)+1)) & 0xff)) 44 #define msn_get16(buf) ((((*(buf))<<8)&0xff00) + ((*((buf)+1)) & 0xff))
45 #define msn_put32(buf, data) ( \ 45 #define msn_put32(buf, data) ( \
46 (*((buf)) = (u_char)((data)>>24)&0xff), \ 46 (*((buf)) = (unsigned char)((data)>>24)&0xff), \
47 (*((buf)+1) = (u_char)((data)>>16)&0xff), \ 47 (*((buf)+1) = (unsigned char)((data)>>16)&0xff), \
48 (*((buf)+2) = (u_char)((data)>>8)&0xff), \ 48 (*((buf)+2) = (unsigned char)((data)>>8)&0xff), \
49 (*((buf)+3) = (u_char)(data)&0xff), \ 49 (*((buf)+3) = (unsigned char)(data)&0xff), \
50 4) 50 4)
51 #define msn_get32(buf) ((((*(buf))<<24)&0xff000000) + \ 51 #define msn_get32(buf) ((((*(buf))<<24)&0xff000000) + \
52 (((*((buf)+1))<<16)&0x00ff0000) + \ 52 (((*((buf)+1))<<16)&0x00ff0000) + \
53 (((*((buf)+2))<< 8)&0x0000ff00) + \ 53 (((*((buf)+2))<< 8)&0x0000ff00) + \
54 (((*((buf)+3) )&0x000000ff))) 54 (((*((buf)+3) )&0x000000ff)))