diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-11-29 19:21:20 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-11-29 19:21:20 +0000 |
commit | d99fdfda639e78feffa3d9a1a6c758ae90539442 (patch) | |
tree | 87b591d02048464feebc32f8cf1dc784c7229b17 /wsutil/pint.h | |
parent | 5ac6474c945133a8415fb3be917859e5d42b6256 (diff) | |
download | wireshark-d99fdfda639e78feffa3d9a1a6c758ae90539442.tar.gz |
Replace macros: BSWAP16, BSWAP32, BSWAP64 with glib-version.
XXX, people are not aware that expression of this macros might be evaluated multiple times, like:
- BSWAP16(tvb_get_letohs(tvb, off)) : \
+ GUINT16_SWAP_LE_BE(tvb_get_letohs(tvb, off)) : \
Should be tvb_get_ntohs() called?
svn path=/trunk/; revision=53653
Diffstat (limited to 'wsutil/pint.h')
-rw-r--r-- | wsutil/pint.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/wsutil/pint.h b/wsutil/pint.h index ba3b4a1493..9d4ff81f00 100644 --- a/wsutil/pint.h +++ b/wsutil/pint.h @@ -139,15 +139,4 @@ ((guint8*)(p))[3] = (guint8)((v) >> 0); \ } - -/* Macros to byte-swap 32-bit and 16-bit quantities. */ -#define BSWAP32(x) \ - ((((x)&0xFF000000)>>24) | \ - (((x)&0x00FF0000)>>8) | \ - (((x)&0x0000FF00)<<8) | \ - (((x)&0x000000FF)<<24)) -#define BSWAP16(x) \ - ((((x)&0xFF00)>>8) | \ - (((x)&0x00FF)<<8)) - #endif /* PINT_H */ |