Mercurial > hg > th-libs
diff th_types.h @ 129:aa2d608fb3f3
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 22 Jun 2014 07:23:54 +0300 |
parents | 34d58b0f2d52 |
children | 51eec969b07a |
line wrap: on
line diff
--- a/th_types.h Sun Jun 22 07:06:46 2014 +0300 +++ b/th_types.h Sun Jun 22 07:23:54 2014 +0300 @@ -25,7 +25,7 @@ #endif #endif -/* Shorthand types */ +// Shorthand types typedef unsigned long int ulint_t; typedef signed long int lint_t; #ifndef HAVE_UINT_T @@ -36,8 +36,8 @@ * feel free to define TH_TYPE_* if necessary to remedy */ #ifdef TH_TYPE_I8 -typedef unsigned TH_TYPE_I8 uint8_t; /* 8 bits, unsigned */ -typedef signed TH_TYPE_I8 int8_t; /* 8 bits, signed */ +typedef unsigned TH_TYPE_I8 uint8_t; // 8 bits, unsigned +typedef signed TH_TYPE_I8 int8_t; // 8 bits, signed #else #ifndef HAVE_INT_TYPES typedef unsigned char uint8_t; @@ -47,8 +47,8 @@ #ifdef TH_TYPE_I16 -typedef unsigned TH_TYPE_I16 uint16_t; /* 16 bits, unsigned == 2 BYTEs */ -typedef signed TH_TYPE_I16 int16_t; /* 16 bits, signed */ +typedef unsigned TH_TYPE_I16 uint16_t; // 16 bits, unsigned == 2 BYTEs +typedef signed TH_TYPE_I16 int16_t; // 16 bits, signed #else #ifndef HAVE_INT_TYPES typedef unsigned short int uint16_t; @@ -57,8 +57,8 @@ #endif #ifdef TH_TYPE_I32 -typedef unsigned TH_TYPE_I32 uint32_t; /* 32 bits, unsigned == 4 BYTES == 2 WORDs */ -typedef signed TH_TYPE_I32 int32_t; /* 32 bits, signed */ +typedef unsigned TH_TYPE_I32 uint32_t; // 32 bits, unsigned == 4 BYTES == 2 WORDs +typedef signed TH_TYPE_I32 int32_t; // 32 bits, signed #else #ifndef HAVE_INT_TYPES typedef unsigned int uint32_t; @@ -67,8 +67,8 @@ #endif #ifdef TH_TYPE_I64 -typedef unsigned TH_TYPE_I64 uint64_t; /* 64 bits, unsigned == 8 BYTES == 2 DWORDs */ -typedef signed TH_TYPE_I64 int64_t; /* 64 bits, signed */ +typedef unsigned TH_TYPE_I64 uint64_t; // 64 bits, unsigned == 8 BYTES == 2 DWORDs +typedef signed TH_TYPE_I64 int64_t; // 64 bits, signed #else #ifndef HAVE_INT_TYPES typedef unsigned long long uint64_t; @@ -101,4 +101,4 @@ #endif #endif -#endif /* _TH_TYPES_H */ +#endif // _TH_TYPES_H