From 1469b39f73c231250434b5487e619dbc5570d7f0 Mon Sep 17 00:00:00 2001 From: cancel Date: Mon, 27 Jan 2020 03:13:26 +0900 Subject: [PATCH] Cleanup --- cli_main.c | 23 ++++++++++------------- tui_main.c | 8 +++----- 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/cli_main.c b/cli_main.c index 1c09057..8335954 100644 --- a/cli_main.c +++ b/cli_main.c @@ -5,19 +5,16 @@ #include "vmio.h" #include -static void usage(void) { - // clang-format off - fprintf(stderr, - "Usage: cli [options] infile\n\n" - "Options:\n" - " -t Number of timesteps to simulate.\n" - " Must be 0 or a positive integer.\n" - " Default: 1\n" - " -q or --quiet Don't print the result to stdout.\n" - " -h or --help Print this message and exit.\n" - ); - // clang-format on -} +static ORCA_NOINLINE void usage(void) { // clang-format off +fprintf(stderr, +"Usage: cli [options] infile\n\n" +"Options:\n" +" -t Number of timesteps to simulate.\n" +" Must be 0 or a positive integer.\n" +" Default: 1\n" +" -q or --quiet Don't print the result to stdout.\n" +" -h or --help Print this message and exit.\n" +);} // clang-format on int main(int argc, char **argv) { static struct option cli_options[] = {{"help", no_argument, 0, 'h'}, diff --git a/tui_main.c b/tui_main.c index dfb0662..ae21d89 100644 --- a/tui_main.c +++ b/tui_main.c @@ -25,9 +25,8 @@ static int spin_track_timeout = 0; #define staticni ORCA_NOINLINE static -static void usage(void) { - // clang-format off - fprintf(stderr, +staticni void usage(void) { // clang-format off +fprintf(stderr, "Usage: orca [options] [file]\n\n" "General options:\n" " --undo-limit Set the maximum number of undo steps.\n" @@ -51,8 +50,7 @@ static void usage(void) { " Set MIDI to be sent via OSC formatted for Plogue Bidule.\n" " The path argument is the path of the Plogue OSC MIDI device.\n" " Example: /OSC_MIDI_0/MIDI\n" - ); // clang-format on -} +);} // clang-format on typedef enum { Glyph_class_unknown,