commit d0cb8744d84822209edd0ac242f2400c784e6dc5
parent 9e9322b222566c0f92bb6df034d9b316317c81d5
Author: Dundar Göc <gocdundar@gmail.com>
Date: Wed, 9 Mar 2022 21:00:39 +0100
refactor(uncrustify): disable uncrustify for misformatted code sections
Uncrustify version 0.74 has a bug that deindents and misformats the
entire fileio.c.
Diffstat:
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c
@@ -7066,10 +7066,12 @@ static void init_srand(uint32_t *const x)
if (dev_urandom_state != OK) {
// Reading /dev/urandom doesn't work, fall back to time().
#endif
+ // uncrustify:off
*x = time(NULL);
#ifndef MSWIN
}
#endif
+ // uncrustify:on
}
static inline uint32_t splitmix32(uint32_t *const x)
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
@@ -3,6 +3,8 @@
// fileio.c: read from and write to a file
+// uncrustify:off
+
#include <assert.h>
#include <errno.h>
#include <fcntl.h>