Mercurial > pidgin
comparison libpurple/protocols/qq/packet_parse.c @ 24680:52c5daee05c0
Why #if 0\n#define something when you can just #undef it?
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 11 Dec 2008 04:07:29 +0000 |
parents | ce94189f15ad |
children |
comparison
equal
deleted
inserted
replaced
24679:55b7371eadf4 | 24680:52c5daee05c0 |
---|---|
30 /*------------------------------------------------PUT------------------------------------------------*/ | 30 /*------------------------------------------------PUT------------------------------------------------*/ |
31 | 31 |
32 /* note: | 32 /* note: |
33 * 1, in these functions, 'b' stands for byte, 'w' stands for word, 'dw' stands for double word. | 33 * 1, in these functions, 'b' stands for byte, 'w' stands for word, 'dw' stands for double word. |
34 * 2, we use '*cursor' and 'buf' as two addresses to calculate the length. | 34 * 2, we use '*cursor' and 'buf' as two addresses to calculate the length. |
35 * 3, change '0' to '1', if want to get more info about the packet parsing. */ | 35 * 3, change 'undef' to 'define' to get more info about the packet parsing. */ |
36 | 36 |
37 #if 0 | 37 #undef PARSER_DEBUG |
38 #define PARSER_DEBUG | |
39 #endif | |
40 | 38 |
41 /* read one byte from buf, | 39 /* read one byte from buf, |
42 * return the number of bytes read if succeeds, otherwise return -1 */ | 40 * return the number of bytes read if succeeds, otherwise return -1 */ |
43 gint qq_get8(guint8 *b, guint8 *buf) | 41 gint qq_get8(guint8 *b, guint8 *buf) |
44 { | 42 { |