Avoid clang-format in pcf tables

This commit is contained in:
Rodrigo Arias 2022-09-29 18:34:57 +02:00
parent 8370c33194
commit 73aa7887ae

View File

@ -9,6 +9,8 @@
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
/* clang-format off */
const char *pcf_def_header = const char *pcf_def_header =
"DEFAULT_OPTIONS\n" "DEFAULT_OPTIONS\n"
"\n" "\n"
@ -61,7 +63,8 @@ const uint32_t pcf_def_palette[] = {
GREEN, GREEN,
YELLOW, ORANGE, PURPLE, CYAN, MAGENTA, LIME, PINK, YELLOW, ORANGE, PURPLE, CYAN, MAGENTA, LIME, PINK,
TEAL, GREY, LAVENDER, BROWN, BEIGE, MAROON, MINT, TEAL, GREY, LAVENDER, BROWN, BEIGE, MAROON, MINT,
OLIVE, APRICOT, NAVY, DEEPBLUE}; OLIVE, APRICOT, NAVY, DEEPBLUE
};
const uint32_t *pcf_palette = pcf_def_palette; const uint32_t *pcf_palette = pcf_def_palette;
const int pcf_palette_len = ARRAY_LEN(pcf_def_palette); const int pcf_palette_len = ARRAY_LEN(pcf_def_palette);
@ -259,11 +262,7 @@ char *pcf_chan_name[CHAN_MAX] = {
[CHAN_KERNEL_CS] = "Context switches", [CHAN_KERNEL_CS] = "Context switches",
}; };
enum pcf_suffix { NONE = 0, enum pcf_suffix { NONE = 0, CUR_TH, RUN_TH, ACT_TH, SUFFIX_MAX };
CUR_TH,
RUN_TH,
ACT_TH,
SUFFIX_MAX };
char *pcf_suffix_name[SUFFIX_MAX] = { char *pcf_suffix_name[SUFFIX_MAX] = {
[NONE] = "", [NONE] = "",
@ -301,6 +300,8 @@ int pcf_chan_suffix[CHAN_MAX][CHAN_MAXTYPE] = {
[CHAN_KERNEL_CS] = { RUN_TH, ACT_TH }, [CHAN_KERNEL_CS] = { RUN_TH, ACT_TH },
}; };
/* clang-format on */
/* ----------------------------------------------- */ /* ----------------------------------------------- */
static void static void