-
From 98d18fc4398f431971a54018d5895fc9ef54a7e0 Mon Sep 17 00:00:00 2001
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Date: Tue, 12 Jan 2021 16:38:35 -0600
Subject: [PATCH] Resolve file name base conflicts to avoid libtool copy stage.
---
lib/Makefile.am | 2 +-
lib/charsets.c | 2 +-
lib/event/event.c | 2 +-
lib/event/manage.c | 2 +-
lib/filehighlight.h | 2 +-
lib/filehighlight/Makefile.am | 2 +-
lib/filehighlight/{common.c => fh-common.c} | 0
lib/filehighlight/get-color.c | 2 +-
lib/filehighlight/ini-file-read.c | 2 +-
lib/lock.c | 2 +-
lib/mcconfig.c | 0
lib/mcconfig/Makefile.am | 4 ++--
lib/mcconfig/common.h | 0
lib/mcconfig/{common.c => mcconf-common.c} | 2 +-
lib/mcconfig/{history.c => mcconf-history.c} | 2 +-
lib/mcconfig/paths.c | 2 +-
lib/search/Makefile.am | 6 +++---
lib/search/{search.c => main-search.c} | 2 +-
lib/search/regex.c | 2 +-
lib/search/{hex.c => srch-hex.c} | 0
lib/search/{lib.c => srch-lib.c} | 0
lib/shell.c | 2 +-
lib/skin/Makefile.am | 2 +-
lib/skin/ini-file.c | 2 +-
lib/skin/{common.c => skin-common.c} | 2 +-
lib/strutil/strutil.c | 2 +-
lib/{util.c => sub-util.c} | 2 +-
lib/{util.h => sub-util.h} | 0
lib/tty/Makefile.am | 2 +-
lib/tty/color-slang.c | 2 +-
lib/tty/key.c | 2 +-
lib/tty/keyxdef.c | 2 +-
lib/tty/{mouse.c => tty-mouse.c} | 2 +-
lib/tty/{mouse.h => tty-mouse.h} | 0
lib/tty/tty-ncurses.c | 2 +-
lib/tty/tty-slang.c | 4 ++--
lib/tty/tty.c | 2 +-
lib/tty/win.c | 2 +-
lib/utilunix.c | 2 +-
lib/vfs/direntry.c | 2 +-
lib/vfs/gc.c | 2 +-
lib/vfs/interface.c | 2 +-
lib/vfs/path.c | 2 +-
lib/vfs/utilvfs.c | 2 +-
lib/vfs/vfs.c | 2 +-
lib/widget/Makefile.am | 4 ++--
lib/widget/buttonbar.c | 2 +-
lib/widget/dialog.c | 4 ++--
lib/widget/frame.c | 2 +-
lib/widget/groupbox.c | 2 +-
lib/widget/{history.c => history-widget.c} | 0
lib/widget/input.c | 2 +-
lib/widget/input_complete.c | 2 +-
lib/widget/listbox.c | 2 +-
lib/widget/quick.c | 2 +-
lib/widget/quick.h | 2 +-
lib/widget/widget-common.h | 4 ++--
lib/widget/{mouse.c => widget-mouse.c} | 2 +-
lib/widget/{mouse.h => widget-mouse.h} | 2 +-
lib/widget/wtools.c | 2 +-
src/Makefile.am | 2 +-
src/args.c | 2 +-
src/clipboard.c | 2 +-
src/cons.handler.c | 2 +-
src/diffviewer/Makefile.am | 2 +-
src/diffviewer/{search.c => df-view-search.c} | 0
src/diffviewer/ydiff.c | 2 +-
src/editor/bookmark.c | 2 +-
src/editor/edit.c | 2 +-
src/editor/editcmd.c | 2 +-
src/editor/editdraw.c | 2 +-
src/editor/editwidget.c | 2 +-
src/editor/etags.c | 2 +-
src/editor/syntax.c | 2 +-
src/events_init.c | 2 +-
src/execute.c | 2 +-
src/file_history.c | 2 +-
src/filemanager/Makefile.am | 2 +-
src/filemanager/achown.c | 2 +-
src/filemanager/boxes.c | 6 +++---
src/filemanager/boxes.h | 2 +-
src/filemanager/chmod.c | 2 +-
src/filemanager/chown.c | 2 +-
src/filemanager/cmd.c | 4 ++--
src/filemanager/command.c | 2 +-
src/filemanager/ext.c | 2 +-
src/filemanager/file.c | 6 +++---
src/filemanager/filegui.c | 2 +-
src/filemanager/filenot.c | 2 +-
src/filemanager/find.c | 4 ++--
src/filemanager/{dir.c => fman-dir.c} | 4 ++--
src/filemanager/{dir.h => fman-dir.h} | 2 +-
src/filemanager/hotlist.c | 2 +-
src/filemanager/info.c | 2 +-
src/filemanager/layout.c | 6 +++---
src/filemanager/listmode.c | 2 +-
src/filemanager/midnight.c | 4 ++--
src/filemanager/panel.c | 4 ++--
src/filemanager/panel.h | 2 +-
src/filemanager/panelize.c | 4 ++--
src/filemanager/tree.c | 4 ++--
src/filemanager/treestore.c | 2 +-
src/help.c | 2 +-
src/learn.c | 2 +-
src/main.c | 4 ++--
src/setup.c | 4 ++--
src/subshell/Makefile.am | 2 +-
src/subshell/{common.c => subshell-common.c} | 2 +-
src/{background.c => task-background.c} | 2 +-
src/{background.h => task-background.h} | 0
src/textconf.c | 2 +-
src/usermenu.c | 4 ++--
src/util.c | 2 +-
src/vfs/cpio/cpio.c | 2 +-
src/vfs/extfs/extfs.c | 2 +-
src/vfs/fish/fish.c | 2 +-
src/vfs/ftpfs/ftpfs.c | 2 +-
src/vfs/sfs/sfs.c | 2 +-
src/vfs/sftpfs/Makefile.am | 4 ++--
src/vfs/sftpfs/config_parser.c | 2 +-
src/vfs/sftpfs/connection.c | 2 +-
src/vfs/sftpfs/internal.c | 2 +-
src/vfs/sftpfs/{dir.c => sftp-dir.c} | 2 +-
src/vfs/sftpfs/{file.c => sftp-file.c} | 2 +-
src/vfs/smbfs/smbfs.c | 2 +-
src/vfs/tar/tar.c | 2 +-
src/vfs/undelfs/undelfs.c | 2 +-
src/viewer/Makefile.am | 6 +++---
src/viewer/actions_cmd.c | 2 +-
src/viewer/ascii.c | 2 +-
src/viewer/datasource.c | 2 +-
src/viewer/display.c | 2 +-
src/viewer/growbuf.c | 2 +-
src/viewer/internal.h | 2 +-
src/viewer/mcviewer.c | 2 +-
src/viewer/{hex.c => view-hex.c} | 2 +-
src/viewer/{lib.c => view-lib.c} | 2 +-
src/viewer/{search.c => view-search.c} | 0
tests/lib/mc_build_filename.c | 2 +-
tests/lib/mc_realpath.c | 2 +-
tests/lib/name_quote.c | 2 +-
tests/lib/utilunix__my_system-fork_child.c | 2 +-
tests/lib/utilunix__my_system-fork_child_shell.c | 2 +-
tests/lib/utilunix__my_system-fork_fail.c | 2 +-
tests/lib/vfs/canonicalize_pathname.c | 2 +-
tests/lib/x_basename.c | 2 +-
tests/src/filemanager/get_random_hint.c | 2 +-
tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c | 2 +-
148 files changed, 163 insertions(+), 163 deletions(-)
rename lib/filehighlight/{common.c => fh-common.c} (100%)
create mode 100644 lib/mcconfig.c
create mode 100644 lib/mcconfig/common.h
rename lib/mcconfig/{common.c => mcconf-common.c} (99%)
rename lib/mcconfig/{history.c => mcconf-history.c} (99%)
rename lib/search/{search.c => main-search.c} (99%)
rename lib/search/{hex.c => srch-hex.c} (100%)
rename lib/search/{lib.c => srch-lib.c} (100%)
rename lib/skin/{common.c => skin-common.c} (99%)
rename lib/{util.c => sub-util.c} (99%)
rename lib/{util.h => sub-util.h} (100%)
rename lib/tty/{mouse.c => tty-mouse.c} (99%)
rename lib/tty/{mouse.h => tty-mouse.h} (100%)
rename lib/widget/{history.c => history-widget.c} (100%)
rename lib/widget/{mouse.c => widget-mouse.c} (99%)
rename lib/widget/{mouse.h => widget-mouse.h} (97%)
rename src/diffviewer/{search.c => df-view-search.c} (100%)
rename src/filemanager/{dir.c => fman-dir.c} (99%)
rename src/filemanager/{dir.h => fman-dir.h} (99%)
rename src/subshell/{common.c => subshell-common.c} (99%)
rename src/{background.c => task-background.c} (99%)
rename src/{background.h => task-background.h} (100%)
rename src/vfs/sftpfs/{dir.c => sftp-dir.c} (99%)
rename src/vfs/sftpfs/{file.c => sftp-file.c} (99%)
rename src/viewer/{hex.c => view-hex.c} (99%)
rename src/viewer/{lib.c => view-lib.c} (99%)
rename src/viewer/{search.c => view-search.c} (100%)
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 455f9ddf7..3f8c3386b 100644
a
|
b
|
SUBLIB_includes = \ |
26 | 26 | SRC_mc_utils = \ |
27 | 27 | utilunix.c utilunix.h \ |
28 | 28 | unixcompat.h \ |
29 | | util.c util.h |
| 29 | sub-util.c sub-util.h |
30 | 30 | |
31 | 31 | |
32 | 32 | libmc_la_SOURCES = \ |
-
diff --git a/lib/charsets.c b/lib/charsets.c
index 51b5aaf21..7c9652adb 100644
a
|
b
|
|
36 | 36 | #include "lib/global.h" |
37 | 37 | #include "lib/strutil.h" /* utf-8 functions */ |
38 | 38 | #include "lib/fileloc.h" |
39 | | #include "lib/util.h" /* whitespace() */ |
| 39 | #include "lib/sub-util.h" /* whitespace() */ |
40 | 40 | |
41 | 41 | #include "lib/charsets.h" |
42 | 42 | |
-
diff --git a/lib/event/event.c b/lib/event/event.c
index 3ca22977a..709ce5b9f 100644
a
|
b
|
|
27 | 27 | #include <config.h> |
28 | 28 | |
29 | 29 | #include "lib/global.h" |
30 | | #include "lib/util.h" |
| 30 | #include "lib/sub-util.h" |
31 | 31 | #include "lib/event.h" |
32 | 32 | |
33 | 33 | #include "internal.h" |
-
diff --git a/lib/event/manage.c b/lib/event/manage.c
index b2dda1d86..5828071a4 100644
a
|
b
|
|
27 | 27 | #include <config.h> |
28 | 28 | |
29 | 29 | #include "lib/global.h" |
30 | | #include "lib/util.h" |
| 30 | #include "lib/sub-util.h" |
31 | 31 | #include "lib/event.h" |
32 | 32 | |
33 | 33 | #include "internal.h" |
-
diff --git a/lib/filehighlight.h b/lib/filehighlight.h
index 980258898..9a635d5c2 100644
a
|
b
|
|
2 | 2 | #define MC__FILEHIGHLIGHT_H |
3 | 3 | |
4 | 4 | #include "lib/mcconfig.h" /* mc_config_t */ |
5 | | #include "lib/util.h" /* file_entry_t */ |
| 5 | #include "lib/sub-util.h" /* file_entry_t */ |
6 | 6 | |
7 | 7 | /*** typedefs(not structures) and defined constants **********************************************/ |
8 | 8 | |
-
diff --git a/lib/filehighlight/Makefile.am b/lib/filehighlight/Makefile.am
index 57a8d949f..842bdfcd8 100644
a
|
b
|
|
1 | 1 | noinst_LTLIBRARIES = libmcfilehighlight.la |
2 | 2 | |
3 | 3 | libmcfilehighlight_la_SOURCES = \ |
4 | | common.c \ |
| 4 | fh-common.c \ |
5 | 5 | get-color.c \ |
6 | 6 | ini-file-read.c \ |
7 | 7 | internal.h |
-
diff --git a/lib/filehighlight/common.c b/lib/filehighlight/fh-common.c
similarity index 100%
rename from lib/filehighlight/common.c
rename to lib/filehighlight/fh-common.c
diff --git a/lib/filehighlight/get-color.c b/lib/filehighlight/get-color.c
index dbb84c8b7..ac0c17a6a 100644
a
|
b
|
|
29 | 29 | |
30 | 30 | #include "lib/global.h" |
31 | 31 | #include "lib/skin.h" |
32 | | #include "lib/util.h" /* is_exe() */ |
| 32 | #include "lib/sub-util.h" /* is_exe() */ |
33 | 33 | #include "lib/filehighlight.h" |
34 | 34 | #include "internal.h" |
35 | 35 | |
-
diff --git a/lib/filehighlight/ini-file-read.c b/lib/filehighlight/ini-file-read.c
index 68befd3ca..9a3c9295e 100644
a
|
b
|
|
31 | 31 | #include "lib/fileloc.h" |
32 | 32 | #include "lib/strescape.h" |
33 | 33 | #include "lib/skin.h" |
34 | | #include "lib/util.h" /* exist_file() */ |
| 34 | #include "lib/sub-util.h" /* exist_file() */ |
35 | 35 | #include "lib/filehighlight.h" |
36 | 36 | |
37 | 37 | #include "internal.h" |
-
diff --git a/lib/lock.c b/lib/lock.c
index bdecb582d..124da81ac 100644
a
|
b
|
|
56 | 56 | |
57 | 57 | #include "lib/global.h" |
58 | 58 | #include "lib/vfs/vfs.h" |
59 | | #include "lib/util.h" /* tilde_expand() */ |
| 59 | #include "lib/sub-util.h" /* tilde_expand() */ |
60 | 60 | #include "lib/lock.h" |
61 | 61 | #include "lib/widget.h" /* query_dialog() */ |
62 | 62 | |
-
diff --git a/lib/mcconfig.c b/lib/mcconfig.c
new file mode 100644
index 000000000..e69de29bb
diff --git a/lib/mcconfig/Makefile.am b/lib/mcconfig/Makefile.am
index ad62b9132..8685e6209 100644
a
|
b
|
|
2 | 2 | noinst_LTLIBRARIES = libmcconfig.la |
3 | 3 | |
4 | 4 | libmcconfig_la_SOURCES = \ |
5 | | common.c \ |
| 5 | mcconf-common.c \ |
6 | 6 | get.c \ |
7 | | history.c \ |
| 7 | mcconf-history.c \ |
8 | 8 | set.c \ |
9 | 9 | paths.c |
10 | 10 | |
-
diff --git a/lib/mcconfig/common.h b/lib/mcconfig/common.h
new file mode 100644
index 000000000..e69de29bb
diff --git a/lib/mcconfig/common.c b/lib/mcconfig/mcconf-common.c
similarity index 99%
rename from lib/mcconfig/common.c
rename to lib/mcconfig/mcconf-common.c
index 5affb45b4..0bdf34978 100644
old
|
new
|
|
29 | 29 | |
30 | 30 | #include "lib/global.h" |
31 | 31 | #include "lib/vfs/vfs.h" /* mc_stat */ |
32 | | #include "lib/util.h" |
| 32 | #include "lib/sub-util.h" |
33 | 33 | |
34 | 34 | #include "lib/mcconfig.h" |
35 | 35 | |
-
diff --git a/lib/mcconfig/history.c b/lib/mcconfig/mcconf-history.c
similarity index 99%
rename from lib/mcconfig/history.c
rename to lib/mcconfig/mcconf-history.c
index c1a00e297..8b2882f0f 100644
old
|
new
|
|
41 | 41 | |
42 | 42 | #include "lib/fileloc.h" /* MC_HISTORY_FILE */ |
43 | 43 | #include "lib/strutil.h" |
44 | | #include "lib/util.h" /* list_append_unique */ |
| 44 | #include "lib/sub-util.h" /* list_append_unique */ |
45 | 45 | |
46 | 46 | #include "lib/mcconfig.h" |
47 | 47 | |
-
diff --git a/lib/mcconfig/paths.c b/lib/mcconfig/paths.c
index e111dc7a2..dae8297d0 100644
a
|
b
|
|
32 | 32 | #include "lib/global.h" |
33 | 33 | #include "lib/fileloc.h" |
34 | 34 | #include "lib/vfs/vfs.h" |
35 | | #include "lib/util.h" /* unix_error_string() */ |
| 35 | #include "lib/sub-util.h" /* unix_error_string() */ |
36 | 36 | |
37 | 37 | #include "lib/mcconfig.h" |
38 | 38 | |
-
diff --git a/lib/search/Makefile.am b/lib/search/Makefile.am
index ed9d3aadb..5abccd695 100644
a
|
b
|
|
1 | 1 | noinst_LTLIBRARIES = libsearch.la |
2 | 2 | |
3 | 3 | libsearch_la_SOURCES = \ |
4 | | search.c \ |
| 4 | main-search.c \ |
5 | 5 | internal.h \ |
6 | | lib.c \ |
| 6 | srch-lib.c \ |
7 | 7 | normal.c \ |
8 | 8 | regex.c \ |
9 | 9 | glob.c \ |
10 | | hex.c |
| 10 | srch-hex.c |
11 | 11 | |
12 | 12 | AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CPPFLAGS) |
-
diff --git a/lib/search/search.c b/lib/search/main-search.c
similarity index 99%
rename from lib/search/search.c
rename to lib/search/main-search.c
index 963f3b108..dd6129717 100644
old
|
new
|
|
34 | 34 | #include "lib/global.h" |
35 | 35 | #include "lib/strutil.h" |
36 | 36 | #include "lib/search.h" |
37 | | #include "lib/util.h" |
| 37 | #include "lib/sub-util.h" |
38 | 38 | #ifdef HAVE_CHARSET |
39 | 39 | #include "lib/charsets.h" |
40 | 40 | #endif |
-
diff --git a/lib/search/regex.c b/lib/search/regex.c
index 8e6bbb4dd..2d2285e35 100644
a
|
b
|
|
34 | 34 | #include "lib/strutil.h" |
35 | 35 | #include "lib/search.h" |
36 | 36 | #include "lib/strescape.h" |
37 | | #include "lib/util.h" /* MC_PTR_FREE */ |
| 37 | #include "lib/sub-util.h" /* MC_PTR_FREE */ |
38 | 38 | |
39 | 39 | #include "internal.h" |
40 | 40 | |
-
diff --git a/lib/search/hex.c b/lib/search/srch-hex.c
similarity index 100%
rename from lib/search/hex.c
rename to lib/search/srch-hex.c
diff --git a/lib/search/lib.c b/lib/search/srch-lib.c
similarity index 100%
rename from lib/search/lib.c
rename to lib/search/srch-lib.c
diff --git a/lib/shell.c b/lib/shell.c
index c826c96a3..165873e74 100644
a
|
b
|
|
35 | 35 | #include <stdlib.h> |
36 | 36 | |
37 | 37 | #include "global.h" |
38 | | #include "util.h" |
| 38 | #include "sub-util.h" |
39 | 39 | |
40 | 40 | |
41 | 41 | /*** global variables ****************************************************************************/ |
-
diff --git a/lib/skin/Makefile.am b/lib/skin/Makefile.am
index 04f12ed1d..0c8b3b693 100644
a
|
b
|
noinst_LTLIBRARIES = libmcskin.la |
3 | 3 | libmcskin_la_SOURCES = \ |
4 | 4 | colors.c \ |
5 | 5 | colors-old.c \ |
6 | | common.c \ |
| 6 | skin-common.c \ |
7 | 7 | hc-skins.c \ |
8 | 8 | ini-file.c \ |
9 | 9 | lines.c \ |
-
diff --git a/lib/skin/ini-file.c b/lib/skin/ini-file.c
index 2b62b4b3d..9754a0d5b 100644
a
|
b
|
|
32 | 32 | |
33 | 33 | #include "internal.h" |
34 | 34 | #include "lib/fileloc.h" |
35 | | #include "lib/util.h" /* exist_file() */ |
| 35 | #include "lib/sub-util.h" /* exist_file() */ |
36 | 36 | |
37 | 37 | /*** global variables ****************************************************************************/ |
38 | 38 | |
-
diff --git a/lib/skin/common.c b/lib/skin/skin-common.c
similarity index 99%
rename from lib/skin/common.c
rename to lib/skin/skin-common.c
index 2092eee1e..b7abe4a45 100644
old
|
new
|
|
29 | 29 | #include <stdlib.h> |
30 | 30 | |
31 | 31 | #include "internal.h" |
32 | | #include "lib/util.h" |
| 32 | #include "lib/sub-util.h" |
33 | 33 | |
34 | 34 | #include "lib/tty/color.h" /* tty_use_256colors(); */ |
35 | 35 | |
-
diff --git a/lib/strutil/strutil.c b/lib/strutil/strutil.c
index cf11d00d8..4b371466c 100644
a
|
b
|
|
31 | 31 | #include <errno.h> |
32 | 32 | |
33 | 33 | #include "lib/global.h" |
34 | | #include "lib/util.h" /* MC_PTR_FREE */ |
| 34 | #include "lib/sub-util.h" /* MC_PTR_FREE */ |
35 | 35 | #include "lib/strutil.h" |
36 | 36 | |
37 | 37 | /*** global variables ****************************************************************************/ |
-
diff --git a/lib/util.c b/lib/sub-util.c
similarity index 99%
rename from lib/util.c
rename to lib/sub-util.c
index 1a9bfd16f..a48133a80 100644
old
|
new
|
|
50 | 50 | #include "lib/fileloc.h" |
51 | 51 | #include "lib/vfs/vfs.h" |
52 | 52 | #include "lib/strutil.h" |
53 | | #include "lib/util.h" |
| 53 | #include "lib/sub-util.h" |
54 | 54 | #include "lib/timer.h" |
55 | 55 | |
56 | 56 | /*** global variables ****************************************************************************/ |
-
diff --git a/lib/util.h b/lib/sub-util.h
similarity index 100%
rename from lib/util.h
rename to lib/sub-util.h
diff --git a/lib/tty/Makefile.am b/lib/tty/Makefile.am
index d4260fee8..ae717033a 100644
a
|
b
|
TTY_SRC = \ |
15 | 15 | color-internal.c color-internal.h \ |
16 | 16 | color.c color.h \ |
17 | 17 | key.c key.h keyxdef.c \ |
18 | | mouse.c mouse.h \ |
| 18 | tty-mouse.c tty-mouse.h \ |
19 | 19 | tty-internal.c tty-internal.h \ |
20 | 20 | tty.c tty.h \ |
21 | 21 | win.c win.h |
-
diff --git a/lib/tty/color-slang.c b/lib/tty/color-slang.c
index 6a0993e7d..53a4cbb30 100644
a
|
b
|
|
36 | 36 | #include <sys/types.h> /* size_t */ |
37 | 37 | |
38 | 38 | #include "lib/global.h" |
39 | | #include "lib/util.h" /* whitespace() */ |
| 39 | #include "lib/sub-util.h" /* whitespace() */ |
40 | 40 | |
41 | 41 | #include "tty-slang.h" |
42 | 42 | #include "color.h" /* variables */ |
-
diff --git a/lib/tty/key.c b/lib/tty/key.c
index 4abfc71d7..58a2f018b 100644
a
|
b
|
|
54 | 54 | |
55 | 55 | #include "tty.h" |
56 | 56 | #include "tty-internal.h" /* mouse_enabled */ |
57 | | #include "mouse.h" |
| 57 | #include "tty-mouse.h" |
58 | 58 | #include "key.h" |
59 | 59 | |
60 | 60 | #include "lib/widget.h" /* mc_refresh() */ |
-
diff --git a/lib/tty/keyxdef.c b/lib/tty/keyxdef.c
index cb1c8becc..b4d375e3e 100644
a
|
b
|
|
49 | 49 | #include "lib/global.h" |
50 | 50 | |
51 | 51 | #include "tty.h" |
52 | | #include "mouse.h" /* required before key.h */ |
| 52 | #include "tty-mouse.h" /* required before key.h */ |
53 | 53 | #include "key.h" |
54 | 54 | |
55 | 55 | #if defined (__QNX__) && !defined (__QNXNTO__) |
-
diff --git a/lib/tty/mouse.c b/lib/tty/tty-mouse.c
similarity index 99%
rename from lib/tty/mouse.c
rename to lib/tty/tty-mouse.c
index 1bba0cc58..d58210b47 100644
old
|
new
|
|
39 | 39 | |
40 | 40 | #include "tty.h" |
41 | 41 | #include "tty-internal.h" /* mouse_enabled */ |
42 | | #include "mouse.h" |
| 42 | #include "tty-mouse.h" |
43 | 43 | #include "key.h" /* define sequence */ |
44 | 44 | |
45 | 45 | /*** global variables ****************************************************************************/ |
-
diff --git a/lib/tty/mouse.h b/lib/tty/tty-mouse.h
similarity index 100%
rename from lib/tty/mouse.h
rename to lib/tty/tty-mouse.h
diff --git a/lib/tty/tty-ncurses.c b/lib/tty/tty-ncurses.c
index 03235cd5b..bc9a24a1b 100644
a
|
b
|
|
51 | 51 | #include "color.h" /* tty_setcolor */ |
52 | 52 | #include "color-internal.h" |
53 | 53 | #include "key.h" |
54 | | #include "mouse.h" |
| 54 | #include "tty-mouse.h" |
55 | 55 | #include "win.h" |
56 | 56 | |
57 | 57 | /* include at last !!! */ |
-
diff --git a/lib/tty/tty-slang.c b/lib/tty/tty-slang.c
index 6bf22a90d..1c135bc68 100644
a
|
b
|
|
43 | 43 | |
44 | 44 | #include "lib/global.h" |
45 | 45 | #include "lib/strutil.h" /* str_term_form */ |
46 | | #include "lib/util.h" /* is_printable() */ |
| 46 | #include "lib/sub-util.h" /* is_printable() */ |
47 | 47 | |
48 | 48 | #include "tty-internal.h" /* mc_tty_normalize_from_utf8() */ |
49 | 49 | #include "tty.h" |
50 | 50 | #include "color.h" |
51 | 51 | #include "color-slang.h" |
52 | 52 | #include "color-internal.h" |
53 | | #include "mouse.h" /* Gpm_Event is required in key.h */ |
| 53 | #include "tty-mouse.h" /* Gpm_Event is required in key.h */ |
54 | 54 | #include "key.h" /* define_sequence */ |
55 | 55 | #include "win.h" |
56 | 56 | |
-
diff --git a/lib/tty/tty.c b/lib/tty/tty.c
index d4a731343..cdf28f5a4 100644
a
|
b
|
|
56 | 56 | |
57 | 57 | #include "tty.h" |
58 | 58 | #include "tty-internal.h" |
59 | | #include "mouse.h" /* use_mouse_p */ |
| 59 | #include "tty-mouse.h" /* use_mouse_p */ |
60 | 60 | #include "win.h" |
61 | 61 | |
62 | 62 | /*** global variables ****************************************************************************/ |
-
diff --git a/lib/tty/win.c b/lib/tty/win.c
index d65ffe64e..53fdb612d 100644
a
|
b
|
|
41 | 41 | #endif |
42 | 42 | |
43 | 43 | #include "lib/global.h" |
44 | | #include "lib/util.h" /* is_printable() */ |
| 44 | #include "lib/sub-util.h" /* is_printable() */ |
45 | 45 | #include "tty-internal.h" |
46 | 46 | #include "tty.h" /* tty_gotoyx, tty_print_char */ |
47 | 47 | #include "win.h" |
-
diff --git a/lib/utilunix.c b/lib/utilunix.c
index bbcf86b78..0a64fba51 100644
a
|
b
|
|
67 | 67 | #include "lib/unixcompat.h" |
68 | 68 | #include "lib/vfs/vfs.h" /* VFS_ENCODING_PREFIX */ |
69 | 69 | #include "lib/strutil.h" /* str_move() */ |
70 | | #include "lib/util.h" |
| 70 | #include "lib/sub-util.h" |
71 | 71 | #include "lib/widget.h" /* message() */ |
72 | 72 | #include "lib/vfs/xdirentry.h" |
73 | 73 | |
-
diff --git a/lib/vfs/direntry.c b/lib/vfs/direntry.c
index 87e71a660..3cec4edd3 100644
a
|
b
|
|
69 | 69 | #include "lib/global.h" |
70 | 70 | |
71 | 71 | #include "lib/tty/tty.h" /* enable/disable interrupt key */ |
72 | | #include "lib/util.h" /* custom_canonicalize_pathname() */ |
| 72 | #include "lib/sub-util.h" /* custom_canonicalize_pathname() */ |
73 | 73 | #include "lib/timer.h" |
74 | 74 | #if 0 |
75 | 75 | #include "lib/widget.h" /* message() */ |
-
diff --git a/lib/vfs/gc.c b/lib/vfs/gc.c
index 5090aaacb..54378184b 100644
a
|
b
|
|
43 | 43 | |
44 | 44 | #include "lib/global.h" |
45 | 45 | #include "lib/event.h" |
46 | | #include "lib/util.h" /* MC_PTR_FREE */ |
| 46 | #include "lib/sub-util.h" /* MC_PTR_FREE */ |
47 | 47 | #include "lib/timer.h" |
48 | 48 | |
49 | 49 | #include "vfs.h" |
-
diff --git a/lib/vfs/interface.c b/lib/vfs/interface.c
index ca29653a2..666b83411 100644
a
|
b
|
|
51 | 51 | |
52 | 52 | #include "lib/widget.h" /* message() */ |
53 | 53 | #include "lib/strutil.h" /* str_crt_conv_from() */ |
54 | | #include "lib/util.h" |
| 54 | #include "lib/sub-util.h" |
55 | 55 | |
56 | 56 | #include "vfs.h" |
57 | 57 | #include "utilvfs.h" |
-
diff --git a/lib/vfs/path.c b/lib/vfs/path.c
index 49553198f..f5630e6bd 100644
a
|
b
|
|
36 | 36 | |
37 | 37 | #include "lib/global.h" |
38 | 38 | #include "lib/strutil.h" |
39 | | #include "lib/util.h" /* mc_build_filename() */ |
| 39 | #include "lib/sub-util.h" /* mc_build_filename() */ |
40 | 40 | #include "lib/serialize.h" |
41 | 41 | |
42 | 42 | #include "vfs.h" |
-
diff --git a/lib/vfs/utilvfs.c b/lib/vfs/utilvfs.c
index ce3213c7b..fea5db04d 100644
a
|
b
|
|
40 | 40 | |
41 | 41 | #include "lib/global.h" |
42 | 42 | #include "lib/unixcompat.h" |
43 | | #include "lib/util.h" /* mc_mkstemps() */ |
| 43 | #include "lib/sub-util.h" /* mc_mkstemps() */ |
44 | 44 | #include "lib/widget.h" /* message() */ |
45 | 45 | #include "lib/strutil.h" /* INVALID_CONV */ |
46 | 46 | |
-
diff --git a/lib/vfs/vfs.c b/lib/vfs/vfs.c
index 0b948846c..a4bec8c83 100644
a
|
b
|
|
56 | 56 | |
57 | 57 | #include "lib/global.h" |
58 | 58 | #include "lib/strutil.h" |
59 | | #include "lib/util.h" |
| 59 | #include "lib/sub-util.h" |
60 | 60 | #include "lib/widget.h" /* message() */ |
61 | 61 | #include "lib/event.h" |
62 | 62 | |
-
diff --git a/lib/widget/Makefile.am b/lib/widget/Makefile.am
index 90f023bbc..00d5f1835 100644
a
|
b
|
libmcwidget_la_SOURCES = \ |
13 | 13 | group.c group.h \ |
14 | 14 | groupbox.c groupbox.h \ |
15 | 15 | hline.c hline.h \ |
16 | | history.c history.h \ |
| 16 | history-widget.c history-widget.h \ |
17 | 17 | input.c input.h \ |
18 | 18 | input_complete.c \ |
19 | 19 | listbox-window.c listbox-window.h \ |
20 | 20 | listbox.c listbox.h \ |
21 | 21 | label.c label.h \ |
22 | 22 | menu.c menu.h \ |
23 | | mouse.c mouse.h \ |
| 23 | widget-mouse.c widget-mouse.h \ |
24 | 24 | quick.c quick.h \ |
25 | 25 | radio.c radio.h \ |
26 | 26 | rect.c rect.h \ |
-
diff --git a/lib/widget/buttonbar.c b/lib/widget/buttonbar.c
index b52a2b887..f0f37b3cd 100644
a
|
b
|
|
43 | 43 | #include "lib/tty/key.h" /* XCTRL and ALT macros */ |
44 | 44 | #include "lib/skin.h" |
45 | 45 | #include "lib/strutil.h" |
46 | | #include "lib/util.h" |
| 46 | #include "lib/sub-util.h" |
47 | 47 | #include "lib/widget.h" |
48 | 48 | |
49 | 49 | /*** global variables ****************************************************************************/ |
-
diff --git a/lib/widget/dialog.c b/lib/widget/dialog.c
index f984e03af..4c29e5787 100644
a
|
b
|
|
42 | 42 | #include "lib/strutil.h" |
43 | 43 | #include "lib/fileloc.h" /* MC_HISTORY_FILE */ |
44 | 44 | #include "lib/event.h" /* mc_event_raise() */ |
45 | | #include "lib/util.h" /* MC_PTR_FREE */ |
| 45 | #include "lib/sub-util.h" /* MC_PTR_FREE */ |
46 | 46 | #include "lib/mcconfig.h" /* num_history_items_recorded */ |
47 | 47 | |
48 | 48 | #include "lib/widget.h" |
49 | | #include "lib/widget/mouse.h" |
| 49 | #include "lib/widget/widget-mouse.h" |
50 | 50 | |
51 | 51 | /*** global variables ****************************************************************************/ |
52 | 52 | |
-
diff --git a/lib/widget/frame.c b/lib/widget/frame.c
index 5d5a5acdf..633f7cb11 100644
a
|
b
|
|
36 | 36 | #include "lib/tty/color.h" |
37 | 37 | #include "lib/skin.h" |
38 | 38 | #include "lib/strutil.h" |
39 | | #include "lib/util.h" /* MC_PTR_FREE */ |
| 39 | #include "lib/sub-util.h" /* MC_PTR_FREE */ |
40 | 40 | #include "lib/widget.h" |
41 | 41 | |
42 | 42 | /*** global variables ****************************************************************************/ |
-
diff --git a/lib/widget/groupbox.c b/lib/widget/groupbox.c
index fe16e6e28..e21d28b98 100644
a
|
b
|
|
39 | 39 | #include "lib/tty/tty.h" |
40 | 40 | #include "lib/tty/color.h" |
41 | 41 | #include "lib/skin.h" |
42 | | #include "lib/util.h" |
| 42 | #include "lib/sub-util.h" |
43 | 43 | #include "lib/widget.h" |
44 | 44 | |
45 | 45 | /*** global variables ****************************************************************************/ |
-
diff --git a/lib/widget/history.c b/lib/widget/history-widget.c
similarity index 100%
rename from lib/widget/history.c
rename to lib/widget/history-widget.c
diff --git a/lib/widget/input.c b/lib/widget/input.c
index b5cec7e6b..6e83c8e72 100644
a
|
b
|
|
45 | 45 | #include "lib/fileloc.h" |
46 | 46 | #include "lib/skin.h" |
47 | 47 | #include "lib/strutil.h" |
48 | | #include "lib/util.h" |
| 48 | #include "lib/sub-util.h" |
49 | 49 | #include "lib/widget.h" |
50 | 50 | #include "lib/event.h" /* mc_event_raise() */ |
51 | 51 | #include "lib/mcconfig.h" /* mc_config_history_*() */ |
-
diff --git a/lib/widget/input_complete.c b/lib/widget/input_complete.c
index 59a994d62..0eb7b5f7c 100644
a
|
b
|
|
50 | 50 | #include "lib/vfs/vfs.h" |
51 | 51 | #include "lib/strescape.h" |
52 | 52 | #include "lib/strutil.h" |
53 | | #include "lib/util.h" |
| 53 | #include "lib/sub-util.h" |
54 | 54 | #include "lib/widget.h" |
55 | 55 | |
56 | 56 | /*** global variables ****************************************************************************/ |
-
diff --git a/lib/widget/listbox.c b/lib/widget/listbox.c
index e20c1a82d..f33164fec 100644
a
|
b
|
|
41 | 41 | #include "lib/tty/tty.h" |
42 | 42 | #include "lib/skin.h" |
43 | 43 | #include "lib/strutil.h" |
44 | | #include "lib/util.h" /* Q_() */ |
| 44 | #include "lib/sub-util.h" /* Q_() */ |
45 | 45 | #include "lib/widget.h" |
46 | 46 | |
47 | 47 | /*** global variables ****************************************************************************/ |
-
diff --git a/lib/widget/quick.c b/lib/widget/quick.c
index 434def9ee..a4ed84171 100644
a
|
b
|
|
38 | 38 | |
39 | 39 | #include "lib/global.h" |
40 | 40 | #include "lib/strutil.h" /* str_term_width1() */ |
41 | | #include "lib/util.h" /* tilde_expand() */ |
| 41 | #include "lib/sub-util.h" /* tilde_expand() */ |
42 | 42 | #include "lib/widget.h" |
43 | 43 | |
44 | 44 | /*** global variables ****************************************************************************/ |
-
diff --git a/lib/widget/quick.h b/lib/widget/quick.h
index 86c027c88..bffbdf41d 100644
a
|
b
|
|
5 | 5 | #ifndef MC__QUICK_H |
6 | 6 | #define MC__QUICK_H |
7 | 7 | |
8 | | #include "lib/tty/mouse.h" |
| 8 | #include "lib/tty/tty-mouse.h" |
9 | 9 | |
10 | 10 | /*** typedefs(not structures) and defined constants **********************************************/ |
11 | 11 | |
-
diff --git a/lib/widget/widget-common.h b/lib/widget/widget-common.h
index a20bcd671..a0d5236c6 100644
a
|
b
|
|
7 | 7 | #define MC__WIDGET_INTERNAL_H |
8 | 8 | |
9 | 9 | #include "lib/keybind.h" /* global_keymap_t */ |
10 | | #include "lib/tty/mouse.h" |
11 | | #include "lib/widget/mouse.h" /* mouse_msg_t, mouse_event_t */ |
| 10 | #include "lib/tty/tty-mouse.h" |
| 11 | #include "lib/widget/widget-mouse.h" /* mouse_msg_t, mouse_event_t */ |
12 | 12 | |
13 | 13 | /*** typedefs(not structures) and defined constants **********************************************/ |
14 | 14 | |
-
diff --git a/lib/widget/mouse.c b/lib/widget/widget-mouse.c
similarity index 99%
rename from lib/widget/mouse.c
rename to lib/widget/widget-mouse.c
index 1123738c9..f1f4a483c 100644
old
|
new
|
|
32 | 32 | #include "lib/global.h" |
33 | 33 | #include "lib/widget.h" |
34 | 34 | |
35 | | #include "lib/widget/mouse.h" |
| 35 | #include "lib/widget/widget-mouse.h" |
36 | 36 | |
37 | 37 | /*** global variables ****************************************************************************/ |
38 | 38 | |
-
diff --git a/lib/widget/mouse.h b/lib/widget/widget-mouse.h
similarity index 97%
rename from lib/widget/mouse.h
rename to lib/widget/widget-mouse.h
index 44e7b238b..ee209357e 100644
old
|
new
|
|
10 | 10 | #ifndef MC__WIDGET_MOUSE_H |
11 | 11 | #define MC__WIDGET_MOUSE_H |
12 | 12 | |
13 | | #include "lib/tty/mouse.h" /* Gpm_Event */ |
| 13 | #include "lib/tty/tty-mouse.h" /* Gpm_Event */ |
14 | 14 | |
15 | 15 | /*** enums ***************************************************************************************/ |
16 | 16 | |
-
diff --git a/lib/widget/wtools.c b/lib/widget/wtools.c
index 00cc50df7..a1bbb60f1 100644
a
|
b
|
|
40 | 40 | #include "lib/tty/tty.h" |
41 | 41 | #include "lib/tty/key.h" /* tty_getch() */ |
42 | 42 | #include "lib/strutil.h" |
43 | | #include "lib/util.h" /* tilde_expand() */ |
| 43 | #include "lib/sub-util.h" /* tilde_expand() */ |
44 | 44 | #include "lib/widget.h" |
45 | 45 | #include "lib/event.h" /* mc_event_raise() */ |
46 | 46 | |
-
diff --git a/src/Makefile.am b/src/Makefile.am
index e883ab4bd..d0f11af26 100644
a
|
b
|
endif |
88 | 88 | |
89 | 89 | |
90 | 90 | if ENABLE_BACKGROUND |
91 | | libinternal_la_SOURCES += background.c background.h |
| 91 | libinternal_la_SOURCES += task-background.c task-background.h |
92 | 92 | endif |
93 | 93 | |
94 | 94 | EXTRA_DIST = $(SRC_maintainer) $(SRC_charset) |
-
diff --git a/src/args.c b/src/args.c
index 4cb0f67fd..9561ea559 100644
a
|
b
|
|
32 | 32 | #include "lib/tty/tty.h" |
33 | 33 | #include "lib/strutil.h" |
34 | 34 | #include "lib/vfs/vfs.h" |
35 | | #include "lib/util.h" /* x_basename() */ |
| 35 | #include "lib/sub-util.h" /* x_basename() */ |
36 | 36 | |
37 | 37 | #ifdef ENABLE_VFS_SMB |
38 | 38 | #include "src/vfs/smbfs/smbfs.h" /* smbfs_set_debugf() */ |
-
diff --git a/src/clipboard.c b/src/clipboard.c
index c277ae66b..14cb8c3f3 100644
a
|
b
|
|
33 | 33 | #include "lib/global.h" |
34 | 34 | #include "lib/fileloc.h" |
35 | 35 | #include "lib/mcconfig.h" |
36 | | #include "lib/util.h" |
| 36 | #include "lib/sub-util.h" |
37 | 37 | #include "lib/event.h" |
38 | 38 | |
39 | 39 | #include "lib/vfs/vfs.h" |
-
diff --git a/src/cons.handler.c b/src/cons.handler.c
index 79297c2a7..d3ef02b40 100644
a
|
b
|
|
44 | 44 | #include "lib/tty/tty.h" |
45 | 45 | #include "lib/tty/color.h" /* tty_set_normal_attrs */ |
46 | 46 | #include "lib/tty/win.h" |
47 | | #include "lib/util.h" /* mc_build_filename() */ |
| 47 | #include "lib/sub-util.h" /* mc_build_filename() */ |
48 | 48 | |
49 | 49 | #include "consaver/cons.saver.h" |
50 | 50 | |
-
diff --git a/src/diffviewer/Makefile.am b/src/diffviewer/Makefile.am
index 58e8e5b04..804ebca81 100644
a
|
b
|
noinst_LTLIBRARIES = libdiffviewer.la |
2 | 2 | |
3 | 3 | libdiffviewer_la_SOURCES = \ |
4 | 4 | internal.h \ |
5 | | search.c \ |
| 5 | df-view-search.c \ |
6 | 6 | ydiff.c ydiff.h |
7 | 7 | |
8 | 8 | AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CPPFLAGS) |
-
diff --git a/src/diffviewer/search.c b/src/diffviewer/df-view-search.c
similarity index 100%
rename from src/diffviewer/search.c
rename to src/diffviewer/df-view-search.c
diff --git a/src/diffviewer/ydiff.c b/src/diffviewer/ydiff.c
index 43c758971..92be19c01 100644
a
|
b
|
|
41 | 41 | #include "lib/tty/key.h" |
42 | 42 | #include "lib/skin.h" /* EDITOR_NORMAL_COLOR */ |
43 | 43 | #include "lib/vfs/vfs.h" /* mc_opendir, mc_readdir, mc_closedir, */ |
44 | | #include "lib/util.h" |
| 44 | #include "lib/sub-util.h" |
45 | 45 | #include "lib/widget.h" |
46 | 46 | #include "lib/strutil.h" |
47 | 47 | #include "lib/strescape.h" /* strutils_glob_escape() */ |
-
diff --git a/src/editor/bookmark.c b/src/editor/bookmark.c
index 4fef88584..746e36041 100644
a
|
b
|
|
43 | 43 | #include <unistd.h> |
44 | 44 | |
45 | 45 | #include "lib/global.h" |
46 | | #include "lib/util.h" /* MAX_SAVED_BOOKMARKS */ |
| 46 | #include "lib/sub-util.h" /* MAX_SAVED_BOOKMARKS */ |
47 | 47 | |
48 | 48 | #include "editwidget.h" |
49 | 49 | |
-
diff --git a/src/editor/edit.c b/src/editor/edit.c
index e13be389a..edcfeaf54 100644
a
|
b
|
|
52 | 52 | #include "lib/fileloc.h" /* EDIT_HOME_BLOCK_FILE */ |
53 | 53 | #include "lib/vfs/vfs.h" |
54 | 54 | #include "lib/strutil.h" /* utf string functions */ |
55 | | #include "lib/util.h" /* load_file_position(), save_file_position() */ |
| 55 | #include "lib/sub-util.h" /* load_file_position(), save_file_position() */ |
56 | 56 | #include "lib/timefmt.h" /* time formatting */ |
57 | 57 | #include "lib/lock.h" |
58 | 58 | #include "lib/widget.h" |
-
diff --git a/src/editor/editcmd.c b/src/editor/editcmd.c
index e2b904604..62f10650b 100644
a
|
b
|
|
53 | 53 | #include "lib/strutil.h" /* utf string functions */ |
54 | 54 | #include "lib/fileloc.h" |
55 | 55 | #include "lib/lock.h" |
56 | | #include "lib/util.h" /* tilde_expand() */ |
| 56 | #include "lib/sub-util.h" /* tilde_expand() */ |
57 | 57 | #include "lib/vfs/vfs.h" |
58 | 58 | #include "lib/widget.h" |
59 | 59 | #include "lib/event.h" /* mc_event_raise() */ |
-
diff --git a/src/editor/editdraw.c b/src/editor/editdraw.c
index 564e18d6c..f3849ec25 100644
a
|
b
|
|
47 | 47 | #include "lib/tty/key.h" /* is_idle() */ |
48 | 48 | #include "lib/skin.h" |
49 | 49 | #include "lib/strutil.h" /* utf string functions */ |
50 | | #include "lib/util.h" /* is_printable() */ |
| 50 | #include "lib/sub-util.h" /* is_printable() */ |
51 | 51 | #include "lib/widget.h" |
52 | 52 | #ifdef HAVE_CHARSET |
53 | 53 | #include "lib/charsets.h" |
-
diff --git a/src/editor/editwidget.c b/src/editor/editwidget.c
index 18ac00e66..090dd8d7f 100644
a
|
b
|
|
47 | 47 | #include "lib/skin.h" |
48 | 48 | #include "lib/fileloc.h" /* EDIT_HOME_DIR */ |
49 | 49 | #include "lib/strutil.h" /* str_term_trim() */ |
50 | | #include "lib/util.h" /* mc_build_filename() */ |
| 50 | #include "lib/sub-util.h" /* mc_build_filename() */ |
51 | 51 | #include "lib/widget.h" |
52 | 52 | #include "lib/mcconfig.h" |
53 | 53 | #include "lib/event.h" /* mc_event_raise() */ |
-
diff --git a/src/editor/etags.c b/src/editor/etags.c
index 35c7a2f04..14ae67122 100644
a
|
b
|
|
38 | 38 | #include <ctype.h> |
39 | 39 | |
40 | 40 | #include "lib/global.h" |
41 | | #include "lib/util.h" /* canonicalize_pathname() */ |
| 41 | #include "lib/sub-util.h" /* canonicalize_pathname() */ |
42 | 42 | |
43 | 43 | #include "etags.h" |
44 | 44 | |
-
diff --git a/src/editor/syntax.c b/src/editor/syntax.c
index 93aa7512c..91be0a396 100644
a
|
b
|
|
58 | 58 | #include "lib/skin.h" |
59 | 59 | #include "lib/fileloc.h" /* EDIT_HOME_DIR, EDIT_HOME_SYNTAX_FILE */ |
60 | 60 | #include "lib/strutil.h" /* utf string functions */ |
61 | | #include "lib/util.h" |
| 61 | #include "lib/sub-util.h" |
62 | 62 | #include "lib/widget.h" /* message() */ |
63 | 63 | |
64 | 64 | #include "edit-impl.h" |
-
diff --git a/src/events_init.c b/src/events_init.c
index a1ba78be3..f7f982c69 100644
a
|
b
|
|
30 | 30 | #include "lib/event.h" |
31 | 31 | |
32 | 32 | #ifdef ENABLE_BACKGROUND |
33 | | #include "background.h" /* (background_parent_call), background_parent_call_string() */ |
| 33 | #include "task-background.h" /* (background_parent_call), background_parent_call_string() */ |
34 | 34 | #endif /* ENABLE_BACKGROUND */ |
35 | 35 | #include "clipboard.h" /* clipboard events */ |
36 | 36 | #include "execute.h" /* execute_suspend() */ |
-
diff --git a/src/execute.c b/src/execute.c
index f35c53d94..2459e3a40 100644
a
|
b
|
|
41 | 41 | #include "lib/tty/win.h" |
42 | 42 | #include "lib/vfs/vfs.h" |
43 | 43 | #include "lib/mcconfig.h" |
44 | | #include "lib/util.h" |
| 44 | #include "lib/sub-util.h" |
45 | 45 | #include "lib/strutil.h" /* str_replace_all_substrings() */ |
46 | 46 | #include "lib/widget.h" |
47 | 47 | |
-
diff --git a/src/file_history.c b/src/file_history.c
index 4304655aa..4989bda3b 100644
a
|
b
|
|
32 | 32 | #include "lib/fileloc.h" /* MC_FILEPOS_FILE */ |
33 | 33 | #include "lib/mcconfig.h" /* mc_config_get_full_path() */ |
34 | 34 | #include "lib/strutil.h" /* str_term_width1() */ |
35 | | #include "lib/util.h" /* backup functions */ |
| 35 | #include "lib/sub-util.h" /* backup functions */ |
36 | 36 | |
37 | 37 | #include "file_history.h" |
38 | 38 | |
-
diff --git a/src/filemanager/Makefile.am b/src/filemanager/Makefile.am
index ba4a1be96..2f0c16430 100644
a
|
b
|
libmcfilemanager_la_SOURCES = \ |
8 | 8 | chown.c \ |
9 | 9 | cmd.c cmd.h \ |
10 | 10 | command.c command.h \ |
11 | | dir.c dir.h \ |
| 11 | fman-dir.c fman-dir.h \ |
12 | 12 | ext.c ext.h \ |
13 | 13 | file.c file.h \ |
14 | 14 | filegui.c filegui.h \ |
-
diff --git a/src/filemanager/achown.c b/src/filemanager/achown.c
index 7a9ba7a97..7ee390e55 100644
a
|
b
|
|
42 | 42 | #include "lib/skin.h" |
43 | 43 | #include "lib/vfs/vfs.h" |
44 | 44 | #include "lib/strutil.h" |
45 | | #include "lib/util.h" |
| 45 | #include "lib/sub-util.h" |
46 | 46 | #include "lib/widget.h" |
47 | 47 | |
48 | 48 | #include "midnight.h" /* current_panel */ |
-
diff --git a/src/filemanager/boxes.c b/src/filemanager/boxes.c
index 5b4d8c527..dd6cb928c 100644
a
|
b
|
|
56 | 56 | #include "src/vfs/smbfs/smbfs.h" |
57 | 57 | #endif /* ENABLE_VFS_SMB */ |
58 | 58 | |
59 | | #include "lib/util.h" /* Q_() */ |
| 59 | #include "lib/sub-util.h" /* Q_() */ |
60 | 60 | #include "lib/widget.h" |
61 | 61 | |
62 | 62 | #include "src/setup.h" |
63 | 63 | #include "src/history.h" /* MC_HISTORY_ESC_TIMEOUT */ |
64 | 64 | #include "src/execute.h" /* pause_after_run */ |
65 | 65 | #ifdef ENABLE_BACKGROUND |
66 | | #include "src/background.h" /* task_list */ |
| 66 | #include "src/task-background.h" /* task_list */ |
67 | 67 | #endif |
68 | 68 | |
69 | 69 | #ifdef HAVE_CHARSET |
… |
… |
|
72 | 72 | #endif |
73 | 73 | |
74 | 74 | #include "command.h" /* For cmdline */ |
75 | | #include "dir.h" |
| 75 | #include "fman-dir.h" |
76 | 76 | #include "panel.h" /* LIST_FORMATS */ |
77 | 77 | #include "tree.h" |
78 | 78 | #include "layout.h" /* for get_nth_panel_name proto */ |
-
diff --git a/src/filemanager/boxes.h b/src/filemanager/boxes.h
index 4d6acc3a8..3cbe8b56c 100644
a
|
b
|
|
5 | 5 | #ifndef MC__BOXES_H |
6 | 6 | #define MC__BOXES_H |
7 | 7 | |
8 | | #include "dir.h" |
| 8 | #include "fman-dir.h" |
9 | 9 | #include "panel.h" |
10 | 10 | |
11 | 11 | /*** typedefs(not structures) and defined constants **********************************************/ |
-
diff --git a/src/filemanager/chmod.c b/src/filemanager/chmod.c
index 26fb846cd..49fb268d2 100644
a
|
b
|
|
37 | 37 | #include "lib/skin.h" |
38 | 38 | #include "lib/vfs/vfs.h" |
39 | 39 | #include "lib/strutil.h" |
40 | | #include "lib/util.h" |
| 40 | #include "lib/sub-util.h" |
41 | 41 | #include "lib/widget.h" |
42 | 42 | |
43 | 43 | #include "midnight.h" /* current_panel */ |
-
diff --git a/src/filemanager/chown.c b/src/filemanager/chown.c
index e7b104a06..801923521 100644
a
|
b
|
|
41 | 41 | #include "lib/skin.h" |
42 | 42 | #include "lib/vfs/vfs.h" |
43 | 43 | #include "lib/strutil.h" |
44 | | #include "lib/util.h" |
| 44 | #include "lib/sub-util.h" |
45 | 45 | #include "lib/widget.h" |
46 | 46 | |
47 | 47 | #include "src/setup.h" /* panels_options */ |
-
diff --git a/src/filemanager/cmd.c b/src/filemanager/cmd.c
index 7daf7b763..69e7924cd 100644
a
|
b
|
|
58 | 58 | #include "lib/vfs/vfs.h" |
59 | 59 | #include "lib/fileloc.h" |
60 | 60 | #include "lib/strutil.h" |
61 | | #include "lib/util.h" |
| 61 | #include "lib/sub-util.h" |
62 | 62 | #include "lib/widget.h" |
63 | 63 | #include "lib/keybind.h" /* CK_Down, CK_History */ |
64 | 64 | #include "lib/event.h" /* mc_event_raise() */ |
… |
… |
|
90 | 90 | #include "layout.h" /* get_current_type() */ |
91 | 91 | #include "ext.h" /* regex_command() */ |
92 | 92 | #include "boxes.h" /* cd_box() */ |
93 | | #include "dir.h" |
| 93 | #include "fman-dir.h" |
94 | 94 | |
95 | 95 | #include "cmd.h" /* Our definitions */ |
96 | 96 | |
-
diff --git a/src/filemanager/command.c b/src/filemanager/command.c
index cce18fbc9..a2c2ed3dc 100644
a
|
b
|
|
41 | 41 | #include "lib/vfs/vfs.h" |
42 | 42 | #include "lib/strescape.h" |
43 | 43 | #include "lib/skin.h" /* DEFAULT_COLOR */ |
44 | | #include "lib/util.h" |
| 44 | #include "lib/sub-util.h" |
45 | 45 | #include "lib/widget.h" |
46 | 46 | |
47 | 47 | #include "src/setup.h" /* quit */ |
-
diff --git a/src/filemanager/ext.c b/src/filemanager/ext.c
index 4e1520050..d291c18a5 100644
a
|
b
|
|
43 | 43 | #include "lib/search.h" |
44 | 44 | #include "lib/fileloc.h" |
45 | 45 | #include "lib/mcconfig.h" |
46 | | #include "lib/util.h" |
| 46 | #include "lib/sub-util.h" |
47 | 47 | #include "lib/vfs/vfs.h" |
48 | 48 | #include "lib/widget.h" |
49 | 49 | #ifdef HAVE_CHARSET |
-
diff --git a/src/filemanager/file.c b/src/filemanager/file.c
index b9833de1d..ea3ba6c9c 100644
a
|
b
|
|
66 | 66 | #include "lib/search.h" |
67 | 67 | #include "lib/strescape.h" |
68 | 68 | #include "lib/strutil.h" |
69 | | #include "lib/util.h" |
| 69 | #include "lib/sub-util.h" |
70 | 70 | #include "lib/vfs/vfs.h" |
71 | 71 | #include "lib/widget.h" |
72 | 72 | |
73 | 73 | #include "src/setup.h" |
74 | 74 | #ifdef ENABLE_BACKGROUND |
75 | | #include "src/background.h" /* do_background() */ |
| 75 | #include "src/task-background.h" /* do_background() */ |
76 | 76 | #endif |
77 | 77 | |
78 | 78 | /* Needed for current_panel, other_panel and WTree */ |
79 | | #include "dir.h" |
| 79 | #include "fman-dir.h" |
80 | 80 | #include "filegui.h" |
81 | 81 | #include "filenot.h" |
82 | 82 | #include "tree.h" |
-
diff --git a/src/filemanager/filegui.c b/src/filemanager/filegui.c
index c43a2ae99..ec2dbc87c 100644
a
|
b
|
statfs (char const *filename, struct fs_info *buf) |
150 | 150 | #include "lib/strescape.h" |
151 | 151 | #include "lib/strutil.h" |
152 | 152 | #include "lib/timefmt.h" /* file_date() */ |
153 | | #include "lib/util.h" |
| 153 | #include "lib/sub-util.h" |
154 | 154 | #include "lib/widget.h" |
155 | 155 | |
156 | 156 | #include "src/setup.h" /* verbose, safe_overwrite */ |
-
diff --git a/src/filemanager/filenot.c b/src/filemanager/filenot.c
index 31b31f6c4..25e614559 100644
a
|
b
|
|
41 | 41 | |
42 | 42 | #include "lib/global.h" |
43 | 43 | #include "lib/fs.h" |
44 | | #include "lib/util.h" |
| 44 | #include "lib/sub-util.h" |
45 | 45 | #include "lib/vfs/vfs.h" |
46 | 46 | |
47 | 47 | #include "filenot.h" |
-
diff --git a/src/filemanager/find.c b/src/filemanager/find.c
index b7506bf7d..4687b3911 100644
a
|
b
|
|
47 | 47 | #include "lib/vfs/vfs.h" |
48 | 48 | #include "lib/strutil.h" |
49 | 49 | #include "lib/widget.h" |
50 | | #include "lib/util.h" /* canonicalize_pathname() */ |
| 50 | #include "lib/sub-util.h" /* canonicalize_pathname() */ |
51 | 51 | |
52 | 52 | #include "src/setup.h" /* verbose */ |
53 | 53 | #include "src/history.h" /* MC_HISTORY_SHARED_SEARCH */ |
54 | 54 | |
55 | | #include "dir.h" |
| 55 | #include "fman-dir.h" |
56 | 56 | #include "cmd.h" /* find_cmd(), view_file_at_line() */ |
57 | 57 | #include "midnight.h" /* current_panel */ |
58 | 58 | #include "boxes.h" |
-
diff --git a/src/filemanager/dir.c b/src/filemanager/fman-dir.c
similarity index 99%
rename from src/filemanager/dir.c
rename to src/filemanager/fman-dir.c
index 92b616668..a85d896e1 100644
old
|
new
|
|
41 | 41 | #include "lib/vfs/vfs.h" |
42 | 42 | #include "lib/fs.h" |
43 | 43 | #include "lib/strutil.h" |
44 | | #include "lib/util.h" |
| 44 | #include "lib/sub-util.h" |
45 | 45 | |
46 | 46 | #include "src/setup.h" /* panels_options */ |
47 | 47 | |
48 | 48 | #include "treestore.h" |
49 | 49 | #include "file.h" /* file_is_symlink_to_dir() */ |
50 | | #include "dir.h" |
| 50 | #include "fman-dir.h" |
51 | 51 | |
52 | 52 | /*** global variables ****************************************************************************/ |
53 | 53 | |
-
diff --git a/src/filemanager/dir.h b/src/filemanager/fman-dir.h
similarity index 99%
rename from src/filemanager/dir.h
rename to src/filemanager/fman-dir.h
index a159271f5..04473d104 100644
old
|
new
|
|
8 | 8 | #include <sys/stat.h> |
9 | 9 | |
10 | 10 | #include "lib/global.h" |
11 | | #include "lib/util.h" |
| 11 | #include "lib/sub-util.h" |
12 | 12 | #include "lib/vfs/vfs.h" |
13 | 13 | |
14 | 14 | /*** typedefs(not structures) and defined constants **********************************************/ |
-
diff --git a/src/filemanager/hotlist.c b/src/filemanager/hotlist.c
index 90df75bf6..cbe9bbc57 100644
a
|
b
|
|
53 | 53 | #include "lib/fileloc.h" |
54 | 54 | #include "lib/strutil.h" |
55 | 55 | #include "lib/vfs/vfs.h" |
56 | | #include "lib/util.h" |
| 56 | #include "lib/sub-util.h" |
57 | 57 | #include "lib/widget.h" |
58 | 58 | |
59 | 59 | #include "src/setup.h" /* For profile_bname */ |
-
diff --git a/src/filemanager/info.c b/src/filemanager/info.c
index b981b85d0..c027e07df 100644
a
|
b
|
|
45 | 45 | #include "lib/skin.h" |
46 | 46 | #include "lib/strutil.h" |
47 | 47 | #include "lib/timefmt.h" /* file_date() */ |
48 | | #include "lib/util.h" |
| 48 | #include "lib/sub-util.h" |
49 | 49 | #include "lib/widget.h" |
50 | 50 | |
51 | 51 | #include "src/setup.h" /* panels_options */ |
-
diff --git a/src/filemanager/layout.c b/src/filemanager/layout.c
index f5df9f7bf..062de010b 100644
a
|
b
|
|
44 | 44 | #include "lib/tty/tty.h" |
45 | 45 | #include "lib/skin.h" |
46 | 46 | #include "lib/tty/key.h" |
47 | | #include "lib/tty/mouse.h" |
| 47 | #include "lib/tty/tty-mouse.h" |
48 | 48 | #include "lib/mcconfig.h" |
49 | 49 | #include "lib/vfs/vfs.h" /* For _vfs_get_cwd () */ |
50 | 50 | #include "lib/strutil.h" |
51 | 51 | #include "lib/widget.h" |
52 | 52 | #include "lib/event.h" |
53 | | #include "lib/util.h" /* mc_time_elapsed() */ |
| 53 | #include "lib/sub-util.h" /* mc_time_elapsed() */ |
54 | 54 | |
55 | 55 | #include "src/consaver/cons.saver.h" |
56 | 56 | #include "src/viewer/mcviewer.h" /* The view widget */ |
… |
… |
|
63 | 63 | #include "midnight.h" |
64 | 64 | #include "tree.h" |
65 | 65 | /* Needed for the extern declarations of integer parameters */ |
66 | | #include "dir.h" |
| 66 | #include "fman-dir.h" |
67 | 67 | #include "layout.h" |
68 | 68 | #include "info.h" /* The Info widget */ |
69 | 69 | |
-
diff --git a/src/filemanager/listmode.c b/src/filemanager/listmode.c
index 0aaa0e91f..0b1526952 100644
a
|
b
|
|
47 | 47 | #include "lib/skin/skin.h" |
48 | 48 | |
49 | 49 | /* Needed for the extern declarations of integer parameters */ |
50 | | #include "dir.h" |
| 50 | #include "fman-dir.h" |
51 | 51 | #include "panel.h" /* Needed for the externs */ |
52 | 52 | #include "file.h" |
53 | 53 | #include "listmode.h" |
-
diff --git a/src/filemanager/midnight.c b/src/filemanager/midnight.c
index 36461b260..fa83c2d11 100644
a
|
b
|
|
50 | 50 | #include "lib/tty/tty.h" |
51 | 51 | #include "lib/tty/key.h" /* KEY_M_* masks */ |
52 | 52 | #include "lib/skin.h" |
53 | | #include "lib/util.h" |
| 53 | #include "lib/sub-util.h" |
54 | 54 | |
55 | 55 | #include "lib/vfs/vfs.h" |
56 | 56 | |
… |
… |
|
73 | 73 | #include "hotlist.h" |
74 | 74 | #include "panelize.h" |
75 | 75 | #include "command.h" /* cmdline */ |
76 | | #include "dir.h" /* dir_list_clean() */ |
| 76 | #include "fman-dir.h" /* dir_list_clean() */ |
77 | 77 | |
78 | 78 | #ifdef USE_INTERNAL_EDIT |
79 | 79 | #include "src/editor/edit.h" |
-
diff --git a/src/filemanager/panel.c b/src/filemanager/panel.c
index c74247aea..309eee844 100644
a
|
b
|
|
48 | 48 | #include "lib/unixcompat.h" |
49 | 49 | #include "lib/search.h" |
50 | 50 | #include "lib/timefmt.h" /* file_date() */ |
51 | | #include "lib/util.h" |
| 51 | #include "lib/sub-util.h" |
52 | 52 | #include "lib/widget.h" |
53 | 53 | #ifdef HAVE_CHARSET |
54 | 54 | #include "lib/charsets.h" /* get_codepage_id () */ |
… |
… |
|
67 | 67 | |
68 | 68 | #include "src/usermenu.h" |
69 | 69 | |
70 | | #include "dir.h" |
| 70 | #include "fman-dir.h" |
71 | 71 | #include "boxes.h" |
72 | 72 | #include "tree.h" |
73 | 73 | #include "ext.h" /* regexp_command */ |
-
diff --git a/src/filemanager/panel.h b/src/filemanager/panel.h
index 57f4d6284..bb7ef665c 100644
a
|
b
|
|
14 | 14 | #include "lib/widget.h" /* Widget */ |
15 | 15 | #include "lib/filehighlight.h" |
16 | 16 | |
17 | | #include "dir.h" /* dir_list */ |
| 17 | #include "fman-dir.h" /* dir_list */ |
18 | 18 | |
19 | 19 | /*** typedefs(not structures) and defined constants **********************************************/ |
20 | 20 | |
-
diff --git a/src/filemanager/panelize.c b/src/filemanager/panelize.c
index 8c1af1ed8..1820e3467 100644
a
|
b
|
|
43 | 43 | #include "lib/vfs/vfs.h" |
44 | 44 | #include "lib/mcconfig.h" /* Load/save directories panelize */ |
45 | 45 | #include "lib/strutil.h" |
46 | | #include "lib/util.h" |
| 46 | #include "lib/sub-util.h" |
47 | 47 | #include "lib/widget.h" |
48 | 48 | |
49 | 49 | #include "src/setup.h" /* For profile_bname */ |
50 | 50 | #include "src/history.h" |
51 | 51 | |
52 | | #include "dir.h" |
| 52 | #include "fman-dir.h" |
53 | 53 | #include "midnight.h" /* current_panel */ |
54 | 54 | #include "layout.h" /* rotate_dash() */ |
55 | 55 | #include "panel.h" /* WPanel */ |
-
diff --git a/src/filemanager/tree.c b/src/filemanager/tree.c
index 008bc0403..9d6ddecb3 100644
a
|
b
|
|
51 | 51 | #include "lib/vfs/vfs.h" |
52 | 52 | #include "lib/fileloc.h" |
53 | 53 | #include "lib/strutil.h" |
54 | | #include "lib/util.h" |
| 54 | #include "lib/sub-util.h" |
55 | 55 | #include "lib/widget.h" |
56 | 56 | #include "lib/event.h" /* mc_event_raise() */ |
57 | 57 | |
… |
… |
|
59 | 59 | #include "src/keybind-defaults.h" |
60 | 60 | #include "src/history.h" |
61 | 61 | |
62 | | #include "dir.h" |
| 62 | #include "fman-dir.h" |
63 | 63 | #include "midnight.h" /* the_menubar */ |
64 | 64 | #include "file.h" /* copy_dir_dir(), move_dir_dir(), erase_dir() */ |
65 | 65 | #include "layout.h" /* command_prompt */ |
-
diff --git a/src/filemanager/treestore.c b/src/filemanager/treestore.c
index 08354b217..a8e86b94a 100644
a
|
b
|
|
56 | 56 | #include "lib/fileloc.h" |
57 | 57 | #include "lib/strescape.h" |
58 | 58 | #include "lib/hook.h" |
59 | | #include "lib/util.h" |
| 59 | #include "lib/sub-util.h" |
60 | 60 | |
61 | 61 | #include "src/setup.h" /* setup_init() */ |
62 | 62 | |
-
diff --git a/src/help.c b/src/help.c
index f5922f086..8881d448c 100644
a
|
b
|
|
61 | 61 | #include "lib/skin.h" |
62 | 62 | #include "lib/strutil.h" |
63 | 63 | #include "lib/fileloc.h" |
64 | | #include "lib/util.h" |
| 64 | #include "lib/sub-util.h" |
65 | 65 | #include "lib/widget.h" |
66 | 66 | #include "lib/event-types.h" |
67 | 67 | |
-
diff --git a/src/learn.c b/src/learn.c
index 8c607f67c..92c4902d3 100644
a
|
b
|
|
39 | 39 | #include "lib/mcconfig.h" |
40 | 40 | #include "lib/strescape.h" |
41 | 41 | #include "lib/strutil.h" |
42 | | #include "lib/util.h" /* convert_controls() */ |
| 42 | #include "lib/sub-util.h" /* convert_controls() */ |
43 | 43 | #include "lib/widget.h" |
44 | 44 | |
45 | 45 | #include "setup.h" |
-
diff --git a/src/main.c b/src/main.c
index 6db18b200..c30f51c30 100644
a
|
b
|
|
48 | 48 | #include "lib/event.h" |
49 | 49 | #include "lib/tty/tty.h" |
50 | 50 | #include "lib/tty/key.h" /* For init_key() */ |
51 | | #include "lib/tty/mouse.h" /* init_mouse() */ |
| 51 | #include "lib/tty/tty-mouse.h" /* init_mouse() */ |
52 | 52 | #include "lib/timer.h" |
53 | 53 | #include "lib/skin.h" |
54 | 54 | #include "lib/filehighlight.h" |
55 | 55 | #include "lib/fileloc.h" |
56 | 56 | #include "lib/strutil.h" |
57 | | #include "lib/util.h" |
| 57 | #include "lib/sub-util.h" |
58 | 58 | #include "lib/vfs/vfs.h" /* vfs_init(), vfs_shut() */ |
59 | 59 | |
60 | 60 | #include "filemanager/midnight.h" /* current_panel */ |
-
diff --git a/src/setup.c b/src/setup.c
index 97da20940..27d8b65d6 100644
a
|
b
|
|
39 | 39 | #include "lib/mcconfig.h" /* num_history_items_recorded */ |
40 | 40 | #include "lib/fileloc.h" |
41 | 41 | #include "lib/timefmt.h" |
42 | | #include "lib/util.h" |
| 42 | #include "lib/sub-util.h" |
43 | 43 | #include "lib/widget.h" |
44 | 44 | |
45 | 45 | #ifdef ENABLE_VFS_FTP |
… |
… |
|
53 | 53 | #include "lib/charsets.h" |
54 | 54 | #endif |
55 | 55 | |
56 | | #include "filemanager/dir.h" |
| 56 | #include "filemanager/fman-dir.h" |
57 | 57 | #include "filemanager/midnight.h" |
58 | 58 | #include "filemanager/tree.h" /* xtree_mode */ |
59 | 59 | #include "filemanager/hotlist.h" /* load/save/done hotlist */ |
-
diff --git a/src/subshell/Makefile.am b/src/subshell/Makefile.am
index 369cb6f47..c18786496 100644
a
|
b
|
|
1 | 1 | noinst_LTLIBRARIES = libsubshell.la |
2 | 2 | |
3 | 3 | libsubshell_la_SOURCES = \ |
4 | | common.c \ |
| 4 | subshell-common.c \ |
5 | 5 | internal.h \ |
6 | 6 | proxyfunc.c \ |
7 | 7 | subshell.h |
-
diff --git a/src/subshell/common.c b/src/subshell/subshell-common.c
similarity index 99%
rename from src/subshell/common.c
rename to src/subshell/subshell-common.c
index 02ae85211..8e22d6ad2 100644
old
|
new
|
|
103 | 103 | #include "lib/vfs/vfs.h" |
104 | 104 | #include "lib/strutil.h" |
105 | 105 | #include "lib/mcconfig.h" |
106 | | #include "lib/util.h" |
| 106 | #include "lib/sub-util.h" |
107 | 107 | #include "lib/widget.h" |
108 | 108 | |
109 | 109 | #include "src/filemanager/layout.h" /* setup_cmdline() */ |
-
diff --git a/src/background.c b/src/task-background.c
similarity index 99%
rename from src/background.c
rename to src/task-background.c
index 8774c0cd7..36112a7b7 100644
old
|
new
|
|
52 | 52 | |
53 | 53 | #include "filemanager/fileopctx.h" /* file_op_context_t */ |
54 | 54 | |
55 | | #include "background.h" |
| 55 | #include "task-background.h" |
56 | 56 | |
57 | 57 | /*** global variables ****************************************************************************/ |
58 | 58 | |
-
diff --git a/src/background.h b/src/task-background.h
similarity index 100%
rename from src/background.h
rename to src/task-background.h
diff --git a/src/textconf.c b/src/textconf.c
index fbb187b12..57c114724 100644
a
|
b
|
|
33 | 33 | #include "lib/global.h" |
34 | 34 | #include "lib/fileloc.h" |
35 | 35 | #include "lib/mcconfig.h" |
36 | | #include "lib/util.h" /* mc_get_profile_root() */ |
| 36 | #include "lib/sub-util.h" /* mc_get_profile_root() */ |
37 | 37 | #include "lib/tty/tty.h" /* S-Lang or ncurses version */ |
38 | 38 | |
39 | 39 | #include "src/textconf.h" |
-
diff --git a/src/usermenu.c b/src/usermenu.c
index 698244220..fda44a895 100644
a
|
b
|
|
43 | 43 | #include "lib/search.h" |
44 | 44 | #include "lib/vfs/vfs.h" |
45 | 45 | #include "lib/strutil.h" |
46 | | #include "lib/util.h" |
| 46 | #include "lib/sub-util.h" |
47 | 47 | #include "lib/widget.h" |
48 | 48 | |
49 | 49 | #include "src/editor/edit.h" /* WEdit, BLOCK_FILE */ |
… |
… |
|
53 | 53 | #include "src/setup.h" |
54 | 54 | #include "src/history.h" |
55 | 55 | |
56 | | #include "src/filemanager/dir.h" |
| 56 | #include "src/filemanager/fman-dir.h" |
57 | 57 | #include "src/filemanager/midnight.h" |
58 | 58 | #include "src/filemanager/layout.h" |
59 | 59 | |
-
diff --git a/src/util.c b/src/util.c
index 4b3f99569..68bfa7169 100644
a
|
b
|
|
27 | 27 | #include <config.h> |
28 | 28 | |
29 | 29 | #include "lib/global.h" |
30 | | #include "lib/util.h" |
| 30 | #include "lib/sub-util.h" |
31 | 31 | |
32 | 32 | #include "src/filemanager/file.h" |
33 | 33 | #include "src/filemanager/filegui.h" |
-
diff --git a/src/vfs/cpio/cpio.c b/src/vfs/cpio/cpio.c
index 774fdf356..76cfe10f7 100644
a
|
b
|
|
38 | 38 | |
39 | 39 | #include "lib/global.h" |
40 | 40 | #include "lib/unixcompat.h" |
41 | | #include "lib/util.h" |
| 41 | #include "lib/sub-util.h" |
42 | 42 | #include "lib/widget.h" /* message() */ |
43 | 43 | |
44 | 44 | #include "lib/vfs/vfs.h" |
-
diff --git a/src/vfs/extfs/extfs.c b/src/vfs/extfs/extfs.c
index 7ddbc7a80..641cd140e 100644
a
|
b
|
|
53 | 53 | #include "lib/global.h" |
54 | 54 | #include "lib/fileloc.h" |
55 | 55 | #include "lib/mcconfig.h" |
56 | | #include "lib/util.h" |
| 56 | #include "lib/sub-util.h" |
57 | 57 | #include "lib/widget.h" /* message() */ |
58 | 58 | |
59 | 59 | #include "src/execute.h" /* For shell_execute */ |
-
diff --git a/src/vfs/fish/fish.c b/src/vfs/fish/fish.c
index 5cd279f95..9b7e98ddf 100644
a
|
b
|
|
63 | 63 | #include "lib/strescape.h" |
64 | 64 | #include "lib/unixcompat.h" |
65 | 65 | #include "lib/fileloc.h" |
66 | | #include "lib/util.h" /* my_exit() */ |
| 66 | #include "lib/sub-util.h" /* my_exit() */ |
67 | 67 | #include "lib/mcconfig.h" |
68 | 68 | #include "lib/timer.h" |
69 | 69 | |
-
diff --git a/src/vfs/ftpfs/ftpfs.c b/src/vfs/ftpfs/ftpfs.c
index 8a841ac1a..80ba5a548 100644
a
|
b
|
What to do with this? |
95 | 95 | #include <inttypes.h> /* uintmax_t */ |
96 | 96 | |
97 | 97 | #include "lib/global.h" |
98 | | #include "lib/util.h" |
| 98 | #include "lib/sub-util.h" |
99 | 99 | #include "lib/strutil.h" /* str_move() */ |
100 | 100 | #include "lib/mcconfig.h" |
101 | 101 | #include "lib/timer.h" |
-
diff --git a/src/vfs/sfs/sfs.c b/src/vfs/sfs/sfs.c
index fafcf32e7..0321f5ff0 100644
a
|
b
|
|
45 | 45 | #include <string.h> |
46 | 46 | |
47 | 47 | #include "lib/global.h" |
48 | | #include "lib/util.h" |
| 48 | #include "lib/sub-util.h" |
49 | 49 | #include "lib/widget.h" /* D_ERROR, D_NORMAL */ |
50 | 50 | |
51 | 51 | #include "src/execute.h" /* EXECUTE_AS_SHELL */ |
-
diff --git a/src/vfs/sftpfs/Makefile.am b/src/vfs/sftpfs/Makefile.am
index 423f38730..49fe59caa 100644
a
|
b
|
noinst_LTLIBRARIES = libvfs-sftpfs.la |
6 | 6 | libvfs_sftpfs_la_SOURCES = \ |
7 | 7 | config_parser.c \ |
8 | 8 | connection.c \ |
9 | | dir.c \ |
10 | | file.c \ |
| 9 | sftp-dir.c \ |
| 10 | sftp-file.c \ |
11 | 11 | init.c init.h \ |
12 | 12 | internal.c internal.h \ |
13 | 13 | vfs_class.c \ |
-
diff --git a/src/vfs/sftpfs/config_parser.c b/src/vfs/sftpfs/config_parser.c
index f5736996d..e95193835 100644
a
|
b
|
|
32 | 32 | #include "lib/global.h" |
33 | 33 | |
34 | 34 | #include "lib/search.h" |
35 | | #include "lib/util.h" /* tilde_expand() */ |
| 35 | #include "lib/sub-util.h" /* tilde_expand() */ |
36 | 36 | #include "lib/vfs/utilvfs.h" |
37 | 37 | |
38 | 38 | #include "internal.h" |
-
diff --git a/src/vfs/sftpfs/connection.c b/src/vfs/sftpfs/connection.c
index 0fc08d285..d0fe4948c 100644
a
|
b
|
|
39 | 39 | |
40 | 40 | #include "lib/global.h" |
41 | 41 | |
42 | | #include "lib/util.h" |
| 42 | #include "lib/sub-util.h" |
43 | 43 | #include "lib/tty/tty.h" /* tty_enable_interrupt_key () */ |
44 | 44 | #include "lib/vfs/utilvfs.h" |
45 | 45 | |
-
diff --git a/src/vfs/sftpfs/internal.c b/src/vfs/sftpfs/internal.c
index baa2de4f7..daae5239b 100644
a
|
b
|
|
36 | 36 | #endif |
37 | 37 | |
38 | 38 | #include "lib/global.h" |
39 | | #include "lib/util.h" |
| 39 | #include "lib/sub-util.h" |
40 | 40 | |
41 | 41 | #include "internal.h" |
42 | 42 | |
-
diff --git a/src/vfs/sftpfs/dir.c b/src/vfs/sftpfs/sftp-dir.c
similarity index 99%
rename from src/vfs/sftpfs/dir.c
rename to src/vfs/sftpfs/sftp-dir.c
index 67b7f29ee..653bc9d7b 100644
old
|
new
|
|
30 | 30 | #include <libssh2_sftp.h> |
31 | 31 | |
32 | 32 | #include "lib/global.h" |
33 | | #include "lib/util.h" |
| 33 | #include "lib/sub-util.h" |
34 | 34 | |
35 | 35 | #include "internal.h" |
36 | 36 | |
-
diff --git a/src/vfs/sftpfs/file.c b/src/vfs/sftpfs/sftp-file.c
similarity index 99%
rename from src/vfs/sftpfs/file.c
rename to src/vfs/sftpfs/sftp-file.c
index 40d019f11..01a92fe6d 100644
old
|
new
|
|
31 | 31 | #include <libssh2_sftp.h> |
32 | 32 | |
33 | 33 | #include "lib/global.h" |
34 | | #include "lib/util.h" |
| 34 | #include "lib/sub-util.h" |
35 | 35 | |
36 | 36 | #include "internal.h" |
37 | 37 | |
-
diff --git a/src/vfs/smbfs/smbfs.c b/src/vfs/smbfs/smbfs.c
index e91a18fbd..b73331cd4 100644
a
|
b
|
|
47 | 47 | |
48 | 48 | #include "lib/global.h" |
49 | 49 | #include "lib/strutil.h" |
50 | | #include "lib/util.h" |
| 50 | #include "lib/sub-util.h" |
51 | 51 | #include "lib/widget.h" /* message() */ |
52 | 52 | |
53 | 53 | #undef PACKAGE_BUGREPORT |
-
diff --git a/src/vfs/tar/tar.c b/src/vfs/tar/tar.c
index 913a39520..39086ba6e 100644
a
|
b
|
|
46 | 46 | #endif |
47 | 47 | |
48 | 48 | #include "lib/global.h" |
49 | | #include "lib/util.h" |
| 49 | #include "lib/sub-util.h" |
50 | 50 | #include "lib/unixcompat.h" /* makedev() */ |
51 | 51 | #include "lib/widget.h" /* message() */ |
52 | 52 | |
-
diff --git a/src/vfs/undelfs/undelfs.c b/src/vfs/undelfs/undelfs.c
index 6e8a0685c..446953aa5 100644
a
|
b
|
|
63 | 63 | |
64 | 64 | #include "lib/global.h" |
65 | 65 | |
66 | | #include "lib/util.h" |
| 66 | #include "lib/sub-util.h" |
67 | 67 | #include "lib/widget.h" /* message() */ |
68 | 68 | #include "lib/vfs/xdirentry.h" |
69 | 69 | #include "lib/vfs/utilvfs.h" |
-
diff --git a/src/viewer/Makefile.am b/src/viewer/Makefile.am
index 0602084d5..f5c0b7e13 100644
a
|
b
|
libmcviewer_la_SOURCES = \ |
9 | 9 | dialogs.c \ |
10 | 10 | display.c \ |
11 | 11 | growbuf.c \ |
12 | | hex.c \ |
| 12 | view-hex.c \ |
13 | 13 | inlines.h \ |
14 | 14 | internal.h \ |
15 | | lib.c \ |
| 15 | view-lib.c \ |
16 | 16 | mcviewer.c \ |
17 | 17 | mcviewer.h \ |
18 | 18 | move.c \ |
19 | 19 | nroff.c \ |
20 | | search.c |
| 20 | view-search.c |
21 | 21 | |
22 | 22 | AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CPPFLAGS) |
23 | 23 | |
-
diff --git a/src/viewer/actions_cmd.c b/src/viewer/actions_cmd.c
index f5724ce20..3f63ea273 100644
a
|
b
|
|
52 | 52 | #include "lib/tty/tty.h" |
53 | 53 | #include "lib/tty/key.h" /* is_idle() */ |
54 | 54 | #include "lib/lock.h" /* lock_file() */ |
55 | | #include "lib/util.h" |
| 55 | #include "lib/sub-util.h" |
56 | 56 | #include "lib/widget.h" |
57 | 57 | #ifdef HAVE_CHARSET |
58 | 58 | #include "lib/charsets.h" |
-
diff --git a/src/viewer/ascii.c b/src/viewer/ascii.c
index e2a3ce934..1e679c533 100644
a
|
b
|
|
149 | 149 | #include "lib/global.h" |
150 | 150 | #include "lib/tty/tty.h" |
151 | 151 | #include "lib/skin.h" |
152 | | #include "lib/util.h" /* is_printable() */ |
| 152 | #include "lib/sub-util.h" /* is_printable() */ |
153 | 153 | #ifdef HAVE_CHARSET |
154 | 154 | #include "lib/charsets.h" |
155 | 155 | #endif |
-
diff --git a/src/viewer/datasource.c b/src/viewer/datasource.c
index 1f97e8dd1..56206f16b 100644
a
|
b
|
|
56 | 56 | |
57 | 57 | #include "lib/global.h" |
58 | 58 | #include "lib/vfs/vfs.h" |
59 | | #include "lib/util.h" |
| 59 | #include "lib/sub-util.h" |
60 | 60 | #include "lib/widget.h" /* D_NORMAL, D_ERROR */ |
61 | 61 | |
62 | 62 | #include "internal.h" |
-
diff --git a/src/viewer/display.c b/src/viewer/display.c
index 7512e4763..1c56f0a9b 100644
a
|
b
|
|
41 | 41 | #include "lib/tty/tty.h" |
42 | 42 | #include "lib/tty/key.h" |
43 | 43 | #include "lib/strutil.h" |
44 | | #include "lib/util.h" |
| 44 | #include "lib/sub-util.h" |
45 | 45 | #include "lib/widget.h" |
46 | 46 | #ifdef HAVE_CHARSET |
47 | 47 | #include "lib/charsets.h" |
-
diff --git a/src/viewer/growbuf.c b/src/viewer/growbuf.c
index c1292f255..954ecd90e 100644
a
|
b
|
|
38 | 38 | |
39 | 39 | #include "lib/global.h" |
40 | 40 | #include "lib/vfs/vfs.h" |
41 | | #include "lib/util.h" |
| 41 | #include "lib/sub-util.h" |
42 | 42 | #include "lib/widget.h" /* D_NORMAL */ |
43 | 43 | |
44 | 44 | #include "internal.h" |
-
diff --git a/src/viewer/internal.h b/src/viewer/internal.h
index d96223f2f..94f8d30a7 100644
a
|
b
|
|
12 | 12 | #include "lib/vfs/vfs.h" /* vfs_path_t */ |
13 | 13 | |
14 | 14 | #include "src/keybind-defaults.h" /* global_keymap_t */ |
15 | | #include "src/filemanager/dir.h" /* dir_list */ |
| 15 | #include "src/filemanager/fman-dir.h" /* dir_list */ |
16 | 16 | |
17 | 17 | #include "mcviewer.h" |
18 | 18 | |
-
diff --git a/src/viewer/mcviewer.c b/src/viewer/mcviewer.c
index 027323f1c..fbfa50f8b 100644
a
|
b
|
|
40 | 40 | #include "lib/tty/tty.h" |
41 | 41 | #include "lib/vfs/vfs.h" |
42 | 42 | #include "lib/strutil.h" |
43 | | #include "lib/util.h" /* load_file_position() */ |
| 43 | #include "lib/sub-util.h" /* load_file_position() */ |
44 | 44 | #include "lib/widget.h" |
45 | 45 | |
46 | 46 | #include "src/filemanager/layout.h" |
-
diff --git a/src/viewer/hex.c b/src/viewer/view-hex.c
similarity index 99%
rename from src/viewer/hex.c
rename to src/viewer/view-hex.c
index 7996d4308..6ac4ddedc 100644
old
|
new
|
|
43 | 43 | #include "lib/skin.h" |
44 | 44 | #include "lib/vfs/vfs.h" |
45 | 45 | #include "lib/lock.h" /* lock_file() and unlock_file() */ |
46 | | #include "lib/util.h" |
| 46 | #include "lib/sub-util.h" |
47 | 47 | #include "lib/widget.h" |
48 | 48 | #ifdef HAVE_CHARSET |
49 | 49 | #include "lib/charsets.h" |
-
diff --git a/src/viewer/lib.c b/src/viewer/view-lib.c
similarity index 99%
rename from src/viewer/lib.c
rename to src/viewer/view-lib.c
index 744e7e9a2..6e81a1548 100644
old
|
new
|
|
41 | 41 | #include "lib/global.h" |
42 | 42 | #include "lib/vfs/vfs.h" |
43 | 43 | #include "lib/strutil.h" |
44 | | #include "lib/util.h" /* save_file_position() */ |
| 44 | #include "lib/sub-util.h" /* save_file_position() */ |
45 | 45 | #include "lib/widget.h" |
46 | 46 | #ifdef HAVE_CHARSET |
47 | 47 | #include "lib/charsets.h" |
-
diff --git a/src/viewer/search.c b/src/viewer/view-search.c
similarity index 100%
rename from src/viewer/search.c
rename to src/viewer/view-search.c
diff --git a/tests/lib/mc_build_filename.c b/tests/lib/mc_build_filename.c
index 0b6b7a4cc..abf94ab64 100644
a
|
b
|
|
30 | 30 | #include <stdio.h> |
31 | 31 | |
32 | 32 | #include "lib/strutil.h" |
33 | | #include "lib/util.h" |
| 33 | #include "lib/sub-util.h" |
34 | 34 | |
35 | 35 | /* --------------------------------------------------------------------------------------------- */ |
36 | 36 | |
-
diff --git a/tests/lib/mc_realpath.c b/tests/lib/mc_realpath.c
index 17f7c2fff..6c4ac1744 100644
a
|
b
|
|
31 | 31 | #include "lib/vfs/vfs.h" /* VFS_ENCODING_PREFIX, vfs_init(), vfs_shut() */ |
32 | 32 | #include "src/vfs/local/local.c" |
33 | 33 | |
34 | | #include "lib/util.h" /* mc_realpath() */ |
| 34 | #include "lib/sub-util.h" /* mc_realpath() */ |
35 | 35 | |
36 | 36 | /* --------------------------------------------------------------------------------------------- */ |
37 | 37 | |
-
diff --git a/tests/lib/name_quote.c b/tests/lib/name_quote.c
index eb5056d7d..27469cd64 100644
a
|
b
|
|
27 | 27 | |
28 | 28 | #include "tests/mctest.h" |
29 | 29 | |
30 | | #include "lib/util.h" |
| 30 | #include "lib/sub-util.h" |
31 | 31 | |
32 | 32 | /* --------------------------------------------------------------------------------------------- */ |
33 | 33 | |
-
diff --git a/tests/lib/utilunix__my_system-fork_child.c b/tests/lib/utilunix__my_system-fork_child.c
index 95081db11..43d45585e 100644
a
|
b
|
|
27 | 27 | |
28 | 28 | #include "tests/mctest.h" |
29 | 29 | |
30 | | #include "lib/util.h" |
| 30 | #include "lib/sub-util.h" |
31 | 31 | #include "lib/utilunix.h" |
32 | 32 | |
33 | 33 | #include "utilunix__my_system-common.c" |
-
diff --git a/tests/lib/utilunix__my_system-fork_child_shell.c b/tests/lib/utilunix__my_system-fork_child_shell.c
index 6de19581b..46c462a17 100644
a
|
b
|
|
27 | 27 | |
28 | 28 | #include "tests/mctest.h" |
29 | 29 | |
30 | | #include "lib/util.h" |
| 30 | #include "lib/sub-util.h" |
31 | 31 | #include "lib/utilunix.h" |
32 | 32 | |
33 | 33 | #include "utilunix__my_system-common.c" |
-
diff --git a/tests/lib/utilunix__my_system-fork_fail.c b/tests/lib/utilunix__my_system-fork_fail.c
index 452efb161..c42f7c260 100644
a
|
b
|
|
30 | 30 | #include <signal.h> |
31 | 31 | #include <unistd.h> |
32 | 32 | |
33 | | #include "lib/util.h" |
| 33 | #include "lib/sub-util.h" |
34 | 34 | #include "lib/utilunix.h" |
35 | 35 | |
36 | 36 | #include "utilunix__my_system-common.c" |
-
diff --git a/tests/lib/vfs/canonicalize_pathname.c b/tests/lib/vfs/canonicalize_pathname.c
index f070fa039..5e6c16aaf 100644
a
|
b
|
|
32 | 32 | #endif |
33 | 33 | |
34 | 34 | #include "lib/strutil.h" |
35 | | #include "lib/util.h" |
| 35 | #include "lib/sub-util.h" |
36 | 36 | #include "lib/vfs/xdirentry.h" |
37 | 37 | |
38 | 38 | #include "src/vfs/local/local.c" |
-
diff --git a/tests/lib/x_basename.c b/tests/lib/x_basename.c
index c3a85f463..95da4b1da 100644
a
|
b
|
|
30 | 30 | #include <stdio.h> |
31 | 31 | |
32 | 32 | #include "lib/strutil.h" |
33 | | #include "lib/util.h" |
| 33 | #include "lib/sub-util.h" |
34 | 34 | |
35 | 35 | /* --------------------------------------------------------------------------------------------- */ |
36 | 36 | |
-
diff --git a/tests/src/filemanager/get_random_hint.c b/tests/src/filemanager/get_random_hint.c
index c9a953227..721362180 100644
a
|
b
|
|
29 | 29 | #include "tests/mctest.h" |
30 | 30 | |
31 | 31 | #include "lib/strutil.h" |
32 | | #include "lib/util.h" |
| 32 | #include "lib/sub-util.h" |
33 | 33 | #include "lib/timer.h" |
34 | 34 | |
35 | 35 | #include "src/filemanager/midnight.h" |
-
diff --git a/tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c b/tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c
index 8bd1f69e5..a846dc319 100644
a
|
b
|
|
41 | 41 | #include "lib/global.h" |
42 | 42 | |
43 | 43 | #include "lib/vfs/utilvfs.h" /* vfs_parse_ls_lga() */ |
44 | | #include "lib/util.h" /* string_perm() */ |
| 44 | #include "lib/sub-util.h" /* string_perm() */ |
45 | 45 | #include "lib/timefmt.h" /* FMT_LOCALTIME */ |
46 | 46 | #include "lib/widget.h" /* for the prototype of message() only */ |
47 | 47 | |