mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +00:00
refactor(uncrustify): disable uncrustify for misformatted code sections
Uncrustify version 0.74 has a bug that deindents and misformats the entire fileio.c.
This commit is contained in:
@@ -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)
|
||||
|
@@ -3,6 +3,8 @@
|
||||
|
||||
// fileio.c: read from and write to a file
|
||||
|
||||
// uncrustify:off
|
||||
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
Reference in New Issue
Block a user