String enum_name[] is unused so remove is with
all generated strings.
Reoder struct members, so there are no holes.
/* create table of value names, e.g. String, and corresponding enum from vals.h */
static const struct val_name val_names[VAL_COUNT + 1] = {
-#define val(a, b, c, d) { # a, a, b, c, d },
+#define val(a, b, c, d) { b, d, c, a },
#include "vals.h"
#undef val
};
/* see global val_names[] */
struct val_name {
- const char enum_name[30]; /* "foo_VAL" */
- uint16_t val_enum; /* foo_VAL */
int (*fn) (struct cmd_context *cmd, struct arg_values *av); /* foo_arg() */
- const char name[32]; /* FooVal */
const char *usage;
+ const char name[30]; /* FooVal */
+ uint16_t val_enum; /* foo_VAL */
};
/* see global lv_props[] */