mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-04 18:44:28 +03:00
(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:
parent
2db4f47bdd
commit
5288f994c4
@ -67,7 +67,6 @@
|
|||||||
#include "src/setup.h"
|
#include "src/setup.h"
|
||||||
#include "src/execute.h" /* toggle_panels() */
|
#include "src/execute.h" /* toggle_panels() */
|
||||||
#include "src/history.h"
|
#include "src/history.h"
|
||||||
#include "src/usermenu.h" /* MC_GLOBAL_MENU */
|
|
||||||
#include "src/util.h" /* check_for_default() */
|
#include "src/util.h" /* check_for_default() */
|
||||||
|
|
||||||
#include "src/viewer/mcviewer.h"
|
#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
|
#ifdef ENABLE_VFS_FTP
|
||||||
void
|
void
|
||||||
ftplink_cmd (void)
|
ftplink_cmd (void)
|
||||||
|
@ -74,7 +74,6 @@ void edit_symlink_cmd (void);
|
|||||||
void swap_cmd (void);
|
void swap_cmd (void);
|
||||||
void quick_cd_cmd (WPanel * panel);
|
void quick_cd_cmd (WPanel * panel);
|
||||||
void save_setup_cmd (void);
|
void save_setup_cmd (void);
|
||||||
void user_file_menu_cmd (void);
|
|
||||||
void info_cmd (void);
|
void info_cmd (void);
|
||||||
void listing_cmd (void);
|
void listing_cmd (void);
|
||||||
void setup_listing_format_cmd (void);
|
void setup_listing_format_cmd (void);
|
||||||
|
@ -61,6 +61,7 @@
|
|||||||
#include "src/setup.h" /* variables */
|
#include "src/setup.h" /* variables */
|
||||||
#include "src/learn.h" /* learn_keys() */
|
#include "src/learn.h" /* learn_keys() */
|
||||||
#include "src/keymap.h"
|
#include "src/keymap.h"
|
||||||
|
#include "src/usermenu.h" /* user_file_menu_cmd() */
|
||||||
#include "lib/fileloc.h" /* MC_FILEPOS_FILE */
|
#include "lib/fileloc.h" /* MC_FILEPOS_FILE */
|
||||||
#include "lib/keybind.h"
|
#include "lib/keybind.h"
|
||||||
#include "lib/event.h"
|
#include "lib/event.h"
|
||||||
|
@ -24,6 +24,16 @@ int check_format_view (const char *p);
|
|||||||
int check_format_var (const char *p, char **v);
|
int check_format_var (const char *p, char **v);
|
||||||
int check_format_cd (const char *p);
|
int check_format_cd (const char *p);
|
||||||
|
|
||||||
|
/* --------------------------------------------------------------------------------------------- */
|
||||||
/*** inline functions ****************************************************************************/
|
/*** inline functions ****************************************************************************/
|
||||||
|
/* --------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
static inline void
|
||||||
|
user_file_menu_cmd (void)
|
||||||
|
{
|
||||||
|
(void) user_menu_cmd (NULL, NULL, -1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#endif /* MC__USERMENU_H */
|
#endif /* MC__USERMENU_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user