From d90fb1c0bfc1e64c783c385a79e7de87013dadba Mon Sep 17 00:00:00 2001 From: dundargoc <33953936+dundargoc@users.noreply.github.com> Date: Wed, 29 Sep 2021 19:48:50 +0200 Subject: Refactor/uncrustify (#15790) * refactor: format with uncrustify * fixup(dundar): fix functions comments * fixup(dundar): remove space between variable and ++/-- * fixup(dundar): better workaround for macro attributes This is done to be able to better use uncrustify rules for macros * fixup(justin): make preprocessors follow neovim style guide --- src/nvim/shada.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/nvim/shada.c') diff --git a/src/nvim/shada.c b/src/nvim/shada.c index 25c9823dc7..bf245bec51 100644 --- a/src/nvim/shada.c +++ b/src/nvim/shada.c @@ -3229,9 +3229,9 @@ static void shada_free_shada_entry(ShadaEntry *const entry) #ifndef HAVE_BE64TOH static inline uint64_t be64toh(uint64_t big_endian_64_bits) { -#ifdef ORDER_BIG_ENDIAN +# ifdef ORDER_BIG_ENDIAN return big_endian_64_bits; -#else +# else // It may appear that when !defined(ORDER_BIG_ENDIAN) actual order is big // endian. This variant is suboptimal, but it works regardless of actual // order. @@ -3241,7 +3241,7 @@ static inline uint64_t be64toh(uint64_t big_endian_64_bits) ret |= ((uint64_t)buf[i - 1]) << ((8 - i) * 8); } return ret; -#endif +# endif } #endif -- cgit