X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2Fprivate.h;h=f2458c6c07e930d7d64f830112b1b2a5b80a535a;hb=25e3d5e35a7fd7efdffc420efe3c41a91cefe43f;hp=44962a1dd54b61e7bca602c7d48ef37aeb9b3d5c;hpb=44146d06c780d3aaa283672fedb08b8870ebe1b9;p=lugaru.git diff --git a/Source/private.h b/Source/private.h index 44962a1..f2458c6 100644 --- a/Source/private.h +++ b/Source/private.h @@ -10,7 +10,7 @@ of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. @@ -49,9 +49,9 @@ typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned long uint32_t; #ifdef WIN32 - typedef unsigned __int64 uint64_t; +typedef unsigned __int64 uint64_t; #else - typedef unsigned long long uint64_t; +typedef unsigned long long uint64_t; #endif typedef float float32_t; typedef double float64_t; @@ -107,15 +107,12 @@ BinIO_INLINE void BinIOSwap8(const uint8_t *src, uint8_t *dst) BinIO_INLINE int BinIONormalizeByteOrder(int byte_order) { - if (byte_order == BinIO_HOST_BYTE_ORDER) - { + if (byte_order == BinIO_HOST_BYTE_ORDER) { byte_order = BinIO_BYTE_ORDER; - } - else if (byte_order == BinIO_NETWORK_BYTE_ORDER) - { + } else if (byte_order == BinIO_NETWORK_BYTE_ORDER) { byte_order = BinIO_BIG_ENDIAN_BYTE_ORDER; } - + return byte_order; } @@ -132,8 +129,7 @@ extern void BinIOConvert8(int from_byte_order, int to_byte_order, const uint8_t *src, uint8_t *dst, unsigned int count); -struct BinIOFormatCursor -{ +struct BinIOFormatCursor { const char *cursor; int byte_order; int count;