mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 04:22:34 +03:00
Changes for build after moving strutil into lib
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
3a801603c5
commit
cd4dbf3a09
@ -583,6 +583,7 @@ lib/filehighlight/Makefile
|
||||
lib/mcconfig/Makefile
|
||||
lib/search/Makefile
|
||||
lib/skin/Makefile
|
||||
lib/strutil/Makefile
|
||||
lib/tty/Makefile
|
||||
lib/vfs/Makefile
|
||||
lib/vfs/mc-vfs/Makefile
|
||||
|
@ -1,4 +1,4 @@
|
||||
SUBDIRS = filehighlight mcconfig search skin tty vfs
|
||||
SUBDIRS = filehighlight mcconfig search skin tty vfs strutil
|
||||
|
||||
noinst_LTLIBRARIES = libmc.la
|
||||
|
||||
@ -24,6 +24,7 @@ libmc_la_LIBADD = \
|
||||
filehighlight/libmcfilehighlight.la \
|
||||
mcconfig/libmcconfig.la \
|
||||
search/libsearch.la \
|
||||
strutil/libmcstrutil.la \
|
||||
skin/libmcskin.la \
|
||||
tty/libmctty.la \
|
||||
$(INTLLIBS) $(MCLIBS) $(SLANGLIB) $(LIBICONV) $(GLIB_LIBS)
|
||||
|
@ -20,9 +20,9 @@
|
||||
#include <config.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "mcconfig.h"
|
||||
#include "src/strutil.h"
|
||||
|
||||
/*** global variables **************************************************/
|
||||
|
||||
|
@ -20,9 +20,9 @@
|
||||
#include <config.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "mcconfig.h"
|
||||
#include "src/strutil.h"
|
||||
|
||||
/*** global variables **************************************************/
|
||||
|
||||
|
@ -29,12 +29,14 @@
|
||||
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "search.h"
|
||||
#include "internal.h"
|
||||
#include "src/strutil.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "src/strescape.h"
|
||||
#include "src/charsets.h"
|
||||
|
||||
#include "search.h"
|
||||
#include "internal.h"
|
||||
|
||||
/*** global variables ****************************************************************************/
|
||||
|
||||
/*** file scope macro definitions ****************************************************************/
|
||||
|
@ -30,12 +30,14 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "search.h"
|
||||
#include "internal.h"
|
||||
#include "src/strutil.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "src/strescape.h"
|
||||
#include "src/charsets.h"
|
||||
|
||||
#include "search.h"
|
||||
#include "internal.h"
|
||||
|
||||
/*** global variables ****************************************************************************/
|
||||
|
||||
/*** file scope macro definitions ****************************************************************/
|
||||
|
@ -31,9 +31,10 @@
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "search.h"
|
||||
#include "internal.h"
|
||||
#include "src/strutil.h"
|
||||
#include "src/charsets.h"
|
||||
|
||||
/*** global variables ****************************************************************************/
|
||||
|
@ -29,10 +29,12 @@
|
||||
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "src/charsets.h"
|
||||
|
||||
#include "search.h"
|
||||
#include "internal.h"
|
||||
#include "src/strutil.h"
|
||||
#include "src/charsets.h"
|
||||
|
||||
/*** global variables ****************************************************************************/
|
||||
|
||||
|
@ -30,12 +30,14 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "search.h"
|
||||
#include "internal.h"
|
||||
#include "src/strutil.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "src/strescape.h"
|
||||
#include "src/charsets.h"
|
||||
|
||||
#include "search.h"
|
||||
#include "internal.h"
|
||||
|
||||
/*** global variables ****************************************************************************/
|
||||
|
||||
/*** file scope macro definitions ****************************************************************/
|
||||
|
@ -31,10 +31,12 @@
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "src/charsets.h"
|
||||
|
||||
#include "search.h"
|
||||
#include "internal.h"
|
||||
#include "src/strutil.h"
|
||||
#include "src/charsets.h"
|
||||
|
||||
/*** global variables ****************************************************************************/
|
||||
|
||||
|
9
lib/strutil/Makefile.am
Normal file
9
lib/strutil/Makefile.am
Normal 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)
|
@ -31,7 +31,7 @@
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "strutil.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
/*names, that are used for utf-8 */
|
||||
static const char *str_utf8_encodings[] = {
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include <errno.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "strutil.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
/* functions for singlebyte encodings, all characters have width 1
|
||||
* using standard system functions
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include <config.h>
|
||||
#include <errno.h>
|
||||
#include "lib/global.h"
|
||||
#include "strutil.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
/* using g_ascii function from glib
|
||||
* on terminal are showed only ascii characters (lower then 0x80)
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "strutil.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
/* using function for utf-8 from glib */
|
||||
|
||||
|
@ -38,6 +38,13 @@
|
||||
#include <unistd.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-internal.h" /* mouse_enabled */
|
||||
@ -48,13 +55,7 @@
|
||||
#include "src/main.h"
|
||||
#include "src/layout.h" /* winch_flag, mc_refresh() */
|
||||
#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
|
||||
#include "x11conn.h"
|
||||
|
@ -37,6 +37,9 @@
|
||||
#include <signal.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "lib/strutil.h" /* str_term_form */
|
||||
|
||||
#include "src/main.h"
|
||||
|
||||
#ifndef WANT_TERM_H
|
||||
# define WANT_TERM_H
|
||||
@ -46,9 +49,6 @@
|
||||
#include "tty.h"
|
||||
#include "color-internal.h"
|
||||
#include "win.h"
|
||||
#include "src/main.h"
|
||||
|
||||
#include "src/strutil.h" /* str_term_form */
|
||||
|
||||
/* include at last !!! */
|
||||
#ifdef WANT_TERM_H
|
||||
|
@ -40,6 +40,7 @@
|
||||
#include <signal.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "lib/strutil.h" /* str_term_form */
|
||||
|
||||
#include "tty-internal.h" /* slow_tty */
|
||||
#include "tty.h"
|
||||
@ -49,7 +50,6 @@
|
||||
#include "key.h" /* define_sequence */
|
||||
#include "win.h"
|
||||
|
||||
#include "src/strutil.h" /* str_term_form */
|
||||
|
||||
/*** global variables **************************************************/
|
||||
extern int reset_hp_softkeys;
|
||||
|
@ -35,11 +35,11 @@
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "tty.h"
|
||||
#include "tty-internal.h"
|
||||
|
||||
#include "src/strutil.h"
|
||||
|
||||
/*** global variables **************************************************/
|
||||
|
||||
|
@ -47,9 +47,9 @@
|
||||
#include "lib/timefmt.h"
|
||||
#include "lib/fileloc.h"
|
||||
#include "lib/vfs/mc-vfs/vfs.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "src/file.h" /* copy_file_file() */
|
||||
#include "src/strutil.h"
|
||||
|
||||
/*In order to use everywhere the same setup
|
||||
for the locale we use defines */
|
||||
|
@ -51,10 +51,10 @@
|
||||
#include <dirent.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "src/wtools.h" /* message() */
|
||||
#include "src/main.h" /* print_vfs_message */
|
||||
#include "src/strutil.h"
|
||||
|
||||
#include "utilvfs.h"
|
||||
#include "gc.h"
|
||||
|
@ -68,11 +68,7 @@ SRC_mc_widgets = \
|
||||
wtools.c wtools.h
|
||||
|
||||
SRC_mc_strutils = \
|
||||
strescape.c strescape.h \
|
||||
strutil8bit.c \
|
||||
strutilascii.c \
|
||||
strutil.c strutil.h \
|
||||
strutilutf8.c
|
||||
strescape.c strescape.h
|
||||
|
||||
SRC_mc_conssaver = \
|
||||
cons.handler.c cons.saver.h
|
||||
|
@ -39,11 +39,11 @@
|
||||
#include "lib/tty/key.h" /* XCTRL and ALT macros */
|
||||
#include "lib/skin/skin.h"
|
||||
#include "lib/vfs/mc-vfs/vfs.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "dialog.h"
|
||||
#include "widget.h"
|
||||
#include "wtools.h" /* For init_box_colors() */
|
||||
#include "strutil.h"
|
||||
|
||||
#include "dir.h"
|
||||
#include "panel.h" /* Needed for the externs */
|
||||
|
@ -30,8 +30,9 @@
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "lib/tty/tty.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "src/args.h"
|
||||
#include "src/strutil.h"
|
||||
#include "src/textconf.h"
|
||||
|
||||
/*** external variables **************************************************************************/
|
||||
|
19
src/boxes.c
19
src/boxes.c
@ -39,8 +39,16 @@
|
||||
#include "lib/tty/tty.h"
|
||||
#include "lib/skin/skin.h" /* INPUT_COLOR */
|
||||
#include "lib/tty/key.h" /* XCTRL and ALT macros */
|
||||
|
||||
#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 "widget.h" /* The widgets for the nice dialog manager */
|
||||
@ -54,21 +62,12 @@
|
||||
#include "tree.h"
|
||||
#include "layout.h" /* for get_nth_panel_name proto */
|
||||
#include "background.h" /* task_list */
|
||||
#include "strutil.h"
|
||||
|
||||
#ifdef HAVE_CHARSET
|
||||
#include "charsets.h"
|
||||
#include "selcodepage.h"
|
||||
#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 WInput *display_user_format;
|
||||
|
@ -30,11 +30,12 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "charsets.h"
|
||||
#include "strutil.h" /* utf-8 functions */
|
||||
#include "main.h"
|
||||
#include "lib/strutil.h" /* utf-8 functions */
|
||||
#include "lib/fileloc.h"
|
||||
|
||||
#include "charsets.h"
|
||||
#include "main.h"
|
||||
|
||||
int n_codepages = 0;
|
||||
|
||||
struct codepage_desc *codepages;
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include "lib/tty/tty.h"
|
||||
#include "lib/skin/skin.h"
|
||||
#include "lib/vfs/mc-vfs/vfs.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "dialog.h" /* add_widget() */
|
||||
#include "widget.h" /* NORMAL_BUTTON */
|
||||
@ -44,7 +45,6 @@
|
||||
#include "main.h" /* update_panels() */
|
||||
#include "layout.h" /* repaint_screen() */
|
||||
#include "chmod.h"
|
||||
#include "strutil.h"
|
||||
|
||||
static int single_set;
|
||||
|
||||
|
@ -37,10 +37,10 @@
|
||||
#include "lib/tty/tty.h"
|
||||
#include "lib/skin/skin.h"
|
||||
#include "lib/vfs/mc-vfs/vfs.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "dialog.h"
|
||||
#include "widget.h"
|
||||
#include "strutil.h"
|
||||
|
||||
/* Needed for the extern declarations of integer parameters */
|
||||
#include "dir.h"
|
||||
|
@ -56,6 +56,7 @@
|
||||
#include "lib/filehighlight/fhl.h" /* MC_FHL_INI_FILE */
|
||||
#include "lib/vfs/mc-vfs/vfs.h"
|
||||
#include "lib/fileloc.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "cmd.h" /* Our definitions */
|
||||
#include "fileopctx.h"
|
||||
@ -78,7 +79,6 @@
|
||||
#include "setup.h"
|
||||
#include "execute.h" /* toggle_panels() */
|
||||
#include "history.h"
|
||||
#include "strutil.h"
|
||||
#include "dir.h"
|
||||
#include "cmddef.h" /* CK_InputHistoryShow */
|
||||
|
||||
|
@ -41,13 +41,13 @@
|
||||
#include "lib/tty/tty.h"
|
||||
#include "lib/tty/key.h" /* XCTRL and ALT macros */
|
||||
#include "lib/vfs/mc-vfs/vfs.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "dialog.h"
|
||||
#include "widget.h"
|
||||
#include "wtools.h"
|
||||
#include "main.h" /* show_all_if_ambiguous */
|
||||
#include "src/strescape.h"
|
||||
#include "strutil.h"
|
||||
|
||||
typedef char *CompletionFunction (const char * text, int state, INPUT_COMPLETE_FLAGS flags);
|
||||
|
||||
|
@ -35,13 +35,13 @@
|
||||
#include "lib/skin/skin.h"
|
||||
#include "lib/tty/mouse.h"
|
||||
#include "lib/tty/key.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "help.h" /* interactive_display() */
|
||||
#include "dialog.h"
|
||||
#include "layout.h"
|
||||
#include "execute.h" /* suspend_cmd() */
|
||||
#include "main.h" /* fast_refresh */
|
||||
#include "strutil.h"
|
||||
#include "setup.h" /* mouse_close_dialog */
|
||||
|
||||
/* Color styles for normal and error dialogs */
|
||||
|
@ -32,10 +32,10 @@
|
||||
#include "lib/search/search.h"
|
||||
#include "lib/vfs/mc-vfs/vfs.h"
|
||||
#include "lib/fs.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "wtools.h"
|
||||
#include "treestore.h"
|
||||
#include "strutil.h"
|
||||
#include "dir.h"
|
||||
|
||||
/* If true show files starting with a dot */
|
||||
|
@ -44,15 +44,15 @@
|
||||
#include "lib/tty/color.h"
|
||||
#include "lib/tty/tty.h" /* attrset() */
|
||||
#include "lib/tty/key.h" /* is_idle() */
|
||||
|
||||
#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/cmd.h" /* view_other_cmd() */
|
||||
#include "src/user.h" /* user_menu_cmd() */
|
||||
#include "src/wtools.h" /* query_dialog() */
|
||||
#include "lib/timefmt.h" /* time formatting */
|
||||
#include "src/strutil.h" /* utf string functions */
|
||||
#include "src/charsets.h" /* get_codepage_id */
|
||||
#include "src/main.h" /* source_codepage */
|
||||
#include "src/learn.h" /* learn_keys */
|
||||
@ -62,7 +62,6 @@
|
||||
#include "editlock.h"
|
||||
#include "edit-widget.h"
|
||||
|
||||
#include "lib/vfs/mc-vfs/vfs.h"
|
||||
|
||||
int option_word_wrap_line_length = 72;
|
||||
int option_typewriter_wrap = 0;
|
||||
|
@ -46,13 +46,11 @@
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
|
||||
#include "lib/tty/tty.h"
|
||||
#include "lib/tty/key.h" /* XCTRL */
|
||||
|
||||
#include "lib/mcconfig/mcconfig.h"
|
||||
|
||||
#include "lib/skin/skin.h"
|
||||
#include "lib/strutil.h" /* utf string functions */
|
||||
|
||||
#include "src/history.h"
|
||||
#include "src/widget.h" /* listbox_new() */
|
||||
@ -62,7 +60,6 @@
|
||||
#include "src/wtools.h" /* message() */
|
||||
#include "src/charsets.h"
|
||||
#include "src/selcodepage.h"
|
||||
#include "src/strutil.h" /* utf string functions */
|
||||
#include "src/cmddef.h"
|
||||
|
||||
#include "lib/vfs/mc-vfs/vfs.h"
|
||||
|
@ -27,17 +27,15 @@
|
||||
#include <config.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
|
||||
#include "lib/tty/tty.h"
|
||||
#include "lib/skin/skin.h" /* INPUT_COLOR */
|
||||
#include "lib/tty/key.h"
|
||||
|
||||
#include "lib/search/search.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "src/dialog.h"
|
||||
#include "src/widget.h"
|
||||
#include "src/wtools.h"
|
||||
#include "src/strutil.h"
|
||||
#include "src/main.h"
|
||||
#include "src/history.h"
|
||||
#include "src/charsets.h"
|
||||
|
@ -39,19 +39,19 @@
|
||||
#include <sys/stat.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-widget.h"
|
||||
|
||||
#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/charsets.h"
|
||||
#include "src/strutil.h" /* utf string functions */
|
||||
#include "src/main.h" /* source_codepage */
|
||||
|
||||
/* Text styles */
|
||||
|
@ -40,19 +40,18 @@
|
||||
#include <stdlib.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-widget.h" /* edit->macro_i */
|
||||
#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/keybind.h" /* lookup_keymap_command() */
|
||||
#include "src/charsets.h" /* convert_from_input_c() */
|
||||
#include "src/main.h" /* display_codepage */
|
||||
#include "src/strutil.h" /* str_isutf8 () */
|
||||
|
||||
/*
|
||||
* Translate the keycode into either 'command' or 'char_for_insertion'.
|
||||
|
@ -53,14 +53,14 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "lib/vfs/mc-vfs/vfs.h"
|
||||
#include "lib/strutil.h" /* utf string functions */
|
||||
|
||||
|
||||
#include "edit-impl.h"
|
||||
#include "editlock.h"
|
||||
|
||||
#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 PID_BUF_SIZE 10
|
||||
|
@ -47,14 +47,12 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
|
||||
#include "lib/search/search.h" /* search engine */
|
||||
|
||||
#include "lib/skin/skin.h"
|
||||
#include "lib/strutil.h" /* utf string functions */
|
||||
|
||||
#include "src/main.h" /* mc_home */
|
||||
#include "src/wtools.h" /* message() */
|
||||
#include "src/strutil.h" /* utf string functions */
|
||||
|
||||
#include "edit-impl.h"
|
||||
#include "edit-widget.h"
|
||||
|
@ -57,11 +57,12 @@
|
||||
#include <sys/time.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
|
||||
#include "lib/tty/tty.h"
|
||||
#include "lib/tty/key.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 "dialog.h"
|
||||
@ -72,7 +73,6 @@
|
||||
#include "wtools.h"
|
||||
#include "background.h" /* we_are_background */
|
||||
#include "src/strescape.h"
|
||||
#include "strutil.h"
|
||||
|
||||
/* Needed for current_panel, other_panel and WTree */
|
||||
#include "dir.h"
|
||||
@ -80,8 +80,6 @@
|
||||
#include "file.h"
|
||||
#include "filegui.h"
|
||||
#include "tree.h"
|
||||
#include "lib/vfs/mc-vfs/vfs-impl.h"
|
||||
#include "lib/vfs/mc-vfs/vfs.h"
|
||||
|
||||
/* }}} */
|
||||
|
||||
|
@ -81,6 +81,7 @@
|
||||
#include "lib/tty/key.h" /* tty_get_event */
|
||||
#include "lib/search/search.h"
|
||||
#include "lib/vfs/mc-vfs/vfs.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "setup.h" /* verbose */
|
||||
#include "dialog.h" /* do_refresh() */
|
||||
@ -91,7 +92,6 @@
|
||||
#include "panel.h" /* current_panel */
|
||||
#include "fileopctx.h" /* FILE_CONT */
|
||||
#include "filegui.h"
|
||||
#include "strutil.h"
|
||||
#include "src/strescape.h"
|
||||
|
||||
/* }}} */
|
||||
|
@ -39,11 +39,10 @@
|
||||
#include "lib/skin/skin.h"
|
||||
#include "lib/search/search.h"
|
||||
#include "lib/mcconfig/mcconfig.h"
|
||||
|
||||
#include "lib/vfs/mc-vfs/vfs.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "setup.h" /* verbose */
|
||||
#include "strutil.h"
|
||||
#include "dialog.h"
|
||||
#include "widget.h"
|
||||
#include "dir.h"
|
||||
|
@ -57,11 +57,11 @@
|
||||
#include "lib/skin/skin.h"
|
||||
#include "lib/tty/mouse.h"
|
||||
#include "lib/tty/key.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "dialog.h" /* For Dlg_head */
|
||||
#include "widget.h" /* For Widget */
|
||||
#include "wtools.h" /* For common_dialog_repaint() */
|
||||
#include "strutil.h"
|
||||
#include "cmddef.h"
|
||||
#include "keybind.h"
|
||||
#include "help.h"
|
||||
|
@ -45,12 +45,13 @@
|
||||
#include "lib/tty/tty.h" /* COLS */
|
||||
#include "lib/skin/skin.h"
|
||||
#include "lib/tty/key.h" /* KEY_M_CTRL */
|
||||
#include "lib/mcconfig/mcconfig.h" /* Load/save directories hotlist */
|
||||
#include "lib/fileloc.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "dialog.h"
|
||||
#include "widget.h"
|
||||
#include "setup.h" /* For profile_bname */
|
||||
#include "lib/mcconfig/mcconfig.h" /* Load/save directories hotlist */
|
||||
#include "wtools.h" /* QuickDialog */
|
||||
#include "panel.h" /* current_panel */
|
||||
#include "main.h" /* update_panels() */
|
||||
@ -58,7 +59,6 @@
|
||||
#include "hotlist.h"
|
||||
#include "command.h" /* cmdline */
|
||||
#include "history.h"
|
||||
#include "strutil.h"
|
||||
|
||||
#define UX 5
|
||||
#define UY 2
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include "lib/tty/mouse.h" /* Gpm_Event */
|
||||
#include "lib/skin/skin.h"
|
||||
#include "lib/unixcompat.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "dialog.h"
|
||||
#include "widget.h" /* default_proc*/
|
||||
@ -41,7 +42,6 @@
|
||||
#include "menu.h" /* menubar_visible */
|
||||
#include "layout.h"
|
||||
#include "mountlist.h"
|
||||
#include "strutil.h"
|
||||
#include "info.h"
|
||||
|
||||
#ifndef VERSION
|
||||
|
@ -35,14 +35,13 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
|
||||
#include "cmddef.h" /* CK_ cmd name const */
|
||||
#include "lib/tty/win.h"
|
||||
#include "lib/tty/key.h" /* KEY_M_ */
|
||||
#include "lib/tty/tty.h" /* keys */
|
||||
#include "wtools.h"
|
||||
#include "strutil.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "cmddef.h" /* CK_ cmd name const */
|
||||
#include "wtools.h"
|
||||
#include "keybind.h"
|
||||
|
||||
static name_keymap_t command_names[] = {
|
||||
|
@ -45,14 +45,14 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
|
||||
#include "lib/tty/tty.h"
|
||||
#include "lib/skin/skin.h"
|
||||
#include "lib/tty/key.h"
|
||||
#include "lib/tty/mouse.h"
|
||||
#include "lib/tty/win.h" /* do_enter_ca_mode() */
|
||||
|
||||
#include "lib/mcconfig/mcconfig.h"
|
||||
#include "lib/vfs/mc-vfs/vfs.h" /* For vfs_translate_url() */
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "dialog.h"
|
||||
#include "widget.h"
|
||||
@ -62,7 +62,6 @@
|
||||
#include "subshell.h" /* For use_subshell and resize_subshell() */
|
||||
#include "tree.h"
|
||||
#include "menu.h"
|
||||
#include "strutil.h"
|
||||
#include "background.h" /* we_are_background */
|
||||
/* Needed for the extern declarations of integer parameters */
|
||||
#include "dir.h"
|
||||
@ -73,7 +72,6 @@
|
||||
#include "src/viewer/mcviewer.h" /* The view widget */
|
||||
|
||||
#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 */
|
||||
int nice_rotating_dash = 1;
|
||||
|
@ -38,15 +38,15 @@
|
||||
|
||||
#include "lib/tty/tty.h"
|
||||
#include "lib/tty/key.h"
|
||||
#include "lib/mcconfig/mcconfig.h" /* Save profile */
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "dialog.h"
|
||||
#include "widget.h"
|
||||
#include "lib/mcconfig/mcconfig.h" /* Save profile */
|
||||
#include "setup.h"
|
||||
#include "layout.h" /* repaint_screen() */
|
||||
#include "learn.h"
|
||||
#include "wtools.h"
|
||||
#include "strutil.h"
|
||||
#include "strescape.h"
|
||||
|
||||
#define UX 4
|
||||
|
@ -61,6 +61,8 @@
|
||||
#include "lib/vfs/mc-vfs/gc.h"
|
||||
#endif
|
||||
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "src/args.h"
|
||||
|
||||
#include "dir.h"
|
||||
@ -82,7 +84,6 @@
|
||||
#include "listmode.h"
|
||||
#include "execute.h"
|
||||
#include "ext.h" /* For flush_extension_file() */
|
||||
#include "strutil.h"
|
||||
#include "widget.h"
|
||||
#include "command.h"
|
||||
#include "wtools.h"
|
||||
|
@ -32,13 +32,13 @@
|
||||
#include "lib/skin/skin.h"
|
||||
#include "lib/tty/mouse.h"
|
||||
#include "lib/tty/key.h" /* key macros */
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "cmddef.h" /* CK_Ignore_Key */
|
||||
#include "help.h"
|
||||
#include "dialog.h"
|
||||
#include "widget.h"
|
||||
#include "main.h" /* is_right */
|
||||
#include "strutil.h"
|
||||
#include "menu.h"
|
||||
|
||||
int menubar_visible = 1; /* This is the new default */
|
||||
|
@ -31,15 +31,14 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
|
||||
#include "lib/tty/tty.h"
|
||||
#include "lib/mcconfig/mcconfig.h" /* For mc_config_save_file */
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "dialog.h"
|
||||
#include "widget.h"
|
||||
#include "setup.h" /* For save_setup() */
|
||||
#include "main.h"
|
||||
#include "lib/mcconfig/mcconfig.h" /* For mc_config_save_file */
|
||||
#include "strutil.h"
|
||||
#include "panel.h" /* Needed for the externs */
|
||||
#include "file.h" /* safe_delete */
|
||||
#include "layout.h" /* For nice_rotating_dash */
|
||||
|
@ -6,10 +6,11 @@
|
||||
#ifndef MC_PANEL_H
|
||||
#define MC_PANEL_H
|
||||
|
||||
#include "lib/fs.h" /* MC_MAXPATHLEN */
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "dir.h" /* dir_list */
|
||||
#include "dialog.h" /* Widget */
|
||||
#include "lib/fs.h" /* MC_MAXPATHLEN */
|
||||
#include "strutil.h"
|
||||
|
||||
#define selection(p) (&(p->dir.list[p->selected]))
|
||||
#define DEFAULT_USER_FORMAT "half type name | size | perm"
|
||||
|
@ -36,21 +36,20 @@
|
||||
#include "lib/global.h"
|
||||
|
||||
#include "lib/skin/skin.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 "widget.h"
|
||||
#include "wtools.h" /* For common_dialog_repaint() */
|
||||
#include "setup.h" /* For profile_bname */
|
||||
#include "lib/mcconfig/mcconfig.h" /* Load/save directories panelize */
|
||||
#include "dir.h"
|
||||
#include "panel.h" /* current_panel */
|
||||
#include "layout.h" /* repaint_screen() */
|
||||
#include "main.h"
|
||||
#include "panelize.h"
|
||||
#include "history.h"
|
||||
#include "strutil.h"
|
||||
|
||||
#define UX 5
|
||||
#define UY 2
|
||||
|
20
src/setup.c
20
src/setup.c
@ -37,6 +37,16 @@
|
||||
#include "lib/mcconfig/mcconfig.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 "dir.h"
|
||||
#include "panel.h"
|
||||
@ -53,24 +63,14 @@
|
||||
#include "keybind.h" /* lookup_action */
|
||||
#include "wtools.h"
|
||||
|
||||
#ifdef ENABLE_VFS
|
||||
#include "lib/vfs/mc-vfs/gc.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CHARSET
|
||||
#include "charsets.h"
|
||||
#endif
|
||||
|
||||
#ifdef USE_NETCODE
|
||||
# include "lib/vfs/mc-vfs/ftpfs.h"
|
||||
# include "lib/vfs/mc-vfs/fish.h"
|
||||
#endif
|
||||
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
# include "src/editor/edit.h"
|
||||
#endif
|
||||
|
||||
#include "src/strutil.h" /* str_isutf8 () */
|
||||
|
||||
|
||||
extern int num_history_items_recorded;
|
||||
|
@ -49,15 +49,15 @@
|
||||
|
||||
#include "lib/global.h"
|
||||
#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 "wtools.h" /* query_dialog() */
|
||||
#include "main.h" /* do_update_prompt() */
|
||||
#include "cons.saver.h" /* handle_console() */
|
||||
#include "lib/tty/key.h" /* XCTRL */
|
||||
#include "subshell.h"
|
||||
#include "strutil.h"
|
||||
|
||||
#include "lib/vfs/mc-vfs/vfs.h"
|
||||
|
||||
#ifndef WEXITSTATUS
|
||||
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
||||
|
@ -47,6 +47,7 @@
|
||||
#include "lib/tty/key.h"
|
||||
#include "lib/vfs/mc-vfs/vfs.h"
|
||||
#include "lib/fileloc.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "wtools.h" /* message() */
|
||||
#include "dir.h"
|
||||
@ -64,7 +65,6 @@
|
||||
#include "cmddef.h"
|
||||
#include "keybind.h"
|
||||
#include "history.h"
|
||||
#include "strutil.h"
|
||||
#include "tree.h"
|
||||
|
||||
const global_keymap_t *tree_map;
|
||||
|
13
src/user.c
13
src/user.c
@ -31,6 +31,13 @@
|
||||
#include "lib/global.h"
|
||||
#include "lib/tty/tty.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 "panel.h"
|
||||
#include "main.h"
|
||||
@ -39,18 +46,12 @@
|
||||
#include "execute.h"
|
||||
#include "setup.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 */
|
||||
#include "dialog.h"
|
||||
#include "widget.h"
|
||||
#include "wtools.h"
|
||||
#include "src/viewer/mcviewer.h" /* for default_* externs */
|
||||
|
||||
#define MAX_ENTRIES 16
|
||||
#define MAX_ENTRY_LEN 60
|
||||
|
@ -41,13 +41,12 @@
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
|
||||
#include "lib/search/search.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "src/wtools.h"
|
||||
#include "src/history.h"
|
||||
#include "src/charsets.h"
|
||||
#include "src/strutil.h"
|
||||
|
||||
#include "internal.h"
|
||||
|
||||
|
@ -41,7 +41,8 @@
|
||||
#include "lib/skin/skin.h"
|
||||
#include "lib/tty/tty.h"
|
||||
#include "lib/tty/key.h"
|
||||
#include "src/strutil.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "src/main.h"
|
||||
#include "src/dialog.h" /* Dlg_head */
|
||||
#include "src/widget.h" /* WButtonBar */
|
||||
|
@ -40,12 +40,13 @@
|
||||
#include <limits.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "lib/vfs/mc-vfs/vfs.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "src/wtools.h"
|
||||
#include "src/strutil.h"
|
||||
#include "src/main.h"
|
||||
#include "src/charsets.h"
|
||||
#include "src/selcodepage.h"
|
||||
#include "lib/vfs/mc-vfs/vfs.h"
|
||||
|
||||
#include "internal.h"
|
||||
#include "mcviewer.h"
|
||||
|
@ -41,13 +41,14 @@
|
||||
|
||||
#include "lib/global.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/charsets.h"
|
||||
#include "src/main-widgets.h" /* the_menubar */
|
||||
#include "src/menu.h" /* menubar_visible */
|
||||
#include "src/widget.h"
|
||||
#include "lib/vfs/mc-vfs/vfs.h"
|
||||
|
||||
#include "internal.h"
|
||||
#include "mcviewer.h"
|
||||
|
@ -47,14 +47,13 @@
|
||||
#include "lib/tty/mouse.h"
|
||||
#include "lib/tty/key.h" /* XCTRL and ALT macros */
|
||||
#include "lib/mcconfig/mcconfig.h" /* for history loading and saving */
|
||||
#include "lib/fileloc.h"
|
||||
|
||||
#include "lib/vfs/mc-vfs/vfs.h"
|
||||
#include "lib/fileloc.h"
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "dialog.h"
|
||||
#include "widget.h"
|
||||
#include "wtools.h"
|
||||
#include "strutil.h"
|
||||
|
||||
#include "cmddef.h" /* CK_ cmd name const */
|
||||
#include "keybind.h" /* global_keymap_t */
|
||||
|
@ -34,17 +34,15 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
|
||||
#include "lib/tty/tty.h"
|
||||
#include "lib/tty/key.h" /* tty_getch() */
|
||||
|
||||
#include "lib/skin/skin.h" /* INPUT_COLOR */
|
||||
#include "lib/strutil.h"
|
||||
|
||||
#include "dialog.h"
|
||||
#include "widget.h"
|
||||
#include "wtools.h"
|
||||
#include "background.h" /* parent_call */
|
||||
#include "strutil.h"
|
||||
|
||||
|
||||
Listbox *
|
||||
|
Loading…
Reference in New Issue
Block a user