aboutsummaryrefslogtreecommitdiff
path: root/include/apos/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/apos/types.h')
-rw-r--r--include/apos/types.h182
1 files changed, 91 insertions, 91 deletions
diff --git a/include/apos/types.h b/include/apos/types.h
index 5f35ee8..7f2a51b 100644
--- a/include/apos/types.h
+++ b/include/apos/types.h
@@ -125,36 +125,36 @@ typedef int32_t ssize_t;
#endif
/** Expands to integer constant of type \ref int8_t. */
-#define INT8_C __INT8_C
+#define INT8_C __INT8_C
/** Expands to integer constant of type \ref int16_t. */
-#define INT16_C __INT16_C
+#define INT16_C __INT16_C
/** Expands to integer constant of type \ref int32_t. */
-#define INT32_C __INT32_C
+#define INT32_C __INT32_C
/** Expands to integer constant of type \ref int64_t. */
-#define INT64_C __INT64_C
+#define INT64_C __INT64_C
/** Expands to integer constant of type \ref uint8_t. */
-#define UINT8_C __UINT8_C
+#define UINT8_C __UINT8_C
/** Expands to integer constant of type \ref uint16_t. */
-#define UINT16_C __UINT16_C
+#define UINT16_C __UINT16_C
/** Expands to integer constant of type \ref uint32_t. */
-#define UINT32_C __UINT32_C
+#define UINT32_C __UINT32_C
/** Expands to integer constant of type \ref uint64_t. */
-#define UINT64_C __UINT64_C
+#define UINT64_C __UINT64_C
/** Expands to integer constant of type \ref intmax_t. */
-#define INTMAX_C __INTMAX_C
+#define INTMAX_C __INTMAX_C
/** Expands to integer constant of type \ref uintmax_t. */
#define UINTMAX_C __UINTMAX_C
/** Number of bits in a byte. */
-#define CHAR_BIT __CHAR_BIT__
+#define CHAR_BIT __CHAR_BIT__
/** Largest value a signed char can have. */
#define SCHAR_MAX __SCHAR_MAX__
@@ -183,232 +183,232 @@ typedef int32_t ssize_t;
* Maximum number of bytes in a multibyte character.
* Arbitrary, as far as I can tell.
*/
-#define MB_LEN_MAX 16
+#define MB_LEN_MAX 16
/** Largest value a signed short can have. */
-#define SHRT_MAX __SHRT_MAX__
+#define SHRT_MAX __SHRT_MAX__
/** Smallest value a signed short can have. */
-#define SHRT_MIN (-__SHRT_MAX - 1)
+#define SHRT_MIN (-__SHRT_MAX - 1)
/** Largest value an unsigned short can have. */
-#define USHRT_MAX (2 * __SHRT_MAX + 1)
+#define USHRT_MAX (2 * __SHRT_MAX + 1)
/** Largest value a signed int can have. */
-#define INT_MAX __INT_MAX__
+#define INT_MAX __INT_MAX__
/** Smallest value a signed int can have. */
-#define INT_MIN (-__INT_MAX__ - 1)
+#define INT_MIN (-__INT_MAX__ - 1)
/** Largest value an unsigned int can have. */
-#define UINT_MAX (2 * __INT_MAX__ + 1)
+#define UINT_MAX (2 * __INT_MAX__ + 1)
/** Largest value a signed long can have. */
-#define LONG_MAX __LONG__MAX__
+#define LONG_MAX __LONG__MAX__
/** Smallest value a signed long can have. */
-#define LONG_MIN (-__LONG_MAX__ - 1)
+#define LONG_MIN (-__LONG_MAX__ - 1)
/** Largest value an unsigned long can have. */
-#define ULONG_MAX (2 * __INT_MAX__ + 1)
+#define ULONG_MAX (2 * __INT_MAX__ + 1)
/** Largest value a signed long long can have. */
-#define LLONG_MAX __LONG_LONG_MAX__
+#define LLONG_MAX __LONG_LONG_MAX__
/** Smallest value a signed long long can have. */
-#define LLONG_MIN (-__LONG_LONG_MAX__ - 1)
+#define LLONG_MIN (-__LONG_LONG_MAX__ - 1)
/** Largest value an unsigned long long can have. */
-#define ULLONG_MAX (2 * __LONG_LONG_MAX__ + 1)
+#define ULLONG_MAX (2 * __LONG_LONG_MAX__ + 1)
/** Largest value an \ref int8_t can have. */
-#define INT8_MAX __INT8_MAX__
+#define INT8_MAX __INT8_MAX__
/** Smallest value an \ref int8_t can have. */
-#define INT8_MIN (-__INT8_MAX__ - 1)
+#define INT8_MIN (-__INT8_MAX__ - 1)
/** Largest value an \ref int8_t can have. */
-#define UINT8_MAX __UINT8_MAX__
+#define UINT8_MAX __UINT8_MAX__
/** Largest value an \ref int16_t can have. */
-#define INT16_MAX __INT16_MAX__
+#define INT16_MAX __INT16_MAX__
/** Smallest value an \ref int16_t can have. */
-#define INT16_MIN (-__INT16_MAX__ - 1)
+#define INT16_MIN (-__INT16_MAX__ - 1)
/** Largest value an \ref uint16_t can have. */
-#define UINT16_MAX __UINT16_MAX__
+#define UINT16_MAX __UINT16_MAX__
/** Largest value an \ref int32_t can have. */
-#define INT32_MAX __INT32_MAX__
+#define INT32_MAX __INT32_MAX__
/** Smallest value an \ref int32_t can have. */
-#define INT32_MIN (-__INT32_MAX__ - 1)
+#define INT32_MIN (-__INT32_MAX__ - 1)
/** Largest value a \ref uint16_t can have. */
-#define UINT32_MAX __UINT32_MAX__
+#define UINT32_MAX __UINT32_MAX__
/** Largest value an \ref int64_t can have. */
-#define INT64_MAX __INT64_MAX__
+#define INT64_MAX __INT64_MAX__
/** Smallest value an \ref int64_t can have. */
-#define INT64_MIN (-__INT64_MAX__ - 1)
+#define INT64_MIN (-__INT64_MAX__ - 1)
/** Largest value an \ref uint64_t can have. */
-#define UINT64_MAX __UINT64_MAX__
+#define UINT64_MAX __UINT64_MAX__
/** Largest value an \ref int_least8_t can have. */
-#define INT_LEAST8_MAX __INT_LEAST8_MAX__
+#define INT_LEAST8_MAX __INT_LEAST8_MAX__
/** Smallest value an \ref int_least8_t can have. */
-#define INT_LEAST8_MIN (-__INT_LEAST8_MAX__ - 1)
+#define INT_LEAST8_MIN (-__INT_LEAST8_MAX__ - 1)
/** Largest value an \ref int_least8_t can have. */
-#define UINT_LEAST8_MAX __UINT_LEAST8_MAX__
+#define UINT_LEAST8_MAX __UINT_LEAST8_MAX__
/** Largest value an \ref int_least16_t can have. */
-#define INT_LEAST16_MAX __INT_LEAST16_MAX__
+#define INT_LEAST16_MAX __INT_LEAST16_MAX__
/** Smallest value an \ref int_least16_t can have. */
-#define INT_LEAST16_MIN (-__INT_LEAST16_MAX__ - 1)
+#define INT_LEAST16_MIN (-__INT_LEAST16_MAX__ - 1)
/** Largest value an \ref int_least16_t can have. */
-#define UINT_LEAST16_MAX __UINT_LEAST16_MAX__
+#define UINT_LEAST16_MAX __UINT_LEAST16_MAX__
/** Largest value an \ref int_least32_t can have. */
-#define INT_LEAST32_MAX __INT_LEAST32_MAX__
+#define INT_LEAST32_MAX __INT_LEAST32_MAX__
/** Smallest value an \ref int_least32_t can have. */
-#define INT_LEAST32_MIN (-__INT_LEAST32_MAX__ - 1)
+#define INT_LEAST32_MIN (-__INT_LEAST32_MAX__ - 1)
/** Largest value a \ref uint_least32_t can have. */
-#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__
+#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__
/** Largest value an \ref int_least64_t can have. */
-#define INT_LEAST64_MAX __INT_LEAST64_MAX__
+#define INT_LEAST64_MAX __INT_LEAST64_MAX__
/** Smallest value an \ref int_least64_t can have. */
-#define INT_LEAST64_MIN (-__INT_LEAST64_MAX__ - 1)
+#define INT_LEAST64_MIN (-__INT_LEAST64_MAX__ - 1)
/** Largest value a \ref uint_least64_t can have. */
-#define UINT_LEAST64_MAX __UINT_LEAST64_MAX__
+#define UINT_LEAST64_MAX __UINT_LEAST64_MAX__
/** Largest value an \ref int_fast8_t can have. */
-#define INT_FAST8_MAX __INT_FAST8_MAX__
+#define INT_FAST8_MAX __INT_FAST8_MAX__
/** Smallest value an \ref int_fast8_t can have. */
-#define INT_FAST8_MIN (-__INT_FAST8_MAX__ - 1)
+#define INT_FAST8_MIN (-__INT_FAST8_MAX__ - 1)
/** Largest value a \ref uint_fast8_t can have. */
-#define UINT_FAST8_MAX __UINT_FAST8_MAX__
+#define UINT_FAST8_MAX __UINT_FAST8_MAX__
/** Largest value an \ref int_fast16_t can have. */
-#define INT_FAST16_MAX __INT_FAST16_MAX__
+#define INT_FAST16_MAX __INT_FAST16_MAX__
/** Smallest value an \ref int_fast16_t can have. */
-#define INT_FAST16_MIN (-__INT_FAST16_MAX__ - 1)
+#define INT_FAST16_MIN (-__INT_FAST16_MAX__ - 1)
/** Largest value a \ref uint_fast16_t can have. */
-#define UINT_FAST16_MAX __UINT_FAST16_MAX__
+#define UINT_FAST16_MAX __UINT_FAST16_MAX__
/** Largest value an \ref int_fast32_t can have. */
-#define INT_FAST32_MAX __INT_FAST32_MAX__
+#define INT_FAST32_MAX __INT_FAST32_MAX__
/** Smallest value an \ref int_fast32_t can have. */
-#define INT_FAST32_MIN (-__INT_FAST32_MAX__ - 1)
+#define INT_FAST32_MIN (-__INT_FAST32_MAX__ - 1)
/** Largest value a \ref int_fast32_t can have. */
-#define UINT_FAST32_MAX __UINT_FAST32_MAX__
+#define UINT_FAST32_MAX __UINT_FAST32_MAX__
/** Largest value an \ref int_fast64_t can have. */
-#define INT_FAST64_MAX __INT_FAST64_MAX__
+#define INT_FAST64_MAX __INT_FAST64_MAX__
/** Smallest value an \ref int_fast64_t can have. */
-#define INT_FAST64_MIN (-__INT_FAST64_MAX__ - 1)
+#define INT_FAST64_MIN (-__INT_FAST64_MAX__ - 1)
/** Largest value a \ref int_fast64_t can have. */
-#define UINT_FAST64_MAX __UINT_FAST64_MAX__
+#define UINT_FAST64_MAX __UINT_FAST64_MAX__
/** Largest value an \ref intptr_t can have. */
-#define INTPTR_MAX __INTPTR_MAX__
+#define INTPTR_MAX __INTPTR_MAX__
/** Smallest value an \ref intptr_t can have. */
-#define INTPTR_MIN (-__INTPTR_MAX__ - 1)
+#define INTPTR_MIN (-__INTPTR_MAX__ - 1)
/** Largest value a \ref uintptr_t can have. */
-#define UINTPTR_MAX __UINTPTR_MAX__
+#define UINTPTR_MAX __UINTPTR_MAX__
/** Largest value an \ref intmax_t can have. */
-#define INTMAX_MAX __INTMAX_MAX__
+#define INTMAX_MAX __INTMAX_MAX__
/** Smallest value an \ref intmax_t can have. */
-#define INTMAX_MIN (-__INTMAX_MAX__ - 1)
+#define INTMAX_MIN (-__INTMAX_MAX__ - 1)
/** Largest value a \ref uintmax_t can have. */
-#define UINTMAX_MAX __UINTMAX_MAX__
+#define UINTMAX_MAX __UINTMAX_MAX__
/** Width of \ref int8_t. */
-#define INT8_WIDTH 8
+#define INT8_WIDTH 8
/** Width of \ref int16_t. */
-#define INT16_WIDTH 16
+#define INT16_WIDTH 16
/** Width of \ref int32_t. */
-#define INT32_WIDTH 32
+#define INT32_WIDTH 32
/** Width of \ref int64_t. */
-#define INT64_WIDTH 64
+#define INT64_WIDTH 64
/** Width of \ref uint8_t. */
-#define UINT8_WIDTH 8
+#define UINT8_WIDTH 8
/** Width of \ref uint16_t. */
-#define UINT16_WIDTH 16
+#define UINT16_WIDTH 16
/** Width of \ref uint32_t. */
-#define UINT32_WIDTH 32
+#define UINT32_WIDTH 32
/** Width of \ref uint64_t. */
-#define UINT64_WIDTH 64
+#define UINT64_WIDTH 64
/** Width of \ref int_fast8_t. */
-#define INT_FAST8_WIDTH __INT_FAST8_WIDTH__
+#define INT_FAST8_WIDTH __INT_FAST8_WIDTH__
/** Width of \ref int_fast16_t. */
-#define INT_FAST16_WIDTH __INT_FAST16_WIDTH__
+#define INT_FAST16_WIDTH __INT_FAST16_WIDTH__
/** Width of \ref int_fast32_t. */
-#define INT_FAST32_WIDTH __INT_FAST32_WIDTH__
+#define INT_FAST32_WIDTH __INT_FAST32_WIDTH__
/** Width of \ref int_fast64_t. */
-#define INT_FAST64_WIDTH __INT_FAST64_WIDTH__
+#define INT_FAST64_WIDTH __INT_FAST64_WIDTH__
/** Width of \ref uint_fast8_t. */
-#define UINT_FAST8_WIDTH __INT_FAST8_WIDTH__
+#define UINT_FAST8_WIDTH __INT_FAST8_WIDTH__
/** Width of \ref uint_fast16_t. */
-#define UINT_FAST16_WIDTH __INT_FAST16_WIDTH__
+#define UINT_FAST16_WIDTH __INT_FAST16_WIDTH__
/** Width of \ref uint_fast32_t. */
-#define UINT_FAST32_WIDTH __INT_FAST32_WIDTH__
+#define UINT_FAST32_WIDTH __INT_FAST32_WIDTH__
/** Width of \ref uint_fast64_t. */
-#define UINT_FAST64_WIDTH __INT_FAST64_WIDTH__
+#define UINT_FAST64_WIDTH __INT_FAST64_WIDTH__
/** Width of \ref int_least8_t. */
-#define INT_LEAST8_WIDTH __INT_LEAST8_WIDTH__
+#define INT_LEAST8_WIDTH __INT_LEAST8_WIDTH__
/** Width of \ref int_least16_t. */
-#define INT_LEAST16_WIDTH __INT_LEAST16_WIDTH__
+#define INT_LEAST16_WIDTH __INT_LEAST16_WIDTH__
/** Width of \ref int_least32_t. */
-#define INT_LEAST32_WIDTH __INT_LEAST32_WIDTH__
+#define INT_LEAST32_WIDTH __INT_LEAST32_WIDTH__
/** Width of \ref int_least64_t. */
-#define INT_LEAST64_WIDTH __INT_LEAST64_WIDTH__
+#define INT_LEAST64_WIDTH __INT_LEAST64_WIDTH__
/** Width of \ref uint_least8_t. */
-#define UINT_LEAST8_WIDTH __INT_LEAST8_WIDTH__
+#define UINT_LEAST8_WIDTH __INT_LEAST8_WIDTH__
/** Width of \ref uint_least16_t. */
#define UINT_LEAST16_WIDTH __INT_LEAST16_WIDTH__
@@ -420,19 +420,19 @@ typedef int32_t ssize_t;
#define UINT_LEAST64_WIDTH __INT_LEAST64_WIDTH__
/** Width of \ref intptr_t. */
-#define INTPTR_WIDTH __INTPTR_WIDTH__
+#define INTPTR_WIDTH __INTPTR_WIDTH__
/** Width of \ref intmax_t. */
-#define INTMAX_WIDTH __INTMAX_WIDTH__
+#define INTMAX_WIDTH __INTMAX_WIDTH__
/** Width of \ref uintptr_t. */
-#define UINTPTR_WIDTH __INTPTR_WIDTH__
+#define UINTPTR_WIDTH __INTPTR_WIDTH__
/** Width of \ref uintmax_t. */
-#define UINTMAX_WIDTH __INTMAX_WIDTH__
+#define UINTMAX_WIDTH __INTMAX_WIDTH__
/** Null. */
-#define NULL 0
+#define NULL 0
/* some common types used throughout the kernel */
/** Status, used with codes in \ref status_codes. */