Code refactoring

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2011-11-08 23:50:50 +03:00
parent 87291354e3
commit 862d53090d
6 changed files with 31 additions and 5 deletions

View File

@ -164,10 +164,6 @@ char *tilde_expand (const char *);
void custom_canonicalize_pathname (char *, CANON_PATH_FLAGS);
void canonicalize_pathname (char *);
/* Misc Unix functions */
int my_mkdir (const vfs_path_t * s, mode_t mode);
int my_rmdir (const char *s);
#ifdef HAVE_REALPATH
#define mc_realpath realpath
#else

View File

@ -12,7 +12,7 @@ libmcfilemanager_la_SOURCES = \
ext.c ext.h \
file.c file.h \
filegui.c filegui.h \
filenot.c \
filenot.c filenot.h \
fileopctx.c fileopctx.h \
find.c find.h \
hotlist.c hotlist.h \

View File

@ -82,6 +82,7 @@
#include "fileopctx.h"
#include "file.h" /* file operation routines */
#include "find.h" /* find_file() */
#include "filenot.h"
#include "hotlist.h" /* hotlist_show() */
#include "panel.h" /* WPanel */
#include "tree.h" /* tree_chdir() */

View File

@ -79,6 +79,7 @@
/* Needed for current_panel, other_panel and WTree */
#include "dir.h"
#include "filegui.h"
#include "filenot.h"
#include "tree.h"
#include "midnight.h" /* current_panel */

View File

@ -43,6 +43,8 @@
#include "lib/util.h"
#include "lib/vfs/vfs.h"
#include "filenot.h"
/*** global variables ****************************************************************************/
/*** file scope macro definitions ****************************************************************/

26
src/filemanager/filenot.h Normal file
View File

@ -0,0 +1,26 @@
/** \file file.h
* \brief Header: File and directory operation routines
*/
#ifndef MC__FILENOT_H
#define MC__FILENOT_H
#include "lib/global.h"
/*** typedefs(not structures) and defined constants **********************************************/
/*** enums ***************************************************************************************/
/*** structures declarations (and typedefs of structures)*****************************************/
/*** global variables defined in .c file *********************************************************/
/*** declarations of public functions ************************************************************/
/* Misc Unix functions */
int my_mkdir (const vfs_path_t * s, mode_t mode);
int my_rmdir (const char *s);
/*** inline functions ****************************************************************************/
#endif /* MC__FILE_H */