1
1
Граф коммитов

785 Коммитов

Автор SHA1 Сообщение Дата
Pavel Roskin
d1b3fc6002 * utilunix.c (canonicalize_pathname): Don't handle PATH_SEP
after backslash	in a special way.
2001-07-13 21:21:41 +00:00
Pavel Roskin
f0d3781bfb * subshell.c (init_subshell): Run "set echo_style=both" at
startup to ensure that echo in tcsh understands octal numbers.
Reported by Francis Kwok <francis.kwok@alcatel.com>
2001-07-13 00:24:50 +00:00
Pavel Roskin
dbb9234674 * Makefile.in (OURLIBS): Merge with ...
(LIBS): ... this. Add @LIBICONV@.
Reported by Libor Motyka <l_motycka@ortex.cz>
2001-07-12 15:02:06 +00:00
Pavel Roskin
269737723a * subshell.c (subshell_name_quote): New function. Quote all
characters as octals, use command substitution.
(do_subshell_chdir): Use subshell_name_quote(). Don't change
terminal settings when the quoted path is sent to the shell -
it's now safe.
2001-07-12 14:18:39 +00:00
Andrew V. Samoilov
2d7255d8cf * main.c: Eliminate iconify_on_exec.
[!HAVE_GNOME]: Eliminate nowindows, nodesktop, twopanel,
display_linksdir and cmdline_geometry.
(sigchld_handler_no_subshell): Comment fixes.
(midnight_callback): Likewise.
(print_mc_usage): Use fputs, not fprintf.
(print_color_usage): Likewise.
(argument_table): Assign 'r' with force_subshell_execution and 'U'
with use_subshell.
(process_args): Don't deal with 'r', 'U' and 'X' options.
(setup_mc) [HAVE_GNOME]: Eliminate more code.

setup.c (options):  Eliminate iconify_on_exec.
2001-07-11 22:58:32 +00:00
Andrew V. Samoilov
26280ca462 ;) 2001-07-11 22:57:31 +00:00
Pavel Roskin
3b83dc732f * view.c (hex_search): Release buffer after use. 2001-07-10 17:42:25 +00:00
Pavel Roskin
ea68ebdeb5 * view.c (hex_search): Reimplement parser using sscanf. Add
support for decimal and octal numbers. Add error reporting.
Allocate buffer dynamically.
2001-07-09 23:19:23 +00:00
Pavel Roskin
62ef1f47bd * hotlist.c: Add comments to avoid confusion between
done_hotlist() and hotlist_done().
(hotlist_done): Set l_hotlist to NULL.
(add2hotlist): Load hotlist if it's neither loaded nor loading.
This fixes Ctrl-x h. Fix compiler warning.
2001-07-09 06:43:45 +00:00
Pavel Roskin
48b3cb4154 * hotlist.c: Make more variables and functions static. 2001-07-09 05:54:58 +00:00
Pavel Roskin
3f25e54361 * ext.c (exec_extension) [HAVE_X]: Free file_name. Add comment
explaining why it cannot be unlinked there.
2001-07-08 21:34:55 +00:00
Pavel Roskin
4f992c2fd3 Typo in the last commit. 2001-07-06 23:07:22 +00:00
Pavel Roskin
7a177fd8d5 * view.c (exec_extension): Unlink temporary file earlier if it's
not going to be used.
[OLD_CODE]: Remove.
2001-07-06 23:06:45 +00:00
Pavel Roskin
a08a62bef3 * Makefile.in: Use additional quotes to preserve @prefix@ when
Makefile is generated.
2001-07-06 21:05:24 +00:00
Pavel Roskin
e09c2cba92 * Makefile.in: Don't use SEDCMD2, use sed. 2001-07-06 20:45:30 +00:00
Pavel Roskin
91a799e3c0 * cons.saver.c: New variable console_minor. Eliminate variables
len and vcs_name.
(check_file): Set console_minor to the minor device number of
the console. Disallow /dev/tty0.
(detect_console): Don't parse tty_name, instead make sure that
it corresponds to console_minor. Check console first. Fallback
to /dev/vcc/a* if /dev/vcsa* cannot be opened.
(save_console): Use console_minor.
(restore_console): Likewise.
2001-07-06 19:24:27 +00:00
Pavel Roskin
a44f9422d2 * cons.saver.c (check_file): Eliminate using text messages to
indicate errors. Improve debug messages.
(detect_console): Likewise.
(main): Adjust call to detect_console.
2001-07-06 17:49:27 +00:00
Pavel Roskin
91f2348983 * main.c (sigchld_handler_no_subshell): Don't restart cons.saver
if it died.
* subshell.c (sigchld_handler): Likewise.
2001-07-06 17:29:20 +00:00
Pavel Roskin
1cd140d5dc * main.c (midnight_callback): Don't handle any events except
Ctrl-x combinations on DLG_KEY event if the menu is active.
2001-07-05 23:27:01 +00:00
Pavel Roskin
6c17a59440 * main.c (load_prompt): Don't change prompt if midnight_dlg is
not the current dialog.
2001-07-05 22:35:16 +00:00
Pavel Roskin
a5281c3ee4 * util.c (size_trunc_len): New function - print file size to
a buffer of limited length.
* util.h: Declare size_trunc_len().
* screen.c (string_file_size): Use size_trunc_len().
2001-06-28 04:17:28 +00:00
Pavel Roskin
4f10e883fd * xslint.c: Remove.
* Makefile.in (SRCS): Remove xslint.c.
2001-06-26 15:03:30 +00:00
Pavel Roskin
c83fdc336c * key.c (ctrl_pressed): Don't limit functionality to Linux.
* screen.c (prev_page_key): Don't require console_flag to be set
to use ctrl_pressed(), only require that HAVE_X is undefined.
(next_page_key): Likewise.
* widget.c (key_left): Don't limit functionality to Linux.
(key_right): Likewise.
2001-06-26 03:20:22 +00:00
Pavel Roskin
29adaeacbf * main.h: Use "ifdef HAVE_GNOME", not "if HAVE_GNOME". Fix the
order of conditionals and put comments on endifs.
2001-06-25 21:36:38 +00:00
Andrew V. Samoilov
5cccebee91 * complete.c (filename_completion_function): Clean it up.
(command_completion_function): Make words, bash_reserved and
bash_builtins const, use concat_dir_and_file.
(fetch_hosts): Fix typo, style fixes.
2001-06-25 13:59:04 +00:00
Andrew V. Samoilov
b817d61e79 ;) 2001-06-25 12:06:23 +00:00
Andrew V. Samoilov
e92976c937 * view.c [HAVE_CHARSET]: Include selcodepage.h.
(view_new): Use g_new0.
(ruler): Make static.
2001-06-25 11:24:49 +00:00
Pavel Roskin
0e334b67e8 * mem.h: Undefine bcopy(), bcmp() and bzero() before redefining
them.
2001-06-23 16:02:05 +00:00
Pavel Roskin
975726afd0 * ext.c (exec_extension) [HAVE_X]: Disable console handling. 2001-06-23 00:09:13 +00:00
Pavel Roskin
5c56eb0c5a * cons.handler.c: Reorganize includes. Fix warnings on BSD.
* rxvt.c (rxvt_extensions): Make static.
* main.c (sigchld_handler_no_subshell) [!__linux__]: Don't try
to restart cons.saver.
* subshell.c (sigchld_handler) [!__linux__]: Likewise.
2001-06-22 23:29:18 +00:00
Pavel Roskin
2ba50c0365 * fsusage.c: Use HAVE_INFOMOUNT.
* mountlist.c: Likewise. Fix condition when mount_list is
declared.
(fstype_to_string): Rename mount_list to mlist to avoid
confusion with the file-scoped static variable.
2001-06-22 16:53:34 +00:00
Pavel Roskin
6ba78b2f80 s/HAVE_PARAM_H/HAVE_SYS_PARAM_H/ 2001-06-22 15:56:59 +00:00
Pavel Roskin
c27d9c8cc5 * cmd.c [HAVE_X]: Disable more code. Reorder includes. 2001-06-22 15:40:12 +00:00
Pavel Roskin
b3339f9281 * main.c: Remove MenuBarEmpty. From Andrew V. Samoilov. 2001-06-20 17:15:41 +00:00
Pavel Roskin
1636c8ef6b * wtools.c [HAVE_X]: Disable quick dialog routines. 2001-06-20 17:12:47 +00:00
Pavel Roskin
6ccb2a0131 * setup.c (save_setup) [HAVE_X]: Don't save the [Dirs] section.
(load_setup) [HAVE_X]: Don't load the [Dirs] section.
* main.c [HAVE_X]: Disable other_dir and boot_current_is_left.
Adjust all users.
2001-06-20 15:08:18 +00:00
Pavel Roskin
8040aeec39 * background.h: Correct condition when WITH_BACKGROUND is
defined.
* fsusage.c: Rearrange the includes. Define HAVE_QNX_MOUNT
for old QNX and use it instead of __QNX__.
* mountlist.c: Likewise.
* keyxdef.c: Define HAVE_QNX_KEYS for old QNX and use it instead
of __QNX__.
2001-06-19 19:57:58 +00:00
Pavel Roskin
e470f1d208 * main.c [HAVE_X]: Disable change_panel(),
copy_current_readlink() and copy_other_readlink().
Don't do anything with cmdline and command_prompt.
* screen.c [HAVE_X]: Disable panel_event(), chdir_other_panel()
and chdir_to_readlink(). Adjust all callers.
(panel_key) [HAVE_X]: Don't use command_prompt - always
start search on alphanumeric keys.
* setup.c [HAVE_X]: Disable save_layout(), load_layout(), struct
layout. Adjust all dependencies.
2001-06-19 00:43:56 +00:00
Pavel Roskin
521a886013 * utilunix.c (init_my_statfs): Move this ...
* util.c (my_statfs): ... and this ...
* mountlist.c: ... here.
* util.h: Move mountlist-related declarations ...
* mountlist.h: ... here.
* info.c: Include mountlist.h.
2001-06-18 22:24:04 +00:00
Pavel Roskin
4bd227b376 Fix typo. Fix formatting in several places. 2001-06-18 15:16:54 +00:00
Pavel Roskin
05f1de349d * hotlist.c (init_movelist): Don't assume English word ordering
in the title.
2001-06-17 04:33:33 +00:00
Andrew V. Samoilov
44dd616cce * wtools.c (message): Possible buffer overflow fixed.
(query_callback) [HAVE_X]: Disable more code.
(listbox_refresh) [!HAVE_X]: Became a macro.
* hotlist.c (init_i18n_stuff): Mark cancel_but for translation.

* tree.c (tree_copy, tree_move): Possible memory leaking fixed.
(tree_keymap): Constified.
2001-06-16 07:46:42 +00:00
Andrew V. Samoilov
abc861e48f * tree.c (tree_copy, tree_move): Possible memory leaking fixed.
(tree_keymap): Constified.
2001-06-16 07:40:03 +00:00
Andrew V. Samoilov
c45f39a7e4 * wtools.c (message): Possibly buffer overflow fixed.
(query_callback) [HAVE_X]: Disable more code.
(listbox_refresh) [!HAVE_X]: Became a macro.
2001-06-16 06:17:28 +00:00
Andrew V. Samoilov
df436f8163 * hotlist.c (init_i18n_stuff): Mark cancel_but for translation. 2001-06-16 06:11:28 +00:00
Pavel Roskin
b4669a6baa * panelize.c: Define DIR_H_INCLUDE_HANDLE_DIRENT earlier, since
the GNOME edition includes dir.h from other headers.
2001-06-16 00:09:00 +00:00
Pavel Roskin
7205d0210c * background.c: Include "x.h".
* panelize.c: Likewise.
* treestore.c: Likewise.
* user.c: Likewise.
* util.c: Likewise.
* command.c: Reorder includes. Include "x.h".
* complete.c: Likewise.
* find.c: Likewise.
* user.h: Declare user_menu_cmd() inconditionally.
* i18n.h [GAVE_GNOME]: Remove code that is now in x.h.
2001-06-15 23:37:59 +00:00
Pavel Roskin
0bf95fdacc * tty.h [HAVE_X]: Define beep() to gdk_beep(). 2001-06-15 07:04:50 +00:00
Pavel Roskin
a06415a371 * xtty.h: Remove, move contents ...
* tty.h: ... here.
[HAVE_X]: Define attrset(), mc_refresh(), enable_interrupt_key()
and disable_interrupt_key(). Don't declare mc_refresh().
* view.c: Use braces around widget_move() since it's empty in
the GNOME edition.
* xslint.c: Eliminate attrset() and mc_refresh().
* Makefile.in: Remove xtty.h.
2001-06-15 00:24:14 +00:00
Pavel Roskin
8c1534e4e6 * cons.handler.c (handle_console): Remove useless default.
* ext.c (regex_command): Initialize include_target_len.
* find.c [HAVE_GNOME]: Eliminate untyped declarations.
* fsusage.c: Remove untyped declaration of statfs().
[_AIX && _I386]: Rename statfs to aix_statfs and move
it before get_fs_usage(). Define statfs to aix_statfs.
2001-06-14 23:28:54 +00:00
Pavel Roskin
bec643d103 * achown.c: Eliminate untyped declarations.
* boxes.c: Likewise.
* cons.saver.c: Likewise.
* hotlist.c: Likewise.
* panelize.c: Likewise.
* rxvt.c: Likewise.
* main.c: Likewise. Make undeclared functions static.
* treestore.c: Make undeclared functions static.
* view.c: Likewise.
* widget.c: Likewise.
2001-06-14 22:33:00 +00:00
Pavel Roskin
c2c3918eb3 * main.h: Fix prototype of exec_shell.
* tree.c: Make all functions static when possible.
* tree.h: Changes for the above.
2001-06-14 21:21:25 +00:00
Pavel Roskin
b504500f49 * text.c [HAVE_X]: Remove useless #error.
* cons.saver.c: Indent #error to hide it from old compilers.
2001-06-14 15:59:52 +00:00
Pavel Roskin
ff84fd632e * screen.c (display_mini_info): Avoid nested i18n calls.
(parse_panel_size): Warning fix.
* user.c [HAVE_X]: Warning fix.
(check_format_var): Avoid nested i18n calls. Improve messages.
2001-06-13 22:12:04 +00:00
Pavel Roskin
c2f8f8d935 * screen.c (user_file_menu_cmd) [HAVE_X]: Disable.
(panel_callback) [HAVE_X]: Don't define labels, they are unused.
* user.c [HAVE_X]: Disable all user meny code.
2001-06-13 16:51:15 +00:00
Pavel Roskin
869afff53c * color.c (color_table): Make static. Only use in text edition.
* xtty.h: Remove unused definitions.
2001-06-13 07:19:48 +00:00
Pavel Roskin
c603d50193 * slint.c (slang_init): Check screen dimensions and exit if they
are abnormal. This may happen due to a S-Lang bug when the TERM
is set to a value not listed in termcap or terminfo.
2001-06-13 06:53:08 +00:00
Pavel Roskin
212444523c * boxes.c [HAVE_CHARSET]: Localize more strings. Lay out the
encoding dialog using the translated title length. Remove
useless preprocessor directives.
From David Martin <dmartina@excite.es>
2001-06-12 18:55:48 +00:00
Andrew V. Samoilov
3f801e3e37 * selcodepage.c (do_select_codepage): Fix compilation. 2001-06-11 12:11:06 +00:00
Andrew V. Samoilov
17791c512b * dlg.[ch] (x_set_dialog_title): title constified.
(create_dlg): Use g_new0 instead of g_new.
2001-06-11 11:25:25 +00:00
Pavel Roskin
89efd201ca Give credit to Andrew V. Samoilov for the last patch. 2001-06-09 07:24:50 +00:00
Pavel Roskin
58d8979490 * util.c (load_mc_home_file): New function. Load file from
mc_home, but try localized version of that file first.
* util.h: Declare load_mc_home_file().
* help.c (interactive_display): Use load_mc_home_file(). If the
first argument is NULL assume mc.hlp.
* dlg.c (dialog_handle_key): Use interactive_display() without
specifying the help file.
* tree.c (tree_copy): Likewise.
* cmd.c (help_cmd): Likewise.
(get_random_hint): Use load_mc_home_file().
2001-06-09 07:13:46 +00:00
Andrew V. Samoilov
46e9007ea3 * charsets.h: Define CHARSETS_INDEX without leading LIBDIR.
* charsets.c (translate_character): Warning fix.
(init_translation_table): Don't deal with printable.
This one is initialized by init_printable_table ().
(load_codepages_list): Use CHARSETS_INDEX.

* selcodepage.c (do_select_codepage): Messages marked for i18n.
* setup.c (load_setup): Eliminate errbuf. Fix error message.
2001-06-07 22:36:45 +00:00
Pavel Roskin
e7f81bb092 * setup.c (load_setup): Call init_printable_table() and
init_translation_table() regardless of other failures.
2001-06-07 20:47:36 +00:00
Pavel Roskin
d3b2663c2e * charsets.c (get_codepage_index): Warning fix.
(init_printable_table): New function.
* charsets.h: Declare init_printable_table().
* setup.c (load_setup): Uncomment init_printable_table().
2001-06-07 20:04:03 +00:00
Pavel Roskin
c4c5f40a87 * cons.saver.c: Make all functions except main() static.
* mfmt.c (omain): Remove, it's unused.
2001-06-07 19:28:03 +00:00
Pavel Roskin
4d15e658d7 * main.c (done_mc) [HAVE_X]: Don't use xterm_flag.
(midnight_callback) [HAVE_X]: Don't handle any keys except
Ctrl-x sequences.
Remove useless preprocessor conditionals.
* win.c [HAVE_X]: Disable unused functions.
2001-06-06 21:41:44 +00:00
Pavel Roskin
bcfea1e371 * file.c: Add comments after every endif.
[HAVE_GNOME] [!WITH_BACKGROUND]: Fix compilation.
2001-06-06 16:32:31 +00:00
Andrew V. Samoilov
d1ebd015ce * boxes.c (sel_charset_button): Eliminate C++ comment.
(new_display_codepage): Made static.
(display_bits_box): Use "%s" for plain string in message.
2001-06-06 13:46:24 +00:00
Andrew V. Samoilov
71ad50aeca * main.c [HAVE_CHARSET]: Remove source_codepage and display_codepage.
They are declared in selcodepage.c.
* setup.c [USE_VFS]: Remove declarations for variables which are
declared in vfs/ftpfs.c.
(load_setup) [HAVE_CHARSET]: init_printable_table commented
out to enable compilation. Error strings tagged for translation.
(init_setup): Optimized.
2001-06-06 11:52:32 +00:00
Pavel Roskin
cd1fd56223 * boxes.c [HAVE_CHARSET]: New charset selection dialog.
* main.c [HAVE_CHARSET]: Don't use eight_bit_clean and
full_eight_bits. Use source_codepage and display_codepage to
deduce the terminal 8-bitness.
* main.h [HAVE_CHARSET]: Change to match main.c.
* setup.c [HAVE_CHARSET]: Implement saving and loading charset
settings.
* util.c (is_printable) [HAVE_CHARSET]: Use charset settings.
* view.c [HAVE_CHARSET]: Implement charset support.
From Walery Studennikov <hqsoftware@mail.ru>.
2001-06-05 22:49:15 +00:00
Pavel Roskin
d34b0fde60 * selcodepage.c (do_select_codepage): New function.
* selcodepage.h: Declare it.
From Walery Studennikov <hqsoftware@mail.ru>.
2001-06-05 22:28:11 +00:00
Pavel Roskin
0e46f60810 * mfmt.c (omain): Warning fix. 2001-06-05 22:21:42 +00:00
Pavel Roskin
72db8e927d * key.c [HAVE_TEXTMODE_X11_SUPPORT]: Rename `display' to
`x11_display' and `w' to `x11_window'. Make them static.
(init_textmode_x11_support): Include into init_key().
(done_textmode_x11_support): Include into done_key().
(k_dispose): Make static.
(s_dispose): Likewise.
* key.h: Remove init_textmode_x11_support() and
done_textmode_x11_support().
* main.c: Don't call init_textmode_x11_support() and
done_textmode_x11_support().
2001-06-05 22:08:31 +00:00
Pavel Roskin
7b340a2af9 * achown.c: Make global variables static if possible. Remove now
useless preprocessor directives, since this file is now used in
the text edition only.
* boxes.c: Remove useless ifdefs.
[USE_VFS]: Don't undef USE_NETCODE - it's done in extraconf.h.
* cmd.c [USE_VFS]: Don't undef USE_NETCODE.
* chmod.c: Remove useless ifdefs.
* filegui.c: Likewise.
* hotlist.c: Likewise.
* info.c: Likewise.
* layout.c: Likewise.
* listmode.c: Likewise.
* option.c: Likewise.
* subshell.c: Likewise.
* help.c: Remove useless ifdefs. Make global variables static if
possible.
* key.c: Likewise.
* learn.c: Likewise.
2001-06-05 16:41:44 +00:00
Andrew V. Samoilov
2c2744b763 * charsets.c (load_codepages_list): Lines in mc.charset beginning
with a # are comments. Use "default character_set_name" in mc.charset
to set default codepage for your system.
(xstrncpy): Eliminate.
2001-06-05 01:00:26 +00:00
Pavel Roskin
4018a4bb6d * cmd.c (edit_symlink_cmd) [!HAVE_GNOME]: Warn if the current
selection is not a symbolic link.
2001-06-04 20:57:37 +00:00
Pavel Roskin
47754df0c4 * cmd.c (free_vfs_now) [HAVE_GNOME]: Eliminate.
(reselect_vfs) [HAVE_GNOME]: Likewise.
* main.c (ctl_x_map) [HAVE_GNOME]: Disable add2hotlist_cmd.
(done_mc) [HAVE_X]: Don't call save_hotlist().
* setup.c (save_setup) [HAVE_X]: Likewise.
(done_setup) [HAVE_X]: Don't call done_hotlist().
2001-06-02 06:52:28 +00:00
Pavel Roskin
429c5fcd58 * hotlist.c [HAVE_X]: Don't use ctrl_pressed().
* widget.c [HAVE_X]: Likewise.
* main.c [HAVE_X]: Likewise. Don't call init_key() and
init_key_input_fd().
* setup.c [HAVE_X]: Remove some variables that make no sence
for the GNOME edition. Eliminate save_panel_types().
* view.c [!PORT_WANTS_VIEW]: Eliminate view_mode_callback().
2001-06-02 01:17:27 +00:00
Pavel Roskin
b66d2fec72 * view.c [HAVE_X]: Define is_idle() to 1. Warning fix. 2001-06-02 01:01:30 +00:00
Pavel Roskin
67a118915d * file.c (copy_file_file): Initialize src_uid, src_gid, src_mode
and file_size to avoid a warning.
2001-06-02 00:00:51 +00:00
Pavel Roskin
0866d8c3e0 * charsets.c: Include config.h before everything else.
* selcodepage.c: Likewise.
2001-05-31 23:56:27 +00:00
Pavel Roskin
9c545b2e8f * textconf.c (features): Use longer strings to avoid enforcing
english word ordering on the translations. Capitalize sentences.
From Walery Studennikov: Indicate charset support.
(version): Use fputs, not fprintf.
2001-05-31 23:22:06 +00:00
Pavel Roskin
b75b12b34d * Makefile.in: Add charsets.c, charsets.h, selcodepage.c and
selcodepage.h. Compile them if the charset support is enabled.
Distribute them always.
2001-05-31 22:45:28 +00:00
Pavel Roskin
e72a150ac9 * charsets.c: New file for charset conversion support.
From Walery Studennikov.
* charsets.h: Likewise.
* selcodepage.c: Likewise.
* selcodepage.h: Likewise.
2001-05-31 01:27:20 +00:00
Pavel Roskin
540cccc4d6 * layout.c (init_curses) [!HAVE_SLANG]: Set ESCDELAY to 0 if
possible to prevent ncurses from waiting after escape.
2001-05-30 15:05:07 +00:00
Pavel Roskin
17724b4004 * cmd.c (quick_cd_cmd) [HAVE_GNOME]: Disable.
* main.c (sort_cmd) [HAVE_GNOME]: Likewise.
(ctl_x_map) [HAVE_GNOME]: Disable "Ctrl-x j" - background jobs.
2001-05-30 00:16:19 +00:00
Pavel Roskin
6c24b699cd * color.c (init_colors) [HAVE_SLANG]: Use "default" instead of
NULL as color names - this works even if COLORFGBG is unset.
Don't check HAS_DIRECT_COLOR_ACCESS - it's now meaningless.
2001-05-29 22:02:16 +00:00
Pavel Roskin
a0f3445a02 * color.h: Define DEFAULT_COLOR_INDEX and DEFAULT_COLOR in the
same way regardless of HAVE_SLANG.
* color.c (init_colors) [USE_NCURSES]: Initialize the default
color pair.
2001-05-29 17:02:28 +00:00
Pavel Roskin
826a5594ac * subshell.c (pty_open_master) [!HAVE_SCO && HAVE_GRANTPT]:
Don't try to close a file that wasn't opened.
2001-05-29 07:30:00 +00:00
Pavel Roskin
fdf8c736e5 * xslint.c: Remove slang_init() and FIXME in the comment.
* main.c (main) [!HAVE_SLANG]: Don't call slang_init().
2001-05-29 05:09:43 +00:00
Pavel Roskin
32f83d4899 * myslang.h: Use HAVE_SLANG_SLANG_H instead of non-standard
SLANG_H_INSIDE_SLANG_DIR.
2001-05-29 01:34:27 +00:00
Pavel Roskin
c1d8bfc818 * xslint.c: Remove unused functions. 2001-05-28 20:16:12 +00:00
Pavel Roskin
c2d9b832e9 * color.c (init_colors) [HAVE_SLANG]: Use SLtt_set_color() to
associate the default colors with DEFAULT_COLOR_INDEX. The old
code would unset alternative charset without making S-Lang aware
of it.
Thanks to John E. Davis <davis@space.mit.edu>
* widget.c (update_input) [HAVE_SLANG]: Revert last change - it
is not needed now.
2001-05-28 19:38:47 +00:00
Andrew V. Samoilov
6eda540762 '* src/main.c: Correct some comments after #endif
(shell): Remove comment and #ifdef around shell variable.
(process_args) [HAVE_SUBSHELL_SUPPORT]: All related args enclosed
between one #ifdef ... #endif pair.
(process_args): smbfs_set_debug () takes a debug level as argument,
commented out.

* vfs/sfs.c (shell): Variable moved to ...
* vfs/util-alone.c (shell): ... here'
2001-05-28 14:19:34 +00:00
Pavel Roskin
af11550b22 * main.c (OS_Setup) [!HAVE_X]: Exit immediately if TERM
environment variable is unset or empty.
2001-05-27 15:33:46 +00:00
Pavel Roskin
bfa6fb6d12 * configure.in: Remove unused HAVE_PORTABLE_TOKEN_PASTING.
* acconfig.h: Likewise.
* src/layout.c: Likewise.
2001-05-27 06:19:21 +00:00
Pavel Roskin
b0593ec1e2 * Make.common.in: Remove obsolete dependency tracking system.
* configure.in: Likewise.
* edit/Makefile.in: Likewise.
* gnome/Makefile.in: Likewise.
* gtkedit/Makefile.in: Likewise.
* slang/Makefile.in: Likewise.
* src/Makefile.in: Likewise.
* vfs/Make-mc.in: Likewise.
* src/depend.awk: Remove.
2001-05-27 04:34:12 +00:00
Pavel Roskin
2a6c911579 * cmd.c: Clean up useless preprocessor directives.
(symlink_cmd): Warning fix.
* dlg.c (dialog_handle_key) [HAVE_X]: Disable suspend on Ctrl-z.
* main.c (do_suspend_cmd) [HAVE_GNOME]: Remove.
(suspend_cmd) [HAVE_GNOME]: Likewise.
2001-05-26 02:00:52 +00:00
Pavel Roskin
721c15ab10 * widget.c (update_input) [HAVE_SLANG]: Work around a bug in
SLang 1.x - set charset to alternative when printing spaces.
2001-05-25 01:49:18 +00:00