tweaks: condense the definitions of all the empty functions

master
Benno Schulenberg 2021-10-11 11:21:31 +02:00
parent af757d3b3f
commit 6018de2466
1 changed files with 22 additions and 66 deletions

View File

@ -282,80 +282,36 @@ size_t light_to_col = 0;
#endif #endif
/* Empty functions, for the most part corresponding to toggles. */ /* Empty functions, for the most part corresponding to toggles. */
void case_sens_void(void) void case_sens_void(void) {;}
{ void regexp_void(void) {;}
} void backwards_void(void) {;}
void regexp_void(void)
{
}
void backwards_void(void)
{
}
#ifdef ENABLE_HISTORIES #ifdef ENABLE_HISTORIES
void get_older_item(void) void get_older_item(void) {;}
{ void get_newer_item(void) {;}
}
void get_newer_item(void)
{
}
#endif #endif
void flip_replace(void) void flip_replace(void) {;}
{ void flip_goto(void) {;}
}
void flip_goto(void)
{
}
#ifdef ENABLE_BROWSER #ifdef ENABLE_BROWSER
void to_files(void) void to_files(void) {;}
{ void goto_dir(void) {;}
}
void goto_dir(void)
{
}
#endif #endif
#ifndef NANO_TINY #ifndef NANO_TINY
void do_nothing(void) void do_nothing(void) {;}
{ void do_toggle_void(void) {;}
} void dos_format(void) {;}
void do_toggle_void(void) void mac_format(void) {;}
{ void append_it(void) {;}
} void prepend_it(void) {;}
void dos_format(void) void back_it_up(void) {;}
{ void flip_execute(void) {;}
} void flip_pipe(void) {;}
void mac_format(void) void flip_convert(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 #endif
#ifdef ENABLE_MULTIBUFFER #ifdef ENABLE_MULTIBUFFER
void flip_newbuffer(void) void flip_newbuffer(void) {;}
{
}
#endif #endif
void discard_buffer(void) void discard_buffer(void) {;}
{ void do_cancel(void) {;}
}
void do_cancel(void)
{
}
/* Add a function to the linked list of functions. */ /* Add a function to the linked list of functions. */
void add_to_funcs(void (*func)(void), int menus, const char *desc, void add_to_funcs(void (*func)(void), int menus, const char *desc,