Changes for build after moving strutil into lib

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2010-01-21 14:17:26 +02:00
parent 3a801603c5
commit cd4dbf3a09
63 changed files with 155 additions and 150 deletions

View File

@ -583,6 +583,7 @@ lib/filehighlight/Makefile
lib/mcconfig/Makefile lib/mcconfig/Makefile
lib/search/Makefile lib/search/Makefile
lib/skin/Makefile lib/skin/Makefile
lib/strutil/Makefile
lib/tty/Makefile lib/tty/Makefile
lib/vfs/Makefile lib/vfs/Makefile
lib/vfs/mc-vfs/Makefile lib/vfs/mc-vfs/Makefile

View File

@ -1,4 +1,4 @@
SUBDIRS = filehighlight mcconfig search skin tty vfs SUBDIRS = filehighlight mcconfig search skin tty vfs strutil
noinst_LTLIBRARIES = libmc.la noinst_LTLIBRARIES = libmc.la
@ -24,6 +24,7 @@ libmc_la_LIBADD = \
filehighlight/libmcfilehighlight.la \ filehighlight/libmcfilehighlight.la \
mcconfig/libmcconfig.la \ mcconfig/libmcconfig.la \
search/libsearch.la \ search/libsearch.la \
strutil/libmcstrutil.la \
skin/libmcskin.la \ skin/libmcskin.la \
tty/libmctty.la \ tty/libmctty.la \
$(INTLLIBS) $(MCLIBS) $(SLANGLIB) $(LIBICONV) $(GLIB_LIBS) $(INTLLIBS) $(MCLIBS) $(SLANGLIB) $(LIBICONV) $(GLIB_LIBS)

View File

@ -20,9 +20,9 @@
#include <config.h> #include <config.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/strutil.h"
#include "mcconfig.h" #include "mcconfig.h"
#include "src/strutil.h"
/*** global variables **************************************************/ /*** global variables **************************************************/

View File

@ -20,9 +20,9 @@
#include <config.h> #include <config.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/strutil.h"
#include "mcconfig.h" #include "mcconfig.h"
#include "src/strutil.h"
/*** global variables **************************************************/ /*** global variables **************************************************/

View File

@ -29,12 +29,14 @@
#include "lib/global.h" #include "lib/global.h"
#include "search.h" #include "lib/strutil.h"
#include "internal.h"
#include "src/strutil.h"
#include "src/strescape.h" #include "src/strescape.h"
#include "src/charsets.h" #include "src/charsets.h"
#include "search.h"
#include "internal.h"
/*** global variables ****************************************************************************/ /*** global variables ****************************************************************************/
/*** file scope macro definitions ****************************************************************/ /*** file scope macro definitions ****************************************************************/

View File

@ -30,12 +30,14 @@
#include <stdio.h> #include <stdio.h>
#include "lib/global.h" #include "lib/global.h"
#include "search.h" #include "lib/strutil.h"
#include "internal.h"
#include "src/strutil.h"
#include "src/strescape.h" #include "src/strescape.h"
#include "src/charsets.h" #include "src/charsets.h"
#include "search.h"
#include "internal.h"
/*** global variables ****************************************************************************/ /*** global variables ****************************************************************************/
/*** file scope macro definitions ****************************************************************/ /*** file scope macro definitions ****************************************************************/

View File

@ -31,9 +31,10 @@
#include <sys/types.h> #include <sys/types.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/strutil.h"
#include "search.h" #include "search.h"
#include "internal.h" #include "internal.h"
#include "src/strutil.h"
#include "src/charsets.h" #include "src/charsets.h"
/*** global variables ****************************************************************************/ /*** global variables ****************************************************************************/

View File

@ -29,10 +29,12 @@
#include "lib/global.h" #include "lib/global.h"
#include "lib/strutil.h"
#include "src/charsets.h"
#include "search.h" #include "search.h"
#include "internal.h" #include "internal.h"
#include "src/strutil.h"
#include "src/charsets.h"
/*** global variables ****************************************************************************/ /*** global variables ****************************************************************************/

View File

@ -30,12 +30,14 @@
#include <stdlib.h> #include <stdlib.h>
#include "lib/global.h" #include "lib/global.h"
#include "search.h" #include "lib/strutil.h"
#include "internal.h"
#include "src/strutil.h"
#include "src/strescape.h" #include "src/strescape.h"
#include "src/charsets.h" #include "src/charsets.h"
#include "search.h"
#include "internal.h"
/*** global variables ****************************************************************************/ /*** global variables ****************************************************************************/
/*** file scope macro definitions ****************************************************************/ /*** file scope macro definitions ****************************************************************/

View File

@ -31,10 +31,12 @@
#include <sys/types.h> #include <sys/types.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/strutil.h"
#include "src/charsets.h"
#include "search.h" #include "search.h"
#include "internal.h" #include "internal.h"
#include "src/strutil.h"
#include "src/charsets.h"
/*** global variables ****************************************************************************/ /*** global variables ****************************************************************************/

9
lib/strutil/Makefile.am Normal file
View File

@ -0,0 +1,9 @@
noinst_LTLIBRARIES = libmcstrutil.la
libmcstrutil_la_SOURCES = \
strutil8bit.c \
strutilascii.c \
strutil.c \
strutilutf8.c
libmcstrutil_la_CFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS)

View File

@ -31,7 +31,7 @@
#include <stdarg.h> #include <stdarg.h>
#include "lib/global.h" #include "lib/global.h"
#include "strutil.h" #include "lib/strutil.h"
/*names, that are used for utf-8 */ /*names, that are used for utf-8 */
static const char *str_utf8_encodings[] = { static const char *str_utf8_encodings[] = {

View File

@ -28,7 +28,7 @@
#include <errno.h> #include <errno.h>
#include "lib/global.h" #include "lib/global.h"
#include "strutil.h" #include "lib/strutil.h"
/* functions for singlebyte encodings, all characters have width 1 /* functions for singlebyte encodings, all characters have width 1
* using standard system functions * using standard system functions

View File

@ -28,7 +28,7 @@
#include <config.h> #include <config.h>
#include <errno.h> #include <errno.h>
#include "lib/global.h" #include "lib/global.h"
#include "strutil.h" #include "lib/strutil.h"
/* using g_ascii function from glib /* using g_ascii function from glib
* on terminal are showed only ascii characters (lower then 0x80) * on terminal are showed only ascii characters (lower then 0x80)

View File

@ -31,7 +31,7 @@
#include <string.h> #include <string.h>
#include "lib/global.h" #include "lib/global.h"
#include "strutil.h" #include "lib/strutil.h"
/* using function for utf-8 from glib */ /* using function for utf-8 from glib */

View File

@ -38,6 +38,13 @@
#include <unistd.h> #include <unistd.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/strutil.h" /* str_casecmp */
#include "lib/vfs/mc-vfs/vfs.h"
#ifdef ENABLE_VFS
#include "lib/vfs/mc-vfs/gc.h"
#endif /* ENABLE_VFS */
#include "tty.h" #include "tty.h"
#include "tty-internal.h" /* mouse_enabled */ #include "tty-internal.h" /* mouse_enabled */
@ -48,13 +55,7 @@
#include "src/main.h" #include "src/main.h"
#include "src/layout.h" /* winch_flag, mc_refresh() */ #include "src/layout.h" /* winch_flag, mc_refresh() */
#include "src/cons.saver.h" #include "src/cons.saver.h"
#include "src/strutil.h" /* str_casecmp */
#include "lib/vfs/mc-vfs/vfs.h"
#ifdef ENABLE_VFS
#include "lib/vfs/mc-vfs/gc.h"
#endif /* ENABLE_VFS */
#ifdef HAVE_TEXTMODE_X11_SUPPORT #ifdef HAVE_TEXTMODE_X11_SUPPORT
#include "x11conn.h" #include "x11conn.h"

View File

@ -37,6 +37,9 @@
#include <signal.h> #include <signal.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/strutil.h" /* str_term_form */
#include "src/main.h"
#ifndef WANT_TERM_H #ifndef WANT_TERM_H
# define WANT_TERM_H # define WANT_TERM_H
@ -46,9 +49,6 @@
#include "tty.h" #include "tty.h"
#include "color-internal.h" #include "color-internal.h"
#include "win.h" #include "win.h"
#include "src/main.h"
#include "src/strutil.h" /* str_term_form */
/* include at last !!! */ /* include at last !!! */
#ifdef WANT_TERM_H #ifdef WANT_TERM_H

View File

@ -40,6 +40,7 @@
#include <signal.h> #include <signal.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/strutil.h" /* str_term_form */
#include "tty-internal.h" /* slow_tty */ #include "tty-internal.h" /* slow_tty */
#include "tty.h" #include "tty.h"
@ -49,7 +50,6 @@
#include "key.h" /* define_sequence */ #include "key.h" /* define_sequence */
#include "win.h" #include "win.h"
#include "src/strutil.h" /* str_term_form */
/*** global variables **************************************************/ /*** global variables **************************************************/
extern int reset_hp_softkeys; extern int reset_hp_softkeys;

View File

@ -35,11 +35,11 @@
#include <stdarg.h> #include <stdarg.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/strutil.h"
#include "tty.h" #include "tty.h"
#include "tty-internal.h" #include "tty-internal.h"
#include "src/strutil.h"
/*** global variables **************************************************/ /*** global variables **************************************************/

View File

@ -47,9 +47,9 @@
#include "lib/timefmt.h" #include "lib/timefmt.h"
#include "lib/fileloc.h" #include "lib/fileloc.h"
#include "lib/vfs/mc-vfs/vfs.h" #include "lib/vfs/mc-vfs/vfs.h"
#include "lib/strutil.h"
#include "src/file.h" /* copy_file_file() */ #include "src/file.h" /* copy_file_file() */
#include "src/strutil.h"
/*In order to use everywhere the same setup /*In order to use everywhere the same setup
for the locale we use defines */ for the locale we use defines */

View File

@ -51,10 +51,10 @@
#include <dirent.h> #include <dirent.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/strutil.h"
#include "src/wtools.h" /* message() */ #include "src/wtools.h" /* message() */
#include "src/main.h" /* print_vfs_message */ #include "src/main.h" /* print_vfs_message */
#include "src/strutil.h"
#include "utilvfs.h" #include "utilvfs.h"
#include "gc.h" #include "gc.h"

View File

@ -68,11 +68,7 @@ SRC_mc_widgets = \
wtools.c wtools.h wtools.c wtools.h
SRC_mc_strutils = \ SRC_mc_strutils = \
strescape.c strescape.h \ strescape.c strescape.h
strutil8bit.c \
strutilascii.c \
strutil.c strutil.h \
strutilutf8.c
SRC_mc_conssaver = \ SRC_mc_conssaver = \
cons.handler.c cons.saver.h cons.handler.c cons.saver.h

View File

@ -39,11 +39,11 @@
#include "lib/tty/key.h" /* XCTRL and ALT macros */ #include "lib/tty/key.h" /* XCTRL and ALT macros */
#include "lib/skin/skin.h" #include "lib/skin/skin.h"
#include "lib/vfs/mc-vfs/vfs.h" #include "lib/vfs/mc-vfs/vfs.h"
#include "lib/strutil.h"
#include "dialog.h" #include "dialog.h"
#include "widget.h" #include "widget.h"
#include "wtools.h" /* For init_box_colors() */ #include "wtools.h" /* For init_box_colors() */
#include "strutil.h"
#include "dir.h" #include "dir.h"
#include "panel.h" /* Needed for the externs */ #include "panel.h" /* Needed for the externs */

View File

@ -30,8 +30,9 @@
#include "lib/global.h" #include "lib/global.h"
#include "lib/tty/tty.h" #include "lib/tty/tty.h"
#include "lib/strutil.h"
#include "src/args.h" #include "src/args.h"
#include "src/strutil.h"
#include "src/textconf.h" #include "src/textconf.h"
/*** external variables **************************************************************************/ /*** external variables **************************************************************************/

View File

@ -39,8 +39,16 @@
#include "lib/tty/tty.h" #include "lib/tty/tty.h"
#include "lib/skin/skin.h" /* INPUT_COLOR */ #include "lib/skin/skin.h" /* INPUT_COLOR */
#include "lib/tty/key.h" /* XCTRL and ALT macros */ #include "lib/tty/key.h" /* XCTRL and ALT macros */
#include "lib/mcconfig/mcconfig.h" /* Load/save user formats */ #include "lib/mcconfig/mcconfig.h" /* Load/save user formats */
#include "lib/strutil.h"
#ifdef USE_NETCODE
# include "lib/vfs/mc-vfs/ftpfs.h"
#endif
#ifdef ENABLE_VFS
#include "lib/vfs/mc-vfs/gc.h"
#endif
#include "dialog.h" /* The nice dialog manager */ #include "dialog.h" /* The nice dialog manager */
#include "widget.h" /* The widgets for the nice dialog manager */ #include "widget.h" /* The widgets for the nice dialog manager */
@ -54,21 +62,12 @@
#include "tree.h" #include "tree.h"
#include "layout.h" /* for get_nth_panel_name proto */ #include "layout.h" /* for get_nth_panel_name proto */
#include "background.h" /* task_list */ #include "background.h" /* task_list */
#include "strutil.h"
#ifdef HAVE_CHARSET #ifdef HAVE_CHARSET
#include "charsets.h" #include "charsets.h"
#include "selcodepage.h" #include "selcodepage.h"
#endif #endif
#ifdef USE_NETCODE
# include "lib/vfs/mc-vfs/ftpfs.h"
#endif
#ifdef ENABLE_VFS
#include "lib/vfs/mc-vfs/gc.h"
#endif
static WRadio *display_radio; static WRadio *display_radio;
static WInput *display_user_format; static WInput *display_user_format;

View File

@ -30,11 +30,12 @@
#include <string.h> #include <string.h>
#include "lib/global.h" #include "lib/global.h"
#include "charsets.h" #include "lib/strutil.h" /* utf-8 functions */
#include "strutil.h" /* utf-8 functions */
#include "main.h"
#include "lib/fileloc.h" #include "lib/fileloc.h"
#include "charsets.h"
#include "main.h"
int n_codepages = 0; int n_codepages = 0;
struct codepage_desc *codepages; struct codepage_desc *codepages;

View File

@ -36,6 +36,7 @@
#include "lib/tty/tty.h" #include "lib/tty/tty.h"
#include "lib/skin/skin.h" #include "lib/skin/skin.h"
#include "lib/vfs/mc-vfs/vfs.h" #include "lib/vfs/mc-vfs/vfs.h"
#include "lib/strutil.h"
#include "dialog.h" /* add_widget() */ #include "dialog.h" /* add_widget() */
#include "widget.h" /* NORMAL_BUTTON */ #include "widget.h" /* NORMAL_BUTTON */
@ -44,7 +45,6 @@
#include "main.h" /* update_panels() */ #include "main.h" /* update_panels() */
#include "layout.h" /* repaint_screen() */ #include "layout.h" /* repaint_screen() */
#include "chmod.h" #include "chmod.h"
#include "strutil.h"
static int single_set; static int single_set;

View File

@ -37,10 +37,10 @@
#include "lib/tty/tty.h" #include "lib/tty/tty.h"
#include "lib/skin/skin.h" #include "lib/skin/skin.h"
#include "lib/vfs/mc-vfs/vfs.h" #include "lib/vfs/mc-vfs/vfs.h"
#include "lib/strutil.h"
#include "dialog.h" #include "dialog.h"
#include "widget.h" #include "widget.h"
#include "strutil.h"
/* Needed for the extern declarations of integer parameters */ /* Needed for the extern declarations of integer parameters */
#include "dir.h" #include "dir.h"

View File

@ -56,6 +56,7 @@
#include "lib/filehighlight/fhl.h" /* MC_FHL_INI_FILE */ #include "lib/filehighlight/fhl.h" /* MC_FHL_INI_FILE */
#include "lib/vfs/mc-vfs/vfs.h" #include "lib/vfs/mc-vfs/vfs.h"
#include "lib/fileloc.h" #include "lib/fileloc.h"
#include "lib/strutil.h"
#include "cmd.h" /* Our definitions */ #include "cmd.h" /* Our definitions */
#include "fileopctx.h" #include "fileopctx.h"
@ -78,7 +79,6 @@
#include "setup.h" #include "setup.h"
#include "execute.h" /* toggle_panels() */ #include "execute.h" /* toggle_panels() */
#include "history.h" #include "history.h"
#include "strutil.h"
#include "dir.h" #include "dir.h"
#include "cmddef.h" /* CK_InputHistoryShow */ #include "cmddef.h" /* CK_InputHistoryShow */

View File

@ -41,13 +41,13 @@
#include "lib/tty/tty.h" #include "lib/tty/tty.h"
#include "lib/tty/key.h" /* XCTRL and ALT macros */ #include "lib/tty/key.h" /* XCTRL and ALT macros */
#include "lib/vfs/mc-vfs/vfs.h" #include "lib/vfs/mc-vfs/vfs.h"
#include "lib/strutil.h"
#include "dialog.h" #include "dialog.h"
#include "widget.h" #include "widget.h"
#include "wtools.h" #include "wtools.h"
#include "main.h" /* show_all_if_ambiguous */ #include "main.h" /* show_all_if_ambiguous */
#include "src/strescape.h" #include "src/strescape.h"
#include "strutil.h"
typedef char *CompletionFunction (const char * text, int state, INPUT_COMPLETE_FLAGS flags); typedef char *CompletionFunction (const char * text, int state, INPUT_COMPLETE_FLAGS flags);

View File

@ -35,13 +35,13 @@
#include "lib/skin/skin.h" #include "lib/skin/skin.h"
#include "lib/tty/mouse.h" #include "lib/tty/mouse.h"
#include "lib/tty/key.h" #include "lib/tty/key.h"
#include "lib/strutil.h"
#include "help.h" /* interactive_display() */ #include "help.h" /* interactive_display() */
#include "dialog.h" #include "dialog.h"
#include "layout.h" #include "layout.h"
#include "execute.h" /* suspend_cmd() */ #include "execute.h" /* suspend_cmd() */
#include "main.h" /* fast_refresh */ #include "main.h" /* fast_refresh */
#include "strutil.h"
#include "setup.h" /* mouse_close_dialog */ #include "setup.h" /* mouse_close_dialog */
/* Color styles for normal and error dialogs */ /* Color styles for normal and error dialogs */

View File

@ -32,10 +32,10 @@
#include "lib/search/search.h" #include "lib/search/search.h"
#include "lib/vfs/mc-vfs/vfs.h" #include "lib/vfs/mc-vfs/vfs.h"
#include "lib/fs.h" #include "lib/fs.h"
#include "lib/strutil.h"
#include "wtools.h" #include "wtools.h"
#include "treestore.h" #include "treestore.h"
#include "strutil.h"
#include "dir.h" #include "dir.h"
/* If true show files starting with a dot */ /* If true show files starting with a dot */

View File

@ -44,15 +44,15 @@
#include "lib/tty/color.h" #include "lib/tty/color.h"
#include "lib/tty/tty.h" /* attrset() */ #include "lib/tty/tty.h" /* attrset() */
#include "lib/tty/key.h" /* is_idle() */ #include "lib/tty/key.h" /* is_idle() */
#include "lib/skin/skin.h" /* EDITOR_NORMAL_COLOR */ #include "lib/skin/skin.h" /* EDITOR_NORMAL_COLOR */
#include "lib/vfs/mc-vfs/vfs.h"
#include "lib/strutil.h" /* utf string functions */
#include "src/widget.h" #include "src/widget.h"
#include "src/cmd.h" /* view_other_cmd() */ #include "src/cmd.h" /* view_other_cmd() */
#include "src/user.h" /* user_menu_cmd() */ #include "src/user.h" /* user_menu_cmd() */
#include "src/wtools.h" /* query_dialog() */ #include "src/wtools.h" /* query_dialog() */
#include "lib/timefmt.h" /* time formatting */ #include "lib/timefmt.h" /* time formatting */
#include "src/strutil.h" /* utf string functions */
#include "src/charsets.h" /* get_codepage_id */ #include "src/charsets.h" /* get_codepage_id */
#include "src/main.h" /* source_codepage */ #include "src/main.h" /* source_codepage */
#include "src/learn.h" /* learn_keys */ #include "src/learn.h" /* learn_keys */
@ -62,7 +62,6 @@
#include "editlock.h" #include "editlock.h"
#include "edit-widget.h" #include "edit-widget.h"
#include "lib/vfs/mc-vfs/vfs.h"
int option_word_wrap_line_length = 72; int option_word_wrap_line_length = 72;
int option_typewriter_wrap = 0; int option_typewriter_wrap = 0;

View File

@ -46,13 +46,11 @@
#include <fcntl.h> #include <fcntl.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/tty/tty.h" #include "lib/tty/tty.h"
#include "lib/tty/key.h" /* XCTRL */ #include "lib/tty/key.h" /* XCTRL */
#include "lib/mcconfig/mcconfig.h" #include "lib/mcconfig/mcconfig.h"
#include "lib/skin/skin.h" #include "lib/skin/skin.h"
#include "lib/strutil.h" /* utf string functions */
#include "src/history.h" #include "src/history.h"
#include "src/widget.h" /* listbox_new() */ #include "src/widget.h" /* listbox_new() */
@ -62,7 +60,6 @@
#include "src/wtools.h" /* message() */ #include "src/wtools.h" /* message() */
#include "src/charsets.h" #include "src/charsets.h"
#include "src/selcodepage.h" #include "src/selcodepage.h"
#include "src/strutil.h" /* utf string functions */
#include "src/cmddef.h" #include "src/cmddef.h"
#include "lib/vfs/mc-vfs/vfs.h" #include "lib/vfs/mc-vfs/vfs.h"

View File

@ -27,17 +27,15 @@
#include <config.h> #include <config.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/tty/tty.h" #include "lib/tty/tty.h"
#include "lib/skin/skin.h" /* INPUT_COLOR */ #include "lib/skin/skin.h" /* INPUT_COLOR */
#include "lib/tty/key.h" #include "lib/tty/key.h"
#include "lib/search/search.h" #include "lib/search/search.h"
#include "lib/strutil.h"
#include "src/dialog.h" #include "src/dialog.h"
#include "src/widget.h" #include "src/widget.h"
#include "src/wtools.h" #include "src/wtools.h"
#include "src/strutil.h"
#include "src/main.h" #include "src/main.h"
#include "src/history.h" #include "src/history.h"
#include "src/charsets.h" #include "src/charsets.h"

View File

@ -39,19 +39,19 @@
#include <sys/stat.h> #include <sys/stat.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/tty/tty.h" /* tty_printf() */
#include "lib/skin/skin.h"
#include "lib/tty/key.h" /* is_idle() */
#include "lib/strutil.h" /* utf string functions */
#include "edit-impl.h" #include "edit-impl.h"
#include "edit-widget.h" #include "edit-widget.h"
#define MAX_LINE_LEN 1024 #define MAX_LINE_LEN 1024
#include "lib/tty/tty.h" /* tty_printf() */
#include "lib/skin/skin.h"
#include "lib/tty/key.h" /* is_idle() */
#include "src/widget.h" /* buttonbar_redraw() */ #include "src/widget.h" /* buttonbar_redraw() */
#include "src/charsets.h" #include "src/charsets.h"
#include "src/strutil.h" /* utf string functions */
#include "src/main.h" /* source_codepage */ #include "src/main.h" /* source_codepage */
/* Text styles */ /* Text styles */

View File

@ -40,19 +40,18 @@
#include <stdlib.h> #include <stdlib.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/tty/tty.h" /* keys */
#include "lib/tty/key.h" /* KEY_M_SHIFT */
#include "lib/strutil.h" /* str_isutf8 () */
#include "edit-impl.h" #include "edit-impl.h"
#include "edit-widget.h" /* edit->macro_i */ #include "edit-widget.h" /* edit->macro_i */
#include "editcmd_dialogs.h" #include "editcmd_dialogs.h"
#include "lib/tty/tty.h" /* keys */
#include "lib/tty/key.h" /* KEY_M_SHIFT */
#include "src/cmddef.h" /* list of commands */ #include "src/cmddef.h" /* list of commands */
#include "src/keybind.h" /* lookup_keymap_command() */ #include "src/keybind.h" /* lookup_keymap_command() */
#include "src/charsets.h" /* convert_from_input_c() */ #include "src/charsets.h" /* convert_from_input_c() */
#include "src/main.h" /* display_codepage */ #include "src/main.h" /* display_codepage */
#include "src/strutil.h" /* str_isutf8 () */
/* /*
* Translate the keycode into either 'command' or 'char_for_insertion'. * Translate the keycode into either 'command' or 'char_for_insertion'.

View File

@ -53,14 +53,14 @@
#include <stdlib.h> #include <stdlib.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/vfs/mc-vfs/vfs.h"
#include "lib/strutil.h" /* utf string functions */
#include "edit-impl.h" #include "edit-impl.h"
#include "editlock.h" #include "editlock.h"
#include "src/wtools.h" /* edit_query_dialog () */ #include "src/wtools.h" /* edit_query_dialog () */
#include "src/strutil.h" /* utf string functions */
#include "lib/vfs/mc-vfs/vfs.h"
#define BUF_SIZE 255 #define BUF_SIZE 255
#define PID_BUF_SIZE 10 #define PID_BUF_SIZE 10

View File

@ -47,14 +47,12 @@
#include <stdlib.h> #include <stdlib.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/search/search.h" /* search engine */ #include "lib/search/search.h" /* search engine */
#include "lib/skin/skin.h" #include "lib/skin/skin.h"
#include "lib/strutil.h" /* utf string functions */
#include "src/main.h" /* mc_home */ #include "src/main.h" /* mc_home */
#include "src/wtools.h" /* message() */ #include "src/wtools.h" /* message() */
#include "src/strutil.h" /* utf string functions */
#include "edit-impl.h" #include "edit-impl.h"
#include "edit-widget.h" #include "edit-widget.h"

View File

@ -57,11 +57,12 @@
#include <sys/time.h> #include <sys/time.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/tty/tty.h" #include "lib/tty/tty.h"
#include "lib/tty/key.h" #include "lib/tty/key.h"
#include "lib/search/search.h" #include "lib/search/search.h"
#include "lib/vfs/mc-vfs/vfs-impl.h"
#include "lib/vfs/mc-vfs/vfs.h"
#include "lib/strutil.h"
#include "setup.h" #include "setup.h"
#include "dialog.h" #include "dialog.h"
@ -72,7 +73,6 @@
#include "wtools.h" #include "wtools.h"
#include "background.h" /* we_are_background */ #include "background.h" /* we_are_background */
#include "src/strescape.h" #include "src/strescape.h"
#include "strutil.h"
/* Needed for current_panel, other_panel and WTree */ /* Needed for current_panel, other_panel and WTree */
#include "dir.h" #include "dir.h"
@ -80,8 +80,6 @@
#include "file.h" #include "file.h"
#include "filegui.h" #include "filegui.h"
#include "tree.h" #include "tree.h"
#include "lib/vfs/mc-vfs/vfs-impl.h"
#include "lib/vfs/mc-vfs/vfs.h"
/* }}} */ /* }}} */

View File

@ -81,6 +81,7 @@
#include "lib/tty/key.h" /* tty_get_event */ #include "lib/tty/key.h" /* tty_get_event */
#include "lib/search/search.h" #include "lib/search/search.h"
#include "lib/vfs/mc-vfs/vfs.h" #include "lib/vfs/mc-vfs/vfs.h"
#include "lib/strutil.h"
#include "setup.h" /* verbose */ #include "setup.h" /* verbose */
#include "dialog.h" /* do_refresh() */ #include "dialog.h" /* do_refresh() */
@ -91,7 +92,6 @@
#include "panel.h" /* current_panel */ #include "panel.h" /* current_panel */
#include "fileopctx.h" /* FILE_CONT */ #include "fileopctx.h" /* FILE_CONT */
#include "filegui.h" #include "filegui.h"
#include "strutil.h"
#include "src/strescape.h" #include "src/strescape.h"
/* }}} */ /* }}} */

View File

@ -39,11 +39,10 @@
#include "lib/skin/skin.h" #include "lib/skin/skin.h"
#include "lib/search/search.h" #include "lib/search/search.h"
#include "lib/mcconfig/mcconfig.h" #include "lib/mcconfig/mcconfig.h"
#include "lib/vfs/mc-vfs/vfs.h" #include "lib/vfs/mc-vfs/vfs.h"
#include "lib/strutil.h"
#include "setup.h" /* verbose */ #include "setup.h" /* verbose */
#include "strutil.h"
#include "dialog.h" #include "dialog.h"
#include "widget.h" #include "widget.h"
#include "dir.h" #include "dir.h"

View File

@ -57,11 +57,11 @@
#include "lib/skin/skin.h" #include "lib/skin/skin.h"
#include "lib/tty/mouse.h" #include "lib/tty/mouse.h"
#include "lib/tty/key.h" #include "lib/tty/key.h"
#include "lib/strutil.h"
#include "dialog.h" /* For Dlg_head */ #include "dialog.h" /* For Dlg_head */
#include "widget.h" /* For Widget */ #include "widget.h" /* For Widget */
#include "wtools.h" /* For common_dialog_repaint() */ #include "wtools.h" /* For common_dialog_repaint() */
#include "strutil.h"
#include "cmddef.h" #include "cmddef.h"
#include "keybind.h" #include "keybind.h"
#include "help.h" #include "help.h"

View File

@ -45,12 +45,13 @@
#include "lib/tty/tty.h" /* COLS */ #include "lib/tty/tty.h" /* COLS */
#include "lib/skin/skin.h" #include "lib/skin/skin.h"
#include "lib/tty/key.h" /* KEY_M_CTRL */ #include "lib/tty/key.h" /* KEY_M_CTRL */
#include "lib/mcconfig/mcconfig.h" /* Load/save directories hotlist */
#include "lib/fileloc.h" #include "lib/fileloc.h"
#include "lib/strutil.h"
#include "dialog.h" #include "dialog.h"
#include "widget.h" #include "widget.h"
#include "setup.h" /* For profile_bname */ #include "setup.h" /* For profile_bname */
#include "lib/mcconfig/mcconfig.h" /* Load/save directories hotlist */
#include "wtools.h" /* QuickDialog */ #include "wtools.h" /* QuickDialog */
#include "panel.h" /* current_panel */ #include "panel.h" /* current_panel */
#include "main.h" /* update_panels() */ #include "main.h" /* update_panels() */
@ -58,7 +59,6 @@
#include "hotlist.h" #include "hotlist.h"
#include "command.h" /* cmdline */ #include "command.h" /* cmdline */
#include "history.h" #include "history.h"
#include "strutil.h"
#define UX 5 #define UX 5
#define UY 2 #define UY 2

View File

@ -31,6 +31,7 @@
#include "lib/tty/mouse.h" /* Gpm_Event */ #include "lib/tty/mouse.h" /* Gpm_Event */
#include "lib/skin/skin.h" #include "lib/skin/skin.h"
#include "lib/unixcompat.h" #include "lib/unixcompat.h"
#include "lib/strutil.h"
#include "dialog.h" #include "dialog.h"
#include "widget.h" /* default_proc*/ #include "widget.h" /* default_proc*/
@ -41,7 +42,6 @@
#include "menu.h" /* menubar_visible */ #include "menu.h" /* menubar_visible */
#include "layout.h" #include "layout.h"
#include "mountlist.h" #include "mountlist.h"
#include "strutil.h"
#include "info.h" #include "info.h"
#ifndef VERSION #ifndef VERSION

View File

@ -35,14 +35,13 @@
#include <unistd.h> #include <unistd.h>
#include "lib/global.h" #include "lib/global.h"
#include "cmddef.h" /* CK_ cmd name const */
#include "lib/tty/win.h" #include "lib/tty/win.h"
#include "lib/tty/key.h" /* KEY_M_ */ #include "lib/tty/key.h" /* KEY_M_ */
#include "lib/tty/tty.h" /* keys */ #include "lib/tty/tty.h" /* keys */
#include "wtools.h" #include "lib/strutil.h"
#include "strutil.h"
#include "cmddef.h" /* CK_ cmd name const */
#include "wtools.h"
#include "keybind.h" #include "keybind.h"
static name_keymap_t command_names[] = { static name_keymap_t command_names[] = {

View File

@ -45,14 +45,14 @@
#include <unistd.h> #include <unistd.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/tty/tty.h" #include "lib/tty/tty.h"
#include "lib/skin/skin.h" #include "lib/skin/skin.h"
#include "lib/tty/key.h" #include "lib/tty/key.h"
#include "lib/tty/mouse.h" #include "lib/tty/mouse.h"
#include "lib/tty/win.h" /* do_enter_ca_mode() */ #include "lib/tty/win.h" /* do_enter_ca_mode() */
#include "lib/mcconfig/mcconfig.h" #include "lib/mcconfig/mcconfig.h"
#include "lib/vfs/mc-vfs/vfs.h" /* For vfs_translate_url() */
#include "lib/strutil.h"
#include "dialog.h" #include "dialog.h"
#include "widget.h" #include "widget.h"
@ -62,7 +62,6 @@
#include "subshell.h" /* For use_subshell and resize_subshell() */ #include "subshell.h" /* For use_subshell and resize_subshell() */
#include "tree.h" #include "tree.h"
#include "menu.h" #include "menu.h"
#include "strutil.h"
#include "background.h" /* we_are_background */ #include "background.h" /* we_are_background */
/* Needed for the extern declarations of integer parameters */ /* Needed for the extern declarations of integer parameters */
#include "dir.h" #include "dir.h"
@ -73,7 +72,6 @@
#include "src/viewer/mcviewer.h" /* The view widget */ #include "src/viewer/mcviewer.h" /* The view widget */
#include "setup.h" /* For save_setup() */ #include "setup.h" /* For save_setup() */
#include "lib/vfs/mc-vfs/vfs.h" /* For vfs_translate_url() */
/* Controls the display of the rotating dash on the verbose mode */ /* Controls the display of the rotating dash on the verbose mode */
int nice_rotating_dash = 1; int nice_rotating_dash = 1;

View File

@ -38,15 +38,15 @@
#include "lib/tty/tty.h" #include "lib/tty/tty.h"
#include "lib/tty/key.h" #include "lib/tty/key.h"
#include "lib/mcconfig/mcconfig.h" /* Save profile */
#include "lib/strutil.h"
#include "dialog.h" #include "dialog.h"
#include "widget.h" #include "widget.h"
#include "lib/mcconfig/mcconfig.h" /* Save profile */
#include "setup.h" #include "setup.h"
#include "layout.h" /* repaint_screen() */ #include "layout.h" /* repaint_screen() */
#include "learn.h" #include "learn.h"
#include "wtools.h" #include "wtools.h"
#include "strutil.h"
#include "strescape.h" #include "strescape.h"
#define UX 4 #define UX 4

View File

@ -61,6 +61,8 @@
#include "lib/vfs/mc-vfs/gc.h" #include "lib/vfs/mc-vfs/gc.h"
#endif #endif
#include "lib/strutil.h"
#include "src/args.h" #include "src/args.h"
#include "dir.h" #include "dir.h"
@ -82,7 +84,6 @@
#include "listmode.h" #include "listmode.h"
#include "execute.h" #include "execute.h"
#include "ext.h" /* For flush_extension_file() */ #include "ext.h" /* For flush_extension_file() */
#include "strutil.h"
#include "widget.h" #include "widget.h"
#include "command.h" #include "command.h"
#include "wtools.h" #include "wtools.h"

View File

@ -32,13 +32,13 @@
#include "lib/skin/skin.h" #include "lib/skin/skin.h"
#include "lib/tty/mouse.h" #include "lib/tty/mouse.h"
#include "lib/tty/key.h" /* key macros */ #include "lib/tty/key.h" /* key macros */
#include "lib/strutil.h"
#include "cmddef.h" /* CK_Ignore_Key */ #include "cmddef.h" /* CK_Ignore_Key */
#include "help.h" #include "help.h"
#include "dialog.h" #include "dialog.h"
#include "widget.h" #include "widget.h"
#include "main.h" /* is_right */ #include "main.h" /* is_right */
#include "strutil.h"
#include "menu.h" #include "menu.h"
int menubar_visible = 1; /* This is the new default */ int menubar_visible = 1; /* This is the new default */

View File

@ -31,15 +31,14 @@
#include <unistd.h> #include <unistd.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/tty/tty.h" #include "lib/tty/tty.h"
#include "lib/mcconfig/mcconfig.h" /* For mc_config_save_file */
#include "lib/strutil.h"
#include "dialog.h" #include "dialog.h"
#include "widget.h" #include "widget.h"
#include "setup.h" /* For save_setup() */ #include "setup.h" /* For save_setup() */
#include "main.h" #include "main.h"
#include "lib/mcconfig/mcconfig.h" /* For mc_config_save_file */
#include "strutil.h"
#include "panel.h" /* Needed for the externs */ #include "panel.h" /* Needed for the externs */
#include "file.h" /* safe_delete */ #include "file.h" /* safe_delete */
#include "layout.h" /* For nice_rotating_dash */ #include "layout.h" /* For nice_rotating_dash */

View File

@ -6,10 +6,11 @@
#ifndef MC_PANEL_H #ifndef MC_PANEL_H
#define MC_PANEL_H #define MC_PANEL_H
#include "lib/fs.h" /* MC_MAXPATHLEN */
#include "lib/strutil.h"
#include "dir.h" /* dir_list */ #include "dir.h" /* dir_list */
#include "dialog.h" /* Widget */ #include "dialog.h" /* Widget */
#include "lib/fs.h" /* MC_MAXPATHLEN */
#include "strutil.h"
#define selection(p) (&(p->dir.list[p->selected])) #define selection(p) (&(p->dir.list[p->selected]))
#define DEFAULT_USER_FORMAT "half type name | size | perm" #define DEFAULT_USER_FORMAT "half type name | size | perm"

View File

@ -36,21 +36,20 @@
#include "lib/global.h" #include "lib/global.h"
#include "lib/skin/skin.h" #include "lib/skin/skin.h"
#include "lib/vfs/mc-vfs/vfs.h" #include "lib/vfs/mc-vfs/vfs.h"
#include "lib/mcconfig/mcconfig.h" /* Load/save directories panelize */
#include "lib/strutil.h"
#include "dialog.h" #include "dialog.h"
#include "widget.h" #include "widget.h"
#include "wtools.h" /* For common_dialog_repaint() */ #include "wtools.h" /* For common_dialog_repaint() */
#include "setup.h" /* For profile_bname */ #include "setup.h" /* For profile_bname */
#include "lib/mcconfig/mcconfig.h" /* Load/save directories panelize */
#include "dir.h" #include "dir.h"
#include "panel.h" /* current_panel */ #include "panel.h" /* current_panel */
#include "layout.h" /* repaint_screen() */ #include "layout.h" /* repaint_screen() */
#include "main.h" #include "main.h"
#include "panelize.h" #include "panelize.h"
#include "history.h" #include "history.h"
#include "strutil.h"
#define UX 5 #define UX 5
#define UY 2 #define UY 2

View File

@ -37,6 +37,16 @@
#include "lib/mcconfig/mcconfig.h" #include "lib/mcconfig/mcconfig.h"
#include "lib/fileloc.h" #include "lib/fileloc.h"
#ifdef ENABLE_VFS
#include "lib/vfs/mc-vfs/gc.h"
#endif
#ifdef USE_NETCODE
# include "lib/vfs/mc-vfs/ftpfs.h"
# include "lib/vfs/mc-vfs/fish.h"
#endif
#include "lib/strutil.h" /* str_isutf8 () */
#include "args.h" #include "args.h"
#include "dir.h" #include "dir.h"
#include "panel.h" #include "panel.h"
@ -53,24 +63,14 @@
#include "keybind.h" /* lookup_action */ #include "keybind.h" /* lookup_action */
#include "wtools.h" #include "wtools.h"
#ifdef ENABLE_VFS
#include "lib/vfs/mc-vfs/gc.h"
#endif
#ifdef HAVE_CHARSET #ifdef HAVE_CHARSET
#include "charsets.h" #include "charsets.h"
#endif #endif
#ifdef USE_NETCODE
# include "lib/vfs/mc-vfs/ftpfs.h"
# include "lib/vfs/mc-vfs/fish.h"
#endif
#ifdef USE_INTERNAL_EDIT #ifdef USE_INTERNAL_EDIT
# include "src/editor/edit.h" # include "src/editor/edit.h"
#endif #endif
#include "src/strutil.h" /* str_isutf8 () */
extern int num_history_items_recorded; extern int num_history_items_recorded;

View File

@ -49,15 +49,15 @@
#include "lib/global.h" #include "lib/global.h"
#include "lib/tty/tty.h" /* LINES */ #include "lib/tty/tty.h" /* LINES */
#include "lib/tty/key.h" /* XCTRL */
#include "lib/vfs/mc-vfs/vfs.h"
#include "lib/strutil.h"
#include "panel.h" /* current_panel */ #include "panel.h" /* current_panel */
#include "wtools.h" /* query_dialog() */ #include "wtools.h" /* query_dialog() */
#include "main.h" /* do_update_prompt() */ #include "main.h" /* do_update_prompt() */
#include "cons.saver.h" /* handle_console() */ #include "cons.saver.h" /* handle_console() */
#include "lib/tty/key.h" /* XCTRL */
#include "subshell.h" #include "subshell.h"
#include "strutil.h"
#include "lib/vfs/mc-vfs/vfs.h"
#ifndef WEXITSTATUS #ifndef WEXITSTATUS
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)

View File

@ -47,6 +47,7 @@
#include "lib/tty/key.h" #include "lib/tty/key.h"
#include "lib/vfs/mc-vfs/vfs.h" #include "lib/vfs/mc-vfs/vfs.h"
#include "lib/fileloc.h" #include "lib/fileloc.h"
#include "lib/strutil.h"
#include "wtools.h" /* message() */ #include "wtools.h" /* message() */
#include "dir.h" #include "dir.h"
@ -64,7 +65,6 @@
#include "cmddef.h" #include "cmddef.h"
#include "keybind.h" #include "keybind.h"
#include "history.h" #include "history.h"
#include "strutil.h"
#include "tree.h" #include "tree.h"
const global_keymap_t *tree_map; const global_keymap_t *tree_map;

View File

@ -31,6 +31,13 @@
#include "lib/global.h" #include "lib/global.h"
#include "lib/tty/tty.h" #include "lib/tty/tty.h"
#include "lib/skin/skin.h" #include "lib/skin/skin.h"
#include "lib/search/search.h"
#include "lib/vfs/mc-vfs/vfs.h"
#include "lib/strutil.h"
#include "src/editor/edit.h" /* WEdit, BLOCK_FILE */
#include "src/viewer/mcviewer.h" /* for default_* externs */
#include "dir.h" #include "dir.h"
#include "panel.h" #include "panel.h"
#include "main.h" #include "main.h"
@ -39,18 +46,12 @@
#include "execute.h" #include "execute.h"
#include "setup.h" #include "setup.h"
#include "history.h" #include "history.h"
#include "strutil.h"
#include "lib/search/search.h"
#include "lib/vfs/mc-vfs/vfs.h"
#include "src/editor/edit.h" /* WEdit, BLOCK_FILE */
/* For the simple listbox manager */ /* For the simple listbox manager */
#include "dialog.h" #include "dialog.h"
#include "widget.h" #include "widget.h"
#include "wtools.h" #include "wtools.h"
#include "src/viewer/mcviewer.h" /* for default_* externs */
#define MAX_ENTRIES 16 #define MAX_ENTRIES 16
#define MAX_ENTRY_LEN 60 #define MAX_ENTRY_LEN 60

View File

@ -41,13 +41,12 @@
#include <sys/types.h> #include <sys/types.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/search/search.h" #include "lib/search/search.h"
#include "lib/strutil.h"
#include "src/wtools.h" #include "src/wtools.h"
#include "src/history.h" #include "src/history.h"
#include "src/charsets.h" #include "src/charsets.h"
#include "src/strutil.h"
#include "internal.h" #include "internal.h"

View File

@ -41,7 +41,8 @@
#include "lib/skin/skin.h" #include "lib/skin/skin.h"
#include "lib/tty/tty.h" #include "lib/tty/tty.h"
#include "lib/tty/key.h" #include "lib/tty/key.h"
#include "src/strutil.h" #include "lib/strutil.h"
#include "src/main.h" #include "src/main.h"
#include "src/dialog.h" /* Dlg_head */ #include "src/dialog.h" /* Dlg_head */
#include "src/widget.h" /* WButtonBar */ #include "src/widget.h" /* WButtonBar */

View File

@ -40,12 +40,13 @@
#include <limits.h> #include <limits.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/vfs/mc-vfs/vfs.h"
#include "lib/strutil.h"
#include "src/wtools.h" #include "src/wtools.h"
#include "src/strutil.h"
#include "src/main.h" #include "src/main.h"
#include "src/charsets.h" #include "src/charsets.h"
#include "src/selcodepage.h" #include "src/selcodepage.h"
#include "lib/vfs/mc-vfs/vfs.h"
#include "internal.h" #include "internal.h"
#include "mcviewer.h" #include "mcviewer.h"

View File

@ -41,13 +41,14 @@
#include "lib/global.h" #include "lib/global.h"
#include "lib/tty/tty.h" #include "lib/tty/tty.h"
#include "src/strutil.h" #include "lib/vfs/mc-vfs/vfs.h"
#include "lib/strutil.h"
#include "src/main.h" #include "src/main.h"
#include "src/charsets.h" #include "src/charsets.h"
#include "src/main-widgets.h" /* the_menubar */ #include "src/main-widgets.h" /* the_menubar */
#include "src/menu.h" /* menubar_visible */ #include "src/menu.h" /* menubar_visible */
#include "src/widget.h" #include "src/widget.h"
#include "lib/vfs/mc-vfs/vfs.h"
#include "internal.h" #include "internal.h"
#include "mcviewer.h" #include "mcviewer.h"

View File

@ -47,14 +47,13 @@
#include "lib/tty/mouse.h" #include "lib/tty/mouse.h"
#include "lib/tty/key.h" /* XCTRL and ALT macros */ #include "lib/tty/key.h" /* XCTRL and ALT macros */
#include "lib/mcconfig/mcconfig.h" /* for history loading and saving */ #include "lib/mcconfig/mcconfig.h" /* for history loading and saving */
#include "lib/fileloc.h"
#include "lib/vfs/mc-vfs/vfs.h" #include "lib/vfs/mc-vfs/vfs.h"
#include "lib/fileloc.h"
#include "lib/strutil.h"
#include "dialog.h" #include "dialog.h"
#include "widget.h" #include "widget.h"
#include "wtools.h" #include "wtools.h"
#include "strutil.h"
#include "cmddef.h" /* CK_ cmd name const */ #include "cmddef.h" /* CK_ cmd name const */
#include "keybind.h" /* global_keymap_t */ #include "keybind.h" /* global_keymap_t */

View File

@ -34,17 +34,15 @@
#include <string.h> #include <string.h>
#include "lib/global.h" #include "lib/global.h"
#include "lib/tty/tty.h" #include "lib/tty/tty.h"
#include "lib/tty/key.h" /* tty_getch() */ #include "lib/tty/key.h" /* tty_getch() */
#include "lib/skin/skin.h" /* INPUT_COLOR */ #include "lib/skin/skin.h" /* INPUT_COLOR */
#include "lib/strutil.h"
#include "dialog.h" #include "dialog.h"
#include "widget.h" #include "widget.h"
#include "wtools.h" #include "wtools.h"
#include "background.h" /* parent_call */ #include "background.h" /* parent_call */
#include "strutil.h"
Listbox * Listbox *