Pavel Roskin
0d89dec899
* main.c: Remove extremely unsafe and poorly designed support
...
for /tmp/mc.$PID.control file.
* util.c (my_putenv): Remove, it's unused now.
2002-08-18 22:31:49 +00:00
Pavel Roskin
b9421d6927
* panel.h (struct format_e): Make string_fn return const char *.
...
Adjust all dependencies.
* screen.c (string_file_mtime): Return empty string for "..".
(string_file_atime): Likewise.
(string_file_ctime): Likewise.
2002-08-18 22:01:51 +00:00
Pavel Roskin
05e708a791
* view.c (display): Use enum for boldflag values. Fix cursor
...
highlighting for the ASCII part of the hex editor.
2002-08-18 20:18:04 +00:00
Pavel Roskin
69f67049fa
* layout.c (init_curses) [!HAVE_SLANG]: Add support for
...
stickchars - fill acs_map[] with ASCII approximations.
* main.c [!HAVE_SLANG]: Enable --stickchars (-a) for ncurses.
2002-08-18 16:34:29 +00:00
Pavel Roskin
d7f635e142
* setup.c: New variable global_profile_name to hold full name of
...
mc.lib.
(load_setup): Calculate global_profile_name.
(done_setup): Free global_profile_name.
(load_key_defs): Use global_profile_name.
* treestore.c (should_skip_directory): Likewise.
2002-08-17 01:11:21 +00:00
Pavel Roskin
0707cb5278
* man2hlp.c: Implement persistent fread and fwrite to make sure
...
that all output is read and written.
2002-08-16 16:48:27 +00:00
Andrew V. Samoilov
7b867c0d5c
* user.c (expand_format): Cast the argument to functions
...
for character classification to unsigned int.
(execute_menu_command): Likewise.
2002-08-16 14:56:13 +00:00
Andrew V. Samoilov
fe2fdc4057
* help.c (show): Cast *paint_start to unsigned char to display
...
Cyryllic with ncurses.
[HAS_ACS_AS_PCCHARS] (acs2pc_table): Make const.
2002-08-16 09:07:20 +00:00
Andrew V. Samoilov
f289243ff2
* help.c (show): Cast *paint_start to unsigned char to display
...
Cyryllic with ncurses.
[HAS_ACS_AS_PCCHARS] (acs2pc_table): Make const.
2002-08-16 08:55:07 +00:00
Pavel Roskin
479ccc534f
* treestore.c (tree_store_remove_entry): Don't use ts.check_name
...
and don't check it.
2002-08-16 00:05:29 +00:00
Pavel Roskin
cafbb72684
* treestore.c: Remove unused code, reformat.
...
* treestore.h: Remove unused declarations.
2002-08-15 23:31:23 +00:00
Pavel Roskin
8d173014e9
* fs.h (compute_namelen): New inline function to take care of
...
the d_namlen field if and only if it's needed.
2002-08-15 19:35:53 +00:00
Pavel Roskin
58da40fa6a
* screen.c (string_file_name): Replace non-printable characters
...
with question marks.
2002-08-15 16:52:51 +00:00
Pavel Roskin
f0dbdeb72e
* subshell.c (read_subshell_prompt): Remove argument "how", it's
...
never set to VISIBLY. Adjust all dependencies. Eliminate hack
with "clear_now" - it causes invalid memory access and hides the
real problem.
* util.c (strip_ctrl_codes): Fix possible invalid memory access
if the escape sequence ends unexpectedly.
2002-08-15 06:53:44 +00:00
Pavel Roskin
786c75b683
* dir.c (do_load_dir): Fix leaking of file descriptors - always
...
call mc_closedir() before return.
2002-08-15 02:02:49 +00:00
Pavel Roskin
66c5184faa
Revert undocumented change in the declaration of decompress_extension().
2002-08-15 01:45:06 +00:00
Pavel Roskin
6d2f235053
* main.c (do_execute) [!HAVE_SUBSHELL_SUPPORT]: Compile fix.
2002-08-15 01:36:09 +00:00
Andrew V. Samoilov
4c25b24536
* util.c (reverse_string): Speed up.
2002-08-14 16:33:50 +00:00
Pavel Roskin
7ea7ec49ab
* view.c (display): Use only declared color pairs to fix hex
...
editor appearance with ncurses. Eliminate some useless defines.
2002-08-14 07:41:01 +00:00
Pavel Roskin
d0b31c1c81
* key.c (delete_select_channel): Avoid using freed memory.
2002-08-10 04:37:13 +00:00
Pavel Roskin
c46d1f590b
* ext.c (exec_extension): Eliminate unused argument.
...
(regex_command): Remove support for user actions. Return int.
Adjust all dependencies.
2002-08-10 00:37:55 +00:00
Pavel Roskin
bb4451f170
* ext.c (exec_extension): Make static. Remove support for Drop,
...
Title and Icon actions. Adjust all dependencies.
2002-08-10 00:14:01 +00:00
Pavel Roskin
b7cdfa9c93
* main.c (sigchld_handler_no_subshell) [linux]: SIGTSTP is
...
always defined on Linux.
* subshell.c (sigchld_handler): No need to use SIGTSTP
explicitly when we really care about SIGCONT.
2002-08-09 23:36:06 +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
e26cef8825
* subshell.c: Assume that SIGTSTP and SIGCONT are always
...
defined. This is now checked in configure. Otherwise
synchronize() would hang until subshell exits.
2002-08-04 06:59:34 +00:00
Pavel Roskin
e2a37d3809
* charsets.c: Unconditionally enable finalization code that was
...
only used with HAVE_MAD.
* color.c: Likewise.
* color.h: Likewise.
* key.c: Likewise.
* main.c: Likewise.
* slint.c: Likewise.
* subshell.c (exit_subshell): Free subshell_prompt.
2002-08-01 20:31:52 +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
Andrew V. Samoilov
a583a32a73
* key.h (key_code_name_t): Typedef const.
2002-07-31 00:35:06 +00:00
Andrew V. Samoilov
8025b4bce4
* ext.c (regex_command): Don't check same condition twice.
...
(exec_extension): Comment out useless loop.
2002-07-31 00:28:07 +00:00
Andrew V. Samoilov
10044de5b9
* man2hlp.c (main): Don't use freed structure member.
2002-07-31 00:08:51 +00:00
Pavel Roskin
80561f39a7
* man2hlp.c (main): Use only stream I/O. Fix checks for error
...
conditions. Reformat the whole file.
2002-07-30 22:57:01 +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
b698076e0e
* ext.c (regex_command): Additional check to prevent reading
...
unallocated memory when matching "shell/". Found by Valgrind.
2002-07-30 05:39:48 +00:00
Pavel Roskin
bda707e46b
* setup.c: Eliminate all PORT* macros.
...
* screen.c: Likewise.
2002-07-30 00:12:53 +00:00
Pavel Roskin
2935c85c85
* subshell.c (feed_subshell): Reading 0 bytes in a channel with
...
FD_ISSET being set is a sign of something being wrong - exit
immediately. Observed when mc is run under su in xterm and
xterm is closed while the subshell is running.
Reported by Vlad Harchev <hvv@hippo.ru>
2002-07-30 00:03:26 +00:00
Pavel Roskin
777c46ee2a
* color.h: Replace PORT_COLOR macro with BEST_COLOR, which uses
...
MY_COLOR_PAIR.
2002-07-29 23:37:22 +00:00
Pavel Roskin
6c7e1a46c8
* util.c: Remove unused functions.
...
* utilunix.c: Likewise.
* util.h: Update to match.
2002-07-29 23:12:31 +00:00
Pavel Roskin
0d360dca23
Remove irrelevant comment.
2002-07-29 22:14:16 +00:00
Pavel Roskin
b8f676ec41
* cons.saver.c: Use SEEK_SET instead of 0 in lseek().
...
* view.c: Likewise.
2002-07-29 21:18:51 +00:00
Pavel Roskin
17ceeead44
* main.c (do_execute): Add newline after "Press any key to
...
continue".
2002-07-29 19:30:41 +00:00
Pavel Roskin
7bab33656b
* cons.saver.c: Eliminate some global variables. Further
...
cleanup. Make sure that console_fd is always closed.
2002-07-29 05:59:07 +00:00
Pavel Roskin
edebd94750
* cons.saver.c: Remove support for Linux kernels before 2.0.
...
Massive cleanup.
(send_contents): Remove incorrect optimization - restore even
empty lines because they may be touched by the viewer.
From Denis Vlasenko <vda_unique@iname.com>
2002-07-28 08:52:27 +00:00
Pavel Roskin
18c160fefa
* utilunix.c (canonicalize_pathname): Don't extend empty path
...
to "." - it can corrupt memory.
2002-07-26 21:51:16 +00:00
Pavel Roskin
1c1493cbe5
* cmd.c (copymove_cmd_with_default): Remove, it's unused.
...
(copy_cmd_local): New function, copy within panel.
(ren_cmd_local): New function, rename within panel.
* cmd.h: Adjust to match.
* screen.c (panel_keymap): Associate F15 with copy_cmd_local and
F16 with ren_cmd_local.
2002-07-26 19:30:13 +00:00
Pavel Roskin
0389cbf16c
* view.c (display): Don't highlight characters as bold if the
...
character before the backspace was different.
From Roland Illig <roland.illig@gmx.de>
2002-07-26 17:17:41 +00:00
Andrew V. Samoilov
b5cfea00e1
* wtools.c (message): Fix possible buffer overflow.
2002-07-25 18:07:42 +00:00
Andrew V. Samoilov
8c9c34918b
util.[ch] (app_text): Make const and adjust declaration.
2002-07-25 13:48:00 +00:00
Andrew V. Samoilov
eb7d542f24
* profile.c: Make AppName parameter const char * everywhere.
...
* profile.h: Adjust declarations.
2002-07-25 13:44:06 +00:00
Andrew V. Samoilov
e94799f762
* slint.c [HAVE_MAD] (dealloc_color_pairs): Move ...
...
* color.c [HAVE_MAD]: ... here and make accessible from
other files to fix compilation.
* color.h [HAVE_MAD]: Declare dealloc_color_pairs.
2002-07-25 13:04:19 +00:00