summaryrefslogtreecommitdiff
path: root/include/uint_t.h
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-09 14:41:53 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-09 14:41:53 +0200
commit5fadc0cbb8577c61d66bd6f19ceaf0507c11e23b (patch)
tree684758441f5b431d0008253243034b6a4a29417c /include/uint_t.h
parent249866e3d1e11dc72eaa1305f4bb479ded92ef38 (diff)
initial clang-format
Diffstat (limited to 'include/uint_t.h')
-rw-r--r--include/uint_t.h61
1 files changed, 30 insertions, 31 deletions
diff --git a/include/uint_t.h b/include/uint_t.h
index 84eb06e..aba0f38 100644
--- a/include/uint_t.h
+++ b/include/uint_t.h
@@ -9,68 +9,67 @@
*/
#ifndef UINT8_H
-#define UINT8_H
+ #define UINT8_H
-#ifdef HAS_UINT8_H
+ #ifdef HAS_UINT8_H
typedef uint8_t uint8;
-#else
+ #else
typedef unsigned char uint8;
-#endif
+ #endif
#endif
#ifndef UINT16_H
-#define UINT16_H
+ #define UINT16_H
typedef uint16_t uint16;
-extern void uint16_pack(char *,uint16);
-extern void uint16_pack_big(char *,uint16);
-extern void uint16_unpack(char *,uint16 *);
-extern void uint16_unpack_big(char *,uint16 *);
+extern void uint16_pack(char *, uint16);
+extern void uint16_pack_big(char *, uint16);
+extern void uint16_unpack(char *, uint16 *);
+extern void uint16_unpack_big(char *, uint16 *);
#endif
#ifndef UINT32_H
-#define UINT32_H
+ #define UINT32_H
typedef uint32_t uint32;
-extern void uint32_pack(char *,uint32);
-extern void uint32_pack_big(char *,uint32);
-extern void uint32_unpack(char *,uint32 *);
-extern void uint32_unpack_big(char *,uint32 *);
+extern void uint32_pack(char *, uint32);
+extern void uint32_pack_big(char *, uint32);
+extern void uint32_unpack(char *, uint32 *);
+extern void uint32_unpack_big(char *, uint32 *);
#endif
#ifndef UINT64_H
-#define UINT64_H
+ #define UINT64_H
-#ifdef HAS_UINT64_H
+ #ifdef HAS_UINT64_H
typedef uint64_t uint64;
-#else
+ #else
typedef unsigned long long uint64;
-#endif
+ #endif
-extern void uint64_pack(char *,uint64);
-extern void uint64_pack_big(char *,uint64);
-extern void uint64_unpack(char *,uint64 *);
-extern void uint64_unpack_big(char *,uint64 *);
+extern void uint64_pack(char *, uint64);
+extern void uint64_pack_big(char *, uint64);
+extern void uint64_unpack(char *, uint64 *);
+extern void uint64_unpack_big(char *, uint64 *);
#endif
#ifndef UINT128_H
-#define UINT128_H
+ #define UINT128_H
/* uint128 used for native IPv6 address presentation */
-struct uint128_t
-{
- uint64_t hi; /* routing area */
- uint64_t lo; /* local area */
+struct uint128_t {
+ uint64_t hi; /* routing area */
+ uint64_t lo; /* local area */
};
typedef struct uint128_t uint128;
-extern void uint128_pack(char *,uint128);
-extern void uint128_pack_big(char *,uint128);
-extern void uint128_unpack(char *,uint128 *);
-extern void uint128_unpack_big(char *,uint128 *);
+extern void uint128_pack(char *, uint128);
+extern void uint128_pack_big(char *, uint128);
+extern void uint128_unpack(char *, uint128 *);
+extern void uint128_unpack_big(char *, uint128 *);
#endif