Protect some sections agains clang-format

This commit is contained in:
Rodrigo Arias 2022-09-29 15:05:09 +02:00
parent 6169bfc966
commit f6a57764d4
2 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,8 @@
/* Debug macros */ /* Debug macros */
/* clang-format off */
#ifdef ENABLE_DEBUG #ifdef ENABLE_DEBUG
# define dbg(...) fprintf(stderr, __VA_ARGS__); # define dbg(...) fprintf(stderr, __VA_ARGS__);
#else #else
@ -25,4 +27,6 @@
/* Poison assert */ /* Poison assert */
#pragma GCC poison assert #pragma GCC poison assert
/* clang-format on */
#endif /* COMMON_H */ #endif /* COMMON_H */

2
emu.h
View File

@ -232,6 +232,7 @@ enum chan_dirty {
CHAN_DIRTY_VALUE = 2, CHAN_DIRTY_VALUE = 2,
}; };
/* clang-format off */
static const int chan_to_prvtype[CHAN_MAX] = { static const int chan_to_prvtype[CHAN_MAX] = {
[CHAN_OVNI_PID] = 1, [CHAN_OVNI_PID] = 1,
[CHAN_OVNI_TID] = 2, [CHAN_OVNI_TID] = 2,
@ -255,6 +256,7 @@ static const int chan_to_prvtype[CHAN_MAX] = {
[CHAN_NANOS6_THREAD] = 39, [CHAN_NANOS6_THREAD] = 39,
[CHAN_KERNEL_CS] = 45, [CHAN_KERNEL_CS] = 45,
}; };
/* clang-format on */
struct ovni_chan { struct ovni_chan {
/* Channel id */ /* Channel id */