diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-23 20:40:53 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-23 20:41:08 +0300 |
| commit | b096078c282af7233062ba242a213e6f5574cfb1 (patch) | |
| tree | 56f08b2898d4721255c8a91caa7b1978488959c6 /include/apos/utils.h | |
| parent | 20d9959b74fdfba26250579f8a75374042bfaaaf (diff) | |
| download | kmi-b096078c282af7233062ba242a213e6f5574cfb1.tar.gz kmi-b096078c282af7233062ba242a213e6f5574cfb1.zip | |
switch from clang-format to uncrustify
The output is close enough, and I like that uncrustify is a third-party
tool, so people can install a single tool for formatting instead of
having to lug around a whole toolchain. I fully expect to have to add
settings to uncrustify.conf, but let's see how this goes.
Diffstat (limited to 'include/apos/utils.h')
| -rw-r--r-- | include/apos/utils.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/apos/utils.h b/include/apos/utils.h index 1f1ade9..03bb801 100644 --- a/include/apos/utils.h +++ b/include/apos/utils.h @@ -20,7 +20,7 @@ (MIN3(a, b, c) <= MIN3(b, c, d) ? MIN3(a, b, c) : MIN3(b, c, d)) /* etc... */ -#define GLUE2(x, y) x ## y +#define GLUE2(x, y) x##y #define GLUE(x, y) GLUE2(x, y) #define QUOTE2(x) #x @@ -71,7 +71,7 @@ : align_up_ull)((x), (y)) #define DEFINE_ALIGN_UP(name, type) \ - static inline type align_up_ ## name(type val, type a) \ + static inline type align_up_##name(type val, type a) \ { \ if (!a) { \ return val; \ @@ -114,7 +114,7 @@ DEFINE_ALIGN_UP(ull, unsigned long long); : align_down_ull)((x), (y)) #define DEFINE_ALIGN_DOWN(name, type) \ - static inline type align_down_ ## name(type val, type a) \ + static inline type align_down_##name(type val, type a) \ { \ if (!a) { \ return val; \ @@ -151,7 +151,7 @@ DEFINE_ALIGN_DOWN(ull, unsigned long long); : is_aligned_ll)((x), (y)) #define DEFINE_ALIGNED(name, type) \ - static inline bool is_aligned_ ## name(type val, type a) \ + static inline bool is_aligned_##name(type val, type a) \ { \ if (!a) { \ return true; \ |
