Commit Graph

112 Commits

Author SHA1 Message Date
Slava Zanko
087ef15b1f Total replacement to mc_search stuff in all places 2009-05-06 19:12:32 +03:00
Slava Zanko
2276e9b513 Search engine: now used regexp external engines:
* glib
 * pcre
 * POSIX regex

External engine selected automatically, if present.
2009-05-05 16:19:32 +03:00
Slava Zanko
6f390f5cf3 src/Makefile.am: add some header files to Make-tracking 2009-05-04 11:23:40 +03:00
Slava Zanko
c2455b246c Make search module more independ (and prepare for future mclib :) ) 2009-04-25 11:09:47 +03:00
Slava Zanko
b2442d1b1e Reorganize source structure: move search engine files into src/search subdir 2009-04-25 10:25:13 +03:00
Slava Zanko
ab729f822a src/search.[ch]: add experimental search engine. Need to review and revork.
* added multicharset search feature
 * added template for HEX and GLOB searches (for viewer and for search files dialog)
 * implemented normal search with/without characters cases

WARNING! UNSTABLE! Code not checked for work! I'm just wrote and compiled.
2009-04-22 18:52:49 +03:00
Ilia Maslakov
3b5e2c052f Merge branch 'utf-8' into master
resolve conflicts:
	configure.ac
	src/complete.c
	src/file.c
	src/layout.c
	src/main.c
	src/menu.c
	src/screen.c
	src/util.c
	src/widget.c
	src/widget.h
2009-04-04 19:50:46 +00:00
Enrico Weigelt, metux IT service
4f9185a3ee Removed bundled slang 2009-02-02 04:23:06 +01:00
Sergei Trofimovich
ff4de3d66f Merge branch 'mc-4.6' into 147_escaping
* mc-4.6:
  replaced buggy concat_dir_and_file() by mhl_str_dir_plus_file()
  fixed out-of-tree-builds
  Updated the NEWS file for 4.6.2 and added the bugnumbers behind the items in the list.
  Update for OpenOffice and StarOffice viewer.
  changelog: added entry for python syntax
  syntax: python: keywords update (patch by NNemec) fixes #216
  AC_USE_SYSTEM_EXTENSIONS macro requires autoconf >= 2.60
  po/ru.po: In russian translation, there are some hotkey conficts in menu.
  ChangeLog/NEWS: added entry for #181 ticket (copy to deleted dir)
  Now a trailing slash will only be added in copy & move dialogs if the path itselfs
  copy/move dialog: add trailing '/' to default destination path (fix #181)
  fixed comments to /* ... */
  Not only comment it out but removing it
  Removed unneeded var to make build process a bit cleaner
  Add code snipplet by il.smind which should fix issues with putty and

Conflicts:
	ChangeLog
	mhl/string.h
	src/command.c
	src/complete.c
	src/file.c
	src/util.c
2009-01-31 22:18:19 +02:00
Enrico Weigelt, metux IT service
e3a3890a3a fixed out-of-tree-builds 2009-01-30 16:46:44 +01:00
Enrico Weigelt, metux IT service
7639b364af added a new parameter for completion flags to input_new 2009-01-29 19:17:43 +01:00
Slava Zanko
2678e889b1 patches by Rostislav Beneš: mc-01-api
add functions for working with strings
some functions are implemented directlu in strutil.c, others have ascii, 8bit
or utf-8 variant. (8bit means singlebyte encodings, where all characters have
width one). Mc autodetects terminal encoding at start and chooses right
variant. If does not know terminal encoding, chooses ascii variant.

contains functions:
    1. for translation strings and growing strings
    2. for working with characters (next char, prev char, length in
       characters, isspace, isalnum, ...)
    3. prepeare for display, replace invalid characters with questionmark,
       unprintable with dot, left / right / center align
    4. comparing strings

in future all string function from util should be moved into strutil, some
function from util have new variant in strutil.
2009-01-26 11:46:30 +02:00
Patrick Winnertz
197973ccf2 Applied patch from metux on git - needed to fix some stuff manually.
This branch is based on mc-4.6
2009-01-10 11:53:20 +01:00
Roland Illig
eddbf0e2e1 * Makefile.am: ecs-test needs $(MCLIBS). 2006-02-04 11:13:30 +00:00
Pavel Roskin
9b774d1b7d * Makefile.am: Rename LIBDIR to SAVERDIR to avoid confusion.
Change its value to match the installation path of cons.saver.
* cons.handler.c: Adjust for the above.
2006-01-30 20:08:28 +00:00
Roland Illig
e3fb94363e * Makefile.am, logging.h, logging.c: Added a new logging module
to allow easy tracing of function calls and other events. It is
	only intended for debugging.
2006-01-27 23:48:49 +00:00
Roland Illig
015ebfc2fe * Makefile.am: cons.saver is installed in $(pkglibexecdir), not
in $(pkglibdir), to conform to the usual directory hierarchy
	standards. Fixes #2796.
2006-01-27 21:53:50 +00:00
Roland Illig
af781d96f8 Added tty.c. 2005-08-29 09:36:32 +00:00
Roland Illig
35a8f2b2a2 * Makefile.am: Added support for extended character sets.
* ecs.h: Support for extended character sets.
	* ecs.c: Likewise.
	* ecs-test.c: Testsuite for ecs.c.
2005-07-31 18:30:43 +00:00
Roland Illig
13a63f21c9 * x11conn.c: Separated X11 connection handling from key.c. Added
error handling for X11 errors and connection errors.
	* x11conn.h: The interface for x11conn.h.
	* key.c: Now using the x11conn code.
	* Makefile.am: Added x11conn.{h,c}.
2005-03-10 09:44:36 +00:00
Roland Illig
0e1609c2f9 * unixcompat.h: Provides macros and functions that are missing in
some Unix variants.
	* Makefile.am: Added unixcompat.h.
2005-01-25 22:54:41 +00:00
Roland Illig
2a80bd15a2 * Makefile.am: Removed unused occurence of man_MANS. 2004-11-23 23:04:18 +00:00
Roland Illig
2d3fef18e5 * Makefile.am: Excluded pipethough.3 from the distribution
as it is currently unused.
2004-11-19 14:17:19 +00:00
Roland Illig
830f64d719 * Makefile.am: Excluded pipethough.{c,h} from the distribution
as they are currently unused.
2004-11-10 17:42:42 +00:00
Roland Illig
8676605ad2 * pipethrough.c: Added pipethrough, a function to execute child
processes in a simple way.
	* pipethrough.h: The interface for the function.
	* pipethrough.3: The manpage (will be installed in maintainer-mode).
	* Makefile.am: Added the files to SRCS.
2004-09-25 21:21:09 +00:00
Roland Illig
3fe957aef4 * Makefile.am (man2hlp): Added source file glibcompat.c for
glib-1.2 compatibility.
2004-09-02 15:03:48 +00:00
Roland Illig
226177cf11 "make uninstall" removes the symlinks bin/mcedit and bin/mcview. 2004-08-18 20:22:59 +00:00
Pavel Roskin
7c0f20bcb8 * src/TODO: Move ...
* TODO: ... here.
* doc/DEVEL: Move ...
* HACKING: ... here.  Adjust makefiles.
2003-11-27 18:06:56 +00:00
Pavel Roskin
036d1d4602 * fsusage.c: Merge ...
* mountlist.c: ... here.  These files are closely related.  Move
some defines from extraconf.h here.
* fsusage.h: Remove.
* Makefile.am: Remove fsusage.c and fsusage.h.
2003-10-29 08:12:44 +00:00
Pavel Roskin
290426d17a * terms.c: Merge ...
* win.c: ... here.
* Makefile.am: Remove terms.c.
2003-10-26 07:02:13 +00:00
Pavel Roskin
82688029da * i18n.h: Include into global.h.
* Makefile.am: Remove i18n.h.
2003-10-26 04:11:12 +00:00
Pavel Roskin
98950838b4 * dlg.h: Merge with ...
* dialog.h: ... this.  Adjust all dependencies.
* dlg.c: Merge with ...
* dialog.c: ... this.
* Makefile.am (SRCS): Remove dlg.h and dlg.c.
2003-10-24 23:20:30 +00:00
Pavel Roskin
f219b81311 * vfsdummy.h: New file to replace vfs.h if VFS is disabled.
* Makefile.am: Add vfsdummy.h.
* global.h [!USE_VFS]: Include vfsdummy.h.  Fix files that
include vfs.h directly.
2003-10-11 08:54:31 +00:00
Pavel Roskin
4520b25b36 * glibcompat.c: New file for compatibility with older versions
of glib.
* glibcompat.h: Likewise.
* Makefile.am: Add the new files SOURCES.
* global.h: Include glibcompat.h.
2003-09-22 20:21:48 +00:00
Pavel Roskin
c36bf430bf * text.c: Eliminate. Move colors to color.c and clr_scr() to
layout.c.
* main.c (restore_console): Eliminate, use handle_console().
* Makefile.am: Remove text.c.
2003-06-22 09:32:52 +00:00
Pavel Roskin
e4f7714ab1 * execute.c: New file with all functions for execution and
toggling panels not specific to subshell.
* execute.h: Corresponding header.
* Makefile.am: Adjust for the above.
2003-06-22 09:17:46 +00:00
Andrew V. Samoilov
cd456a3042 * Makefile.am (man2hlp_LDADD): Set to $(GLIB_LIBS). 2002-10-15 15:33:04 +00:00
Pavel Roskin
6979a9fddf * Makefile.am: Rename LIBDIR to DATADIR, since it refers to
pkgdatadir now.  Install cons.saver to pkglibdir, pass it to the
compiler as LIBDIR.
* cons.handler.c (handle_console): Use LIBDIR.
* main.c (OS_Setup): Use DATADIR instead of LIBDIR.  Rename
MC_LIBDIR to MC_DATADIR.
2002-09-22 00:13:32 +00:00
Pavel Roskin
748e028d05 * */Makefile.am: Replace mclibdir with pkgdatadir to use "share"
directory for architecture-independent files.
2002-09-21 23:49:52 +00:00
Pavel Roskin
0d7af2cdba * acinclude.m4: Remove Termnet support, it's too old and obscure
to be supported properly.
2002-09-03 17:58:26 +00:00
Pavel Roskin
214358fb02 * configure.in: Make GLIB_LIBS a separate AC_SUBST'ed variable,
use only for the programs that need it (mc and mcserv).
2002-08-23 21:02:42 +00:00
Pavel Roskin
96087a4179 * Makefile.am: Remove definition of CONFDIR, it's not used. 2002-08-23 20:49:44 +00:00
Pavel Roskin
1d2d88c2b9 * keys.h: Remove, include ...
* myslang.h: ... here.
* Makefile.am: Remove keys.h.
2002-08-22 06:56:35 +00:00
Pavel Roskin
a1aabfff50 * ncurses.patch: Remove, it's obsolete.
* Makefile.am: Remove ncurses.patch.
2002-08-09 22:00:27 +00:00
Pavel Roskin
56368fe9f2 * lib/xnc.hlp: Move ...
* doc/xnc.hlp: ... here.
* doc/Makefile.am: Necessary adjustments.
* lib/Makefile.am: Likewise.
* src/Makefile.am: Likewise.
2002-08-09 21:55:20 +00:00
Pavel Roskin
105cb58726 * mad.c: Remove.
* mad.h: Likewise.
* Makefile.am (SRCS): Remove mad.c and mad.h.
* cmd.c: Remove references to MAD.
* main.c: Likewise.
* dlg.c: Use inline, not INLINE.
* hotlist.c: Likewise.
* menu.c: Likewise.
* global.h: Don't include mad.h.
2002-08-01 19:40:43 +00:00
Pavel Roskin
7e2fd7960e * man2hlp.c: Avoid the need to use gindex.pl.
From Andrew V. Samoilov <sav@bcs.zp.ua>
* Makefile.am: Use man2hlp directly.
(EXTRA_DIST): Remove gindex.pl.
* gindex.pl: Remove.
2002-07-30 22:20:26 +00:00
Pavel Roskin
6ffc6bde22 * mem.h: Clean up obsolete definitions, incorporate into ...
* global.h: ... this.
* Makefile.am: Remove mem.h.
2002-07-14 19:34:17 +00:00
Pavel Roskin
0ce1cd7354 * Makefile.am (AM_CPPFLAGS): Remove REGEX_MALLOC, it's now in
configure.in.
2002-07-13 19:11:03 +00:00
Pavel Roskin
1dade2fbc4 * Makefile.am: doc/mc.1 is in top_builddir, not in top_srcdir. 2002-05-22 16:10:52 +00:00
Andrew V. Samoilov
040cbd2e6b * Makefile.am (VFSLIB): Add ../vfs/samba/libsamba.a
if USE_WITH_SAMBA is true.
2002-05-14 12:39:04 +00:00
Pavel Roskin
c942254c57 * Makefile: mc.hlp should be in MAINTAINERCLEANFILES, not in
CLEANFILES, because "make clean" should not make the source
directory useless on systems without Perl.
2002-04-03 07:41:12 +00:00
Andrew V. Samoilov
6edfce4e7b * Makefile.am (CLEANFILES): Add mc.hlp. 2002-03-28 15:44:52 +00:00
Andrew V. Samoilov
7f08501250 * src/Makefile.am: Move mc.hlp.ru processing ...
* doc/ru/Makefile.am: ... here.
2002-03-26 13:22:32 +00:00
Andrew V. Samoilov
830c9ae976 * man2hlp.c (handle_command): Handle '.\"TOPICS' comment.
Use it for translated 'Topics:' message.
* gindex.pl: Use first line of man2hlp output as
translated 'Topics:' message if fourth argument
is empty string.
* Makefile.am (mc.hlp.ru): Use empty string as gindex.pl's
fourth argument.
2002-03-20 14:03:55 +00:00
Andrew V. Samoilov
0e0fdc3aa6 * Makefile.am (mc.hlp.ru): Use mc.1 instead of mc.1.in.
(mc.hlp): Likewise.
2002-03-04 14:54:34 +00:00
Andrew V. Samoilov
51e1d26419 * Makefile.am (mc.hlp.ru): New rule to compile translated
help file.
(mclib_DATA): Add mc.hlp.ru.
2002-03-01 15:05:20 +00:00
Pavel Roskin
0883a31c10 * Makefile.am (mc_LDADD): Don't use LSLANG and LGPM, since they
are now included into MCLIBS.
2001-09-10 22:00:25 +00:00
Pavel Roskin
c69f80cc61 * Makefile.am (mc_LDADD): Use INTLLIBS provided by gettext
instead of LINTL.
2001-09-10 20:08:28 +00:00
Pavel Roskin
e136f3b7b3 * Makefile.am: Fix definitions of CONFDIR and LOCALEDIR. 2001-09-09 01:50:00 +00:00
Pavel Roskin
5e9bd8980e * Makefile.am: Don't use substituted values directly. Define
CHARSET_SRC unconditionally.  Join SRCS and HDRS.
2001-09-04 06:09:05 +00:00
Pavel Roskin
ed2306822f * Makefile.in: Converted to ...
* Makefile.am: ... this.
2001-09-03 07:03:46 +00:00