Browse Source

Cleanup

master
cancel 5 years ago
parent
commit
30e65b04ae
  1. 38
      tui_main.c

38
tui_main.c

@ -2509,29 +2509,23 @@ staticni void try_send_to_gui_clipboard(Ged const *a,
} }
} }
char const *const confopts[] = { #define CONFOPTS(_) \
// clang-format off _(portmidi_output_device) \
"portmidi_output_device", _(osc_output_address) \
"osc_output_address", _(osc_output_port) \
"osc_output_port", _(osc_output_enabled) \
"osc_output_enabled", _(midi_beat_clock) \
"midi_beat_clock", _(margins) \
"margins", _(grid_dot_type) \
"grid_dot_type", _(grid_ruler_type)
"grid_ruler_type", #define CONFOPT_STRING(x) #x,
}; // clang-format on #define CONFOPT_ENUM(x) Confopt_##x,
char const *const confopts[] = {CONFOPTS(CONFOPT_STRING)};
enum { Confoptslen = ORCA_ARRAY_COUNTOF(confopts) }; enum { Confoptslen = ORCA_ARRAY_COUNTOF(confopts) };
enum { enum { CONFOPTS(CONFOPT_ENUM) };
Confopt_portmidi_output_device = 0, #undef CONFOPTS
Confopt_osc_output_address, #undef CONFOPT_STRING
Confopt_osc_output_port, #undef CONFOPT_ENUM
Confopt_osc_output_enabled,
Confopt_midi_beat_clock,
Confopt_margins,
Confopt_grid_dot_type,
Confopt_grid_ruler_type,
};
// Use this to create a bitflag out of a Confopt_. These flags are used to // Use this to create a bitflag out of a Confopt_. These flags are used to
// indicate that a setting has been touched by the user. In other words, these // indicate that a setting has been touched by the user. In other words, these

Loading…
Cancel
Save