mirror of https://github.com/MidnightCommander/mc
Code refactoring
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
87291354e3
commit
862d53090d
|
@ -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
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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() */
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
|
@ -43,6 +43,8 @@
|
|||
#include "lib/util.h"
|
||||
#include "lib/vfs/vfs.h"
|
||||
|
||||
#include "filenot.h"
|
||||
|
||||
/*** global variables ****************************************************************************/
|
||||
|
||||
/*** file scope macro definitions ****************************************************************/
|
||||
|
|
|
@ -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 */
|
Loading…
Reference in New Issue