shithub: orca

Download patch

ref: 2dcd08923c456f293bec28daea1dce3a2739eb24
parent: 52aa1067feefd07cf08ca49a6fbb8274a3caab92
author: cancel <cancel@cancel.fm>
date: Sat Jan 4 18:05:28 EST 2020

Cleanup

--- a/tui_main.c
+++ b/tui_main.c
@@ -2138,26 +2138,9 @@
 }
 
 //
-// main
+// Misc utils
 //
 
-enum {
-  Argopt_margins = UCHAR_MAX + 1,
-  Argopt_hardmargins,
-  Argopt_undo_limit,
-  Argopt_init_grid_size,
-  Argopt_osc_server,
-  Argopt_osc_port,
-  Argopt_osc_midi_bidule,
-  Argopt_strict_timing,
-  Argopt_bpm,
-  Argopt_seed,
-#ifdef FEAT_PORTMIDI
-  Argopt_portmidi_list_devices,
-  Argopt_portmidi_output_device,
-#endif
-};
-
 // Reads something like '5x3' or '5'. Writes the same value to both outputs if
 // only one is specified. Returns false on error.
 bool read_nxn_or_n(char const* str, int* out_a, int* out_b) {
@@ -2268,6 +2251,27 @@
   }
   return errstr;
 }
+
+//
+// main
+//
+
+enum {
+  Argopt_margins = UCHAR_MAX + 1,
+  Argopt_hardmargins,
+  Argopt_undo_limit,
+  Argopt_init_grid_size,
+  Argopt_osc_server,
+  Argopt_osc_port,
+  Argopt_osc_midi_bidule,
+  Argopt_strict_timing,
+  Argopt_bpm,
+  Argopt_seed,
+#ifdef FEAT_PORTMIDI
+  Argopt_portmidi_list_devices,
+  Argopt_portmidi_output_device,
+#endif
+};
 
 int main(int argc, char** argv) {
   static struct option tui_options[] = {