Commit Graph

4138 Commits

Author SHA1 Message Date
Pavel Roskin 2f1343ab2d Regenerated by update.pl. 2002-07-15 17:04:44 +00:00
Pavel Roskin 566339a1cc Allow spaces between "_" and "(".
Require exact extensions to avoid addiing backups.
Add some extensions (cpp, cxx) in case if some C++ project takes this
script - they are no longer covered by *.c
2002-07-15 17:03:13 +00:00
Pavel Roskin 0ab222eed4 * chmod.c: Remove all translatable strings - gettext doesn't
work in the PC port, no need to waste translators' time.
2002-07-15 16:51:11 +00:00
Pavel Roskin fba02e6b5e Fixes in error messages. 2002-07-15 16:42:41 +00:00
Pavel Roskin 82009e2ab0 * cpio.c (cpio_read_crc_head): Undo change in the error message. 2002-07-15 16:16:26 +00:00
Marco Ciampa 735e7b5efa ~/.netrc option string added 2002-07-15 07:28:52 +00:00
Pavel Roskin a2e8277428 * slint.c: Eliminate hardcoded color terminals. Most users no
longer need this hack, and those who do have color_terminals
option in the config file.
2002-07-15 06:01:29 +00:00
Pavel Roskin 0129bcc1ca * configure.in: Don't check for strcasecmp(), strncasecmp() and
strdup() - test results are not used except in gettext, which
provides its own tests.
2002-07-15 05:48:25 +00:00
Pavel Roskin 7978b33a9d * ftpfs.c: Replace bzero and bcopy with memset and memcpy.
* mcfs.c: Likewise.
* mcserv.c: Likewise.
* smbfs.c: Likewise.
* tar.c: Likewise.
2002-07-15 05:31:43 +00:00
Pavel Roskin 7db8a05550 * configure.in: When checking for ncurses, check for
has_colors(), not curses_version() - the later is missing in
older version of ncurses.
2002-07-15 05:16:51 +00:00
Pavel Roskin 1517700adf * fish.c (open_archive_int): Don't combine "export" and
assignment into one command - it's not portable.  Set LC_TIME
to "C" as well.
2002-07-14 22:56:13 +00:00
Pavel Roskin 72a5fc5cc1 * syntax.c (edit_get_syntax_color): Return colorpair index, not
attribute, when syntax highlighting is disabled.  Handle black
and white mode separately.
2002-07-14 22:39:07 +00:00
Pavel Roskin 3c437c273d * syntax.c (edit_load_syntax): Do nothing in black and white
mode.
2002-07-14 22:19:49 +00:00
Pavel Roskin 82e481b78d * color.c [USE_NCURSES]: Eliminate division by COLOR, it's 0 in
black and white mode.
2002-07-14 22:18:12 +00:00
Pavel Roskin 75666df0fe * edit.h [!HAVE_SLANG]: Enable syntax highlighting.
* editdraw.c [!HAVE_SLANG]: Respect attributes for color pairs
by using MY_COLOR_PAIR macro.
2002-07-14 21:43:53 +00:00
Pavel Roskin b0dfc1b672 * slint.c: Move functions for allocating color pairs ...
* color.c: ... here.  Implement ncurses equivalents.  Rename
init_pair() to mc_init_pair() and keep tack of max_index with
ncurses.  Adjust all dependencies.
2002-07-14 21:41:12 +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 a23618b2ef * edit.h (struct key_word): Remove unused "bg" field, rename
"fg" to	"color", since it keeps all color information.
* syntax.c (edit_get_syntax_color): Replace "fg" and "bg"
arguments with a single argument "color".
Adjust all dependencies.
2002-07-14 17:56:47 +00:00
Pavel Roskin 5f771b594e * fish.c (open_archive_int): Set remote locale to C, otherwise
timestamps cannot be parsed in some locales.
2002-07-14 16:27:15 +00:00
Pavel Roskin bb989f677a * editdraw.c (edit_draw_this_line): Fix setting MOD_ABNORMAL
attribute.
(print_to_widget): Fix displaying non-printable characters with
ncurses.  Set color for every character even if syntax
highlighting is not compiled - it's needed to reset color after
non-printable characters.
2002-07-14 07:49:24 +00:00
Pavel Roskin a2f136fdc3 s/ommited/omitted/ 2002-07-14 06:36:07 +00:00
Pavel Roskin 4655fbbb6b * editdraw.c (edit_status): Use EDITOR_NORMAL_COLOR instead of
NORMAL_COLOR.
* syntax.c (edit_get_syntax_color) [!HAVE_SYNTAXH]: Likewise.
2002-07-14 06:17:02 +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 81db2df680 * acinclude.m4 (AC_EXT2_UNDEL): Add ext2fs libraries to MC_LIBS,
not to LIBS.
* configure.in: Fix breakage in ncurses headers check from the
previous commit.  Simplify other instances of AC_CHECK_HEADERS.
Define REGEX_MALLOC here.
2002-07-13 19:09:10 +00:00
Pavel Roskin 4f4e0c2d2e * tty.h: Use standard autoconf defines to determine which
ncurses header to include.  Eliminate RENAMED_NCURSES.
2002-07-13 05:13:07 +00:00
Pavel Roskin 05364f344b * acinclude.m4 (AC_NCURSES): Remove.
* configure.in: Use AC_CHECK_HEADERS to find ncurses headers and
AC_CHECK_LIB to check existance of ncurses library.  Eliminate
variables force_ncurses and search_ncurses.
2002-07-13 05:10:41 +00:00
Pavel Roskin da27ec10cd * fish.c (file_store): Reduce input block size to 256 bytes,
otherwise dd gets partial blocks.
2002-07-13 01:10:24 +00:00
Pavel Roskin 00700a9ce2 * ftpfs.c (login_server) [HSC_PROXY]: Fix crash. 2002-07-13 00:22:49 +00:00
Pavel Roskin afd132617d * ftpfs.c (ftp_split_url): Implement looking up password in
.netrc for known user.
2002-07-12 23:41:43 +00:00
Pavel Roskin e88191dd7c * ftpfs.c (ftp_split_url): Don't expect lookup_netrc() to always
return a username.
(netrc_has_incorrect_mode): Don't free anything, it can result
in freeing some variables twice.
(find_machine): New function to find matching "machine" or
"default" token.
(lookup_netrc): Eliminate external loop - scan for login and
password, but don't fallback to another string in case of
trouble.
2002-07-12 23:20:03 +00:00
Pavel Roskin 14bac1dda4 * ftpfs.c: Introduce enum keyword_t to improve readability.
(netrc_next): Fix return value for unknown keywords.
(lookup_netrc): Remove special processing of "*netrc*".
2002-07-12 20:00:03 +00:00
Pavel Roskin 1accbb4789 * ftpfs.c (ftp_split_url): Move protection against pass being
NULL ...
(lookup_netrc): ... here.
2002-07-12 17:39:01 +00:00
Pavel Roskin 4f52b831df * xdirentry.h: Eliminate use_proxy field.
* ftpfs.c (open_archive_int): Use SUP.proxy instead of
SUP.use_proxy.
(open_archive): Set SUP.proxy to ftpfs_proxy_host.
* ftpfs.h: Eliminate unused structures.
2002-07-12 00:05:11 +00:00
Pavel Roskin 6ddf5f78ed * vfs.h: Rename URL_DEFAULTANON to URL_ALLOW_ANON.
* utilvfs.c (vfs_split_url): Return NULL as username if
URL_ALLOW_ANON is set and no username is found in the URL,
otherwise use current name.
* ftpfs.c (ftp_split_url): New function - split URL and look up
username and password if needed.
(login_server): Use ftp_split_url().
(archive_same): Likewise.
2002-07-11 23:08:30 +00:00
Pavel Roskin 129df509f9 * utilunix.c: Cast argument for GUINT_TO_POINTER to int to fix
warnings on Cygwin.
2002-07-10 23:27:36 +00:00
Pavel Roskin 073e17a8d0 * subshell.c: ioctl() doesn't set errno - don't use perror() to
report failures.  Use fprintf() instead, ignore errors from
TIOCSWINSZ.
(resize_tty): New function - code common for resize_subshell()
and init_subshell_child().
2002-07-10 22:49:08 +00:00
Pavel Roskin ccf2496792 Mention Tcl, .netrc support. 2002-07-10 21:59:12 +00:00
Pavel Roskin cf5046a920 * configure.in: Remove --with-netrc, it is now default and can
be disabled at the runtime.
2002-07-10 21:31:53 +00:00
Pavel Roskin 2acfb89cd4 * tcputil.h: Move use_netrc declaration ...
* vfs.h: ... here.
* ftpfs.c: Implement .netrc support unconditionally.
(lookup_netrc): Make static.
* utilvfs.c: Initialize default_is_netrc.
From Thomas Zajic <zlatko@gmx.at>
2002-07-10 21:26:55 +00:00
Pavel Roskin 200356c074 * global.h: Include vfs.h.
* boxes.c (configure_vfs): Ask whether .netrc should be used.
From Thomas Zajic <zlatko@gmx.at>
2002-07-10 21:20:49 +00:00
Pavel Roskin 1b5fdb4a33 * syntax/tcl.syntax: New file.
* syntax/Syntax: Add tcl.syntax.
* syntax/Makefile.am: Likewise.
* syntax/java.syntax: Don't treat #define separately from other
preprocessor directives.
* syntax/slang.syntax: Likewise.
* syntax/swig.syntax: Likewise.
2002-07-10 19:56:11 +00:00
Pavel Roskin 6f3a7c8029 * direntry.c (vfs_s_open): Don't pass O_LINEAR to open() -
this flag is for VFS only, and causes side effects in Cygwin.
* extfs.c (extfs_open): Likewise.
* sfs.c (sfs_open): Likewise.
Reported by Pavel Tsekov <ptsekov@gmx.net>
2002-07-10 17:56:27 +00:00
Pavel Roskin 3f02ae47e8 * syntax/c.syntax: Don't treat #define separately from other
preprocessor directives.
2002-07-09 16:51:15 +00:00
Pavel Roskin dc0e4bf58a * syntax/perl.syntax: Highlight text after __END__ as a comment.
* syntax/po.syntax: Avoid gray color, which is hard to see.
2002-07-08 21:25:42 +00:00
Pavel Roskin 2854f6aebe * syntax/dos.syntax: Add more commands. 2002-07-05 16:18:14 +00:00
Pavel Roskin 99a8519d81 Remove space in pattern for dos.syntax entry. 2002-07-05 03:58:35 +00:00
Pavel Roskin c0c1450514 * AUTHORS: Add Andrew V. Samoilov <kai@cmail.ru>, alphabetically
sort authors.
2002-07-04 14:23:32 +00:00
Pavel Roskin 8e19aa8793 Updates from Andrew V. Samoilov <kai@cmail.ru> 2002-07-04 14:19:49 +00:00
Pavel Roskin 74288460f5 * file.c (do_transform_source): Cast the argument to functions
for character classification to unsigned int.
* main.c (handle_args): Likewise.
* util.c (size_trunc_sep): Likewise.
(skip_numbers): Likewise.
2002-07-03 19:47:40 +00:00
Pavel Roskin e385a9c9ab * ftpfs.c (setup_passive): Cast arguments to isdigit() to
unsigned char for compatibility with non-GNU libc.
* tar.c (from_oct): Likewise with isspace().
Reported by Roland Illig <1illig@informatik.uni-hamburg.de>
2002-07-03 19:09:03 +00:00