From 6018de2466175af5fda9b65b666276e440a2f55f Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 11 Oct 2021 11:21:31 +0200 Subject: [PATCH] tweaks: condense the definitions of all the empty functions --- src/global.c | 88 +++++++++++++--------------------------------------- 1 file changed, 22 insertions(+), 66 deletions(-) diff --git a/src/global.c b/src/global.c index 6ccb106e..dffa3a68 100644 --- a/src/global.c +++ b/src/global.c @@ -282,80 +282,36 @@ size_t light_to_col = 0; #endif /* Empty functions, for the most part corresponding to toggles. */ -void case_sens_void(void) -{ -} -void regexp_void(void) -{ -} -void backwards_void(void) -{ -} +void case_sens_void(void) {;} +void regexp_void(void) {;} +void backwards_void(void) {;} #ifdef ENABLE_HISTORIES -void get_older_item(void) -{ -} -void get_newer_item(void) -{ -} +void get_older_item(void) {;} +void get_newer_item(void) {;} #endif -void flip_replace(void) -{ -} -void flip_goto(void) -{ -} +void flip_replace(void) {;} +void flip_goto(void) {;} #ifdef ENABLE_BROWSER -void to_files(void) -{ -} -void goto_dir(void) -{ -} +void to_files(void) {;} +void goto_dir(void) {;} #endif #ifndef NANO_TINY -void do_nothing(void) -{ -} -void do_toggle_void(void) -{ -} -void dos_format(void) -{ -} -void mac_format(void) -{ -} -void append_it(void) -{ -} -void prepend_it(void) -{ -} -void back_it_up(void) -{ -} -void flip_execute(void) -{ -} -void flip_pipe(void) -{ -} -void flip_convert(void) -{ -} +void do_nothing(void) {;} +void do_toggle_void(void) {;} +void dos_format(void) {;} +void mac_format(void) {;} +void append_it(void) {;} +void prepend_it(void) {;} +void back_it_up(void) {;} +void flip_execute(void) {;} +void flip_pipe(void) {;} +void flip_convert(void) {;} #endif #ifdef ENABLE_MULTIBUFFER -void flip_newbuffer(void) -{ -} +void flip_newbuffer(void) {;} #endif -void discard_buffer(void) -{ -} -void do_cancel(void) -{ -} +void discard_buffer(void) {;} +void do_cancel(void) {;} /* Add a function to the linked list of functions. */ void add_to_funcs(void (*func)(void), int menus, const char *desc,