(user_file_menu_cmd): move to src/usermenu.h and make inline.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2024-06-30 12:26:26 +03:00
parent 2db4f47bdd
commit 5288f994c4
4 changed files with 11 additions and 10 deletions

View File

@ -67,7 +67,6 @@
#include "src/setup.h"
#include "src/execute.h" /* toggle_panels() */
#include "src/history.h"
#include "src/usermenu.h" /* MC_GLOBAL_MENU */
#include "src/util.h" /* check_for_default() */
#include "src/viewer/mcviewer.h"
@ -1153,14 +1152,6 @@ help_cmd (void)
/* --------------------------------------------------------------------------------------------- */
void
user_file_menu_cmd (void)
{
(void) user_menu_cmd (NULL, NULL, -1);
}
/* --------------------------------------------------------------------------------------------- */
#ifdef ENABLE_VFS_FTP
void
ftplink_cmd (void)

View File

@ -74,7 +74,6 @@ void edit_symlink_cmd (void);
void swap_cmd (void);
void quick_cd_cmd (WPanel * panel);
void save_setup_cmd (void);
void user_file_menu_cmd (void);
void info_cmd (void);
void listing_cmd (void);
void setup_listing_format_cmd (void);

View File

@ -61,6 +61,7 @@
#include "src/setup.h" /* variables */
#include "src/learn.h" /* learn_keys() */
#include "src/keymap.h"
#include "src/usermenu.h" /* user_file_menu_cmd() */
#include "lib/fileloc.h" /* MC_FILEPOS_FILE */
#include "lib/keybind.h"
#include "lib/event.h"

View File

@ -24,6 +24,16 @@ int check_format_view (const char *p);
int check_format_var (const char *p, char **v);
int check_format_cd (const char *p);
/* --------------------------------------------------------------------------------------------- */
/*** inline functions ****************************************************************************/
/* --------------------------------------------------------------------------------------------- */
static inline void
user_file_menu_cmd (void)
{
(void) user_menu_cmd (NULL, NULL, -1);
}
/* --------------------------------------------------------------------------------------------- */
#endif /* MC__USERMENU_H */