Browse Source

Moved filemanager-related stuff to src/filemanager directory

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Slava Zanko 14 years ago
parent
commit
bbf1f4e857
10 changed files with 22 additions and 22 deletions
  1. 1 0
      configure.ac
  2. 2 1
      lib/filehighlight.h
  3. 11 11
      lib/fs.h
  4. 0 2
      lib/keybind/keymap.c
  5. 1 1
      lib/tty/key.c
  6. 2 2
      lib/util.c
  7. 2 2
      lib/util.h
  8. 1 1
      lib/vfs/mc-vfs/direntry.c
  9. 1 1
      lib/vfs/mc-vfs/fish.c
  10. 1 1
      lib/vfs/mc-vfs/ftpfs.c

+ 1 - 0
configure.ac

@@ -561,6 +561,7 @@ src/editor/Makefile
 src/man2hlp/Makefile
 src/viewer/Makefile
 src/diffviewer/Makefile
+src/filemanager/Makefile
 
 lib/Makefile
 lib/filehighlight/Makefile

+ 2 - 1
lib/filehighlight.h

@@ -3,7 +3,8 @@
 
 #include "lib/mcconfig.h"
 #include "lib/search.h"
-#include "src/dir.h"
+
+#include "src/filemanager/dir.h"
 
 /*** typedefs(not structures) and defined constants **********************************************/
 

+ 11 - 11
lib/fs.h

@@ -16,33 +16,33 @@
 
 /* Replacement for permission bits missing in sys/stat.h */
 #ifndef S_ISLNK
-#   define S_ISLNK(x) 0
+#define S_ISLNK(x) 0
 #endif
 
 #ifndef S_ISSOCK
-#   define S_ISSOCK(x) 0
+#define S_ISSOCK(x) 0
 #endif
 
 #ifndef S_ISFIFO
-#   define S_ISFIFO(x) 0
+#define S_ISFIFO(x) 0
 #endif
 
 #ifndef S_ISCHR
-#   define S_ISCHR(x) 0
+#define S_ISCHR(x) 0
 #endif
 
 #ifndef S_ISBLK
-#   define S_ISBLK(x) 0
+#define S_ISBLK(x) 0
 #endif
 
 /* Door is something that only exists on Solaris */
 #ifndef S_ISDOOR
-#   define S_ISDOOR(x) 0
+#define S_ISDOOR(x) 0
 #endif
 
 /* Special named files are widely used in QNX6 */
 #ifndef S_ISNAM
-#   define S_ISNAM(x) 0
+#define S_ISNAM(x) 0
 #endif
 
 #ifndef PATH_MAX
@@ -58,9 +58,9 @@
 #endif
 
 #ifndef MAXPATHLEN
-#   define MC_MAXPATHLEN 4096
+#define MC_MAXPATHLEN 4096
 #else
-#   define MC_MAXPATHLEN MAXPATHLEN
+#define MC_MAXPATHLEN MAXPATHLEN
 #endif
 
 /* unistd.h defines _POSIX_VERSION on POSIX.1 systems. */
@@ -68,9 +68,9 @@
 #define DIRENT_LENGTH_COMPUTED 1
 
 #ifndef MAXNAMLEN
-#   define MC_MAXFILENAMELEN 256
+#define MC_MAXFILENAMELEN 256
 #else
-#   define MC_MAXFILENAMELEN MAXNAMLEN
+#define MC_MAXFILENAMELEN MAXNAMLEN
 #endif
 
 /*** enums ***************************************************************************************/

+ 0 - 2
lib/keybind/keymap.c

@@ -1,2 +0,0 @@
-
-

+ 1 - 1
lib/tty/key.c

@@ -49,7 +49,7 @@
 #include "win.h"                /* xterm_flag */
 
 #include "src/main.h"
-#include "src/layout.h"         /* winch_flag, mc_refresh() */
+#include "src/filemanager/layout.h"     /* winch_flag, mc_refresh() */
 #include "src/consaver/cons.saver.h"
 
 

+ 2 - 2
lib/util.c

@@ -48,8 +48,8 @@
 #include "lib/strutil.h"
 #include "lib/util.h"
 
-#include "src/filegui.h"
-#include "src/file.h"           /* copy_file_file() */
+#include "src/filemanager/filegui.h"
+#include "src/filemanager/file.h"       /* copy_file_file() */
 #include "src/main.h"           /* home_dir, eight_bit_clean */
 
 /*** global variables ****************************************************************************/

+ 2 - 2
lib/util.h

@@ -166,10 +166,10 @@ GList *list_append_unique (GList * list, char *text);
 /* Position saving and restoring */
 /* Load position for the given filename */
 void load_file_position (const char *filename, long *line, long *column, off_t * offset,
-                         GArray **bookmarks);
+                         GArray ** bookmarks);
 /* Save position for the given filename */
 void save_file_position (const char *filename, long line, long column, off_t offset,
-                         GArray *bookmarks);
+                         GArray * bookmarks);
 
 
 /* if ch is in [A-Za-z], returns the corresponding control character,

+ 1 - 1
lib/vfs/mc-vfs/direntry.c

@@ -45,7 +45,7 @@
 #include "lib/widget.h"         /* message() */
 #endif
 
-#include "src/layout.h"           /* print_vfs_message */
+#include "src/filemanager/layout.h"     /* print_vfs_message */
 
 #include "vfs-impl.h"
 #include "utilvfs.h"

+ 1 - 1
lib/vfs/mc-vfs/fish.c

@@ -62,7 +62,7 @@
 #include "lib/unixcompat.h"
 #include "lib/fileloc.h"
 
-#include "src/layout.h"         /* print_vfs_message */
+#include "src/filemanager/layout.h"     /* print_vfs_message */
 #include "src/execute.h"        /* pre_exec, post_exec */
 
 #include "vfs-impl.h"

+ 1 - 1
lib/vfs/mc-vfs/ftpfs.c

@@ -92,7 +92,7 @@ What to do with this?
 #include "lib/tty/tty.h"        /* enable/disable interrupt key */
 #include "lib/widget.h"         /* message() */
 
-#include "src/layout.h"         /* print_vfs_message */
+#include "src/filemanager/layout.h"     /* print_vfs_message */
 #include "src/history.h"
 #include "src/setup.h"          /* for load_anon_passwd */
 

Some files were not shown because too many files changed in this diff