src/filemanager/panel.[ch]: make some functions inline.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Этот коммит содержится в:
родитель
5a1fed2d98
Коммит
ac3aaac556
@ -1503,7 +1503,7 @@ panel_destroy (WPanel * p)
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
static void
|
||||
static inline void
|
||||
panel_format_modified (WPanel * panel)
|
||||
{
|
||||
panel->format_modified = 1;
|
||||
@ -2014,7 +2014,7 @@ force_maybe_cd (void)
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
static void
|
||||
static inline void
|
||||
unselect_item (WPanel * panel)
|
||||
{
|
||||
repaint_file (panel, panel->selected, TRUE, 2 * selection (panel)->f.marked, FALSE);
|
||||
@ -2354,7 +2354,7 @@ do_mark_file (WPanel * panel, mark_act_t do_move)
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
static void
|
||||
static inline void
|
||||
mark_file (WPanel * panel)
|
||||
{
|
||||
do_mark_file (panel, MARK_DOWN);
|
||||
@ -2362,7 +2362,7 @@ mark_file (WPanel * panel)
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
static void
|
||||
static inline void
|
||||
mark_file_up (WPanel * panel)
|
||||
{
|
||||
do_mark_file (panel, MARK_FORCE_UP);
|
||||
@ -2370,7 +2370,7 @@ mark_file_up (WPanel * panel)
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
static void
|
||||
static inline void
|
||||
mark_file_down (WPanel * panel)
|
||||
{
|
||||
do_mark_file (panel, MARK_FORCE_DOWN);
|
||||
@ -4051,18 +4051,6 @@ panel_set_lwd (WPanel * panel, const vfs_path_t * vpath)
|
||||
}
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
/** Panel creation.
|
||||
* @param panel_name the name of the panel for setup retieving
|
||||
* @return new instance of WPanel
|
||||
*/
|
||||
|
||||
WPanel *
|
||||
panel_new (const char *panel_name)
|
||||
{
|
||||
return panel_new_with_dir (panel_name, NULL);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
/**
|
||||
* Panel creation for specified directory.
|
||||
|
@ -145,7 +145,6 @@ extern mc_fhl_t *mc_filehighlight;
|
||||
|
||||
/*** declarations of public functions ************************************************************/
|
||||
|
||||
WPanel *panel_new (const char *panel_name);
|
||||
WPanel *panel_new_with_dir (const char *panel_name, const vfs_path_t * vpath);
|
||||
void panel_clean_dir (WPanel * panel);
|
||||
|
||||
@ -187,5 +186,23 @@ void panel_init (void);
|
||||
void panel_deinit (void);
|
||||
gboolean do_cd (const vfs_path_t * new_dir_vpath, enum cd_enum cd_type);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
/*** inline functions ****************************************************************************/
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
/**
|
||||
* Panel creation.
|
||||
*
|
||||
* @param panel_name the name of the panel for setup retieving
|
||||
*
|
||||
* @return new instance of WPanel
|
||||
*/
|
||||
|
||||
static inline WPanel *
|
||||
panel_new (const char *panel_name)
|
||||
{
|
||||
return panel_new_with_dir (panel_name, NULL);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
#endif /* MC__PANEL_H */
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user