Mercurial > pidgin
comparison src/protocols/gg/libgg.c @ 4298:cddb50734169
[gaim-migrate @ 4552]
faceprint cleans up after my messes
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sat, 11 Jan 2003 19:59:27 +0000 |
parents | ad31c79c18b7 |
children | 46d7ad0dfa26 |
comparison
equal
deleted
inserted
replaced
4297:650454171e0e | 4298:cddb50734169 |
---|---|
1 /* $Id: libgg.c 4216 2002-11-29 12:48:01Z lschiere $ */ | 1 /* $Id: libgg.c 4552 2003-01-11 19:59:27Z seanegan $ */ |
2 | 2 |
3 /* | 3 /* |
4 * (C) Copyright 2001 Wojtek Kaniewski <wojtekka@irc.pl>, | 4 * (C) Copyright 2001 Wojtek Kaniewski <wojtekka@irc.pl>, |
5 * Robert J. Woźny <speedy@ziew.org> | 5 * Robert J. Woźny <speedy@ziew.org> |
6 * | 6 * |
70 | 70 |
71 static char rcsid[] | 71 static char rcsid[] |
72 #ifdef __GNUC__ | 72 #ifdef __GNUC__ |
73 __attribute__ ((unused)) | 73 __attribute__ ((unused)) |
74 #endif | 74 #endif |
75 = "$Id: libgg.c 4216 2002-11-29 12:48:01Z lschiere $"; | 75 = "$Id: libgg.c 4552 2003-01-11 19:59:27Z seanegan $"; |
76 | 76 |
77 #endif | 77 #endif |
78 | 78 |
79 /* | 79 /* |
80 * fix32() // funkcja wewnętrzna | 80 * fix32() // funkcja wewnętrzna |
97 /* | 97 /* |
98 * fix16() // funkcja wewnętrzna | 98 * fix16() // funkcja wewnętrzna |
99 * | 99 * |
100 * dla maszyn big-endianowych zamienia kolejność bajtów w ,,short''ach. | 100 * dla maszyn big-endianowych zamienia kolejność bajtów w ,,short''ach. |
101 */ | 101 */ |
102 | |
103 /* not currently used | |
102 static inline unsigned short fix16(unsigned short x) | 104 static inline unsigned short fix16(unsigned short x) |
103 { | 105 { |
104 #ifndef WORDS_BIGENDIAN | 106 #ifndef WORDS_BIGENDIAN |
105 return x; | 107 return x; |
106 #else | 108 #else |
107 return (unsigned short) | 109 return (unsigned short) |
108 (((x & (unsigned short) 0x00ffU) << 8) | | 110 (((x & (unsigned short) 0x00ffU) << 8) | |
109 ((x & (unsigned short) 0xff00U) >> 8)); | 111 ((x & (unsigned short) 0xff00U) >> 8)); |
110 #endif | 112 #endif |
111 } | 113 } |
114 */ | |
112 | 115 |
113 #ifndef _WIN32 | 116 #ifndef _WIN32 |
114 /* | 117 /* |
115 * gg_resolve() // funkcja wewnętrzna | 118 * gg_resolve() // funkcja wewnętrzna |
116 * | 119 * |