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:
Dundar Göc 2022-03-09 21:00:39 +01:00
parent 9e9322b222
commit d0cb8744d8
2 changed files with 4 additions and 0 deletions

View File

@ -7066,10 +7066,12 @@ static void init_srand(uint32_t *const x)
if (dev_urandom_state != OK) { if (dev_urandom_state != OK) {
// Reading /dev/urandom doesn't work, fall back to time(). // Reading /dev/urandom doesn't work, fall back to time().
#endif #endif
// uncrustify:off
*x = time(NULL); *x = time(NULL);
#ifndef MSWIN #ifndef MSWIN
} }
#endif #endif
// uncrustify:on
} }
static inline uint32_t splitmix32(uint32_t *const x) static inline uint32_t splitmix32(uint32_t *const x)

View File

@ -3,6 +3,8 @@
// fileio.c: read from and write to a file // fileio.c: read from and write to a file
// uncrustify:off
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>