Move src/filemanager/complete.c to lib/widget/input_complete.c

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2011-02-16 13:58:36 +02:00
parent 5a458c702d
commit e784cf65a5
6 changed files with 23 additions and 4 deletions

View File

@ -12,6 +12,7 @@ libmcwidget_la_SOURCES = \
hline.c hline.h \
history.c history.h \
input.c input.h \
input_complete.c input_complete.h \
listbox-window.c listbox-window.h \
listbox.c listbox.h \
label.c label.h \

View File

@ -50,6 +50,8 @@
#include "lib/keybind.h" /* global_keymap_t */
#include "lib/widget.h"
#include "input_complete.h"
#include "src/main.h" /* home_dir */
#include "src/filemanager/midnight.h" /* current_panel */
#include "src/clipboard.h" /* copy_file_to_ext_clip, paste_to_file_from_ext_clip */

View File

@ -88,9 +88,6 @@ void input_disable_update (WInput * in);
void input_clean (WInput * in);
void input_free_completions (WInput * in);
/* src/complete.c */
void complete (WInput * in);
/*** inline functions ****************************************************************************/
#endif /* MC__WIDGET_INPUT_H */

View File

@ -46,6 +46,8 @@
#include "lib/util.h"
#include "lib/widget.h"
#include "input_complete.h"
/*** global variables ****************************************************************************/
/* Linux declares environ in <unistd.h>, so don't repeat it here. */

View File

@ -0,0 +1,18 @@
#ifndef MC__WIDGET_INPUT_COMPLETE_H
#define MC__WIDGET_INPUT_COMPLETE_H
/*** typedefs(not structures) and defined constants **********************************************/
/*** enums ***************************************************************************************/
/*** structures declarations (and typedefs of structures)*****************************************/
/*** global variables defined in .c file *********************************************************/
/*** declarations of public functions ************************************************************/
void complete (WInput * in);
/*** inline functions ****************************************************************************/
#endif /* MC__WIDGET_INPUT_COMPLETE_H */

View File

@ -8,7 +8,6 @@ libmcfilemanager_la_SOURCES = \
chown.c chown.h \
cmd.c cmd.h \
command.c command.h \
complete.c \
dir.c dir.h \
ext.c ext.h \
file.c file.h \