Pavel Roskin
596869e68a
* key.c (learn_key): Turn off keypad to disable intepreting keys
...
by ncurses.
Reported by Frederic L. W. Meunier <fredlwm@pervalidus.net>
2001-08-27 21:24:29 +00:00
Pavel Roskin
511a88a5bf
* xcurses.c: Remove.
...
* Makefile.in: Remove all references to xcurses.c.
2001-08-26 08:56:29 +00:00
Pavel Roskin
4bbb7fd935
* user.h: Include "../edit/edit-widget.h", not
...
"../gtkedit/edit-widget.h".
2001-08-24 18:24:46 +00:00
Pavel Roskin
9466c031d8
* subshell.c: Use standard Autoconf symbols to determine whether
...
to include <stropts.h> and <grp.h>.
2001-08-24 04:51:11 +00:00
Pavel Roskin
7dbf6695ff
* subshell.c (feed_subshell): Don't wait forever after the first
...
select() call if fail_on_error is true. This alleviates hang
with zsh on QNX Neutrino.
2001-08-24 02:17:15 +00:00
Pavel Roskin
bca1e47369
* view.h: Declare view_dlg.
...
* main.h: Declare edit_dlg.
* layout.c (change_screen_size): Remove external declarations
inside the function.
2001-08-21 06:32:41 +00:00
Pavel Roskin
19437f2557
* view.c (load_view_file) [!HAVE_MMAP]: Warning fix.
2001-08-20 07:46:04 +00:00
Pavel Roskin
d56dd815b1
* main.c (mc_maybe_editor_or_viewer) [!USE_INTERNAL_EDIT]:
...
Reenable to make "mc -v" possible.
(do_nc): Call mc_maybe_editor_or_viewer() even if the editor
is not compiled in.
(argument_table) [!USE_INTERNAL_EDIT]: Disable "-e".
2001-08-20 05:39:21 +00:00
Pavel Roskin
cbd8053c3d
* view.c (view_handle_key) [HAVE_CHARSET]: Remove unneeded
...
statements.
2001-08-19 17:41:38 +00:00
Pavel Roskin
1daee3ab8f
* screen.c [HAVE_X]: Disable unused code.
2001-08-19 17:33:26 +00:00
Pavel Roskin
05adbccda8
* fs.h: Correctly include <sys/param.h>.
...
* x.h: Include "global.h". Move all contents ...
* global.h: Here.
2001-08-19 16:23:24 +00:00
Pavel Roskin
680d7fd55c
* regex.c (regex_compile): Warning fix for ambiguous else.
2001-08-19 16:18:40 +00:00
Pavel Roskin
fdc234060f
* key.c (xmouse_get_event): Filter out GPM_UP events that don't
...
follow a GPM_DOWN event. Filter out events with unknown button
numbers, such as mouse wheel events.
(get_event): Return EV_NONE if xmouse_get_event() decided to
ignore the event.
2001-08-18 19:27:31 +00:00
Pavel Roskin
5215df9192
* main.c (init_sigchld): Disable subshell if SIGCHLD handler
...
cannot be installed.
2001-08-18 15:18:56 +00:00
Pavel Roskin
ced66d3c9b
* x.h: Instead of undefining MIX and MAX after <gnome.h> make
...
sure that <sys/param.h> is included before <gnome.h>.
2001-08-18 07:35:11 +00:00
Pavel Roskin
4cac4d66ba
* key.c (mc_bindings) [linux]: Remove old hack - recognizing
...
"e[2~" on all terminals.
2001-08-17 04:41:31 +00:00
Pavel Roskin
849fecec4c
* charsets.c (load_codepages_list): Print a warning if
...
mc.charset cannot be opened.
* setup.c (load_setup) [HAVE_CHARSET]: Remove all popup messages
because it's to early to use them - ncurses would crash.
2001-08-16 21:01:12 +00:00
Pavel Roskin
b5e64692df
* util.c (strip_ctrl_codes): Rewrite using pointers. Fix
...
stripping sequences beginning with "e[". Check is_printable().
2001-08-16 03:52:51 +00:00
Pavel Roskin
ac504b9ba1
* man2hlp.c: Remove HTML support. Remove old link support.
...
Warning fixes.
(print_string): Handle backslashes in verbatim mode too.
2001-08-16 01:36:41 +00:00
Pavel Roskin
99c80d28d9
* main.c (setup_pre) [HAVE_CHARSET]: Fix compilation with
...
ncurses.
2001-08-15 22:45:20 +00:00
Pavel Roskin
246ee1445c
* textconf.c (features): Fix interpretation of
...
HAVE_SYSTEM_SLANG.
From David Martin <dmartina@excite.es>
2001-08-15 22:20:17 +00:00
Pavel Roskin
403dfdc24b
* key.h (define_sequence): Change declaration to return int.
...
* key.c (define_sequence): Return 1 on success, 0 on error.
* learn.c (learn_button): Don't accept sequence if
define_sequence() has failed.
2001-08-14 04:48:26 +00:00
Pavel Roskin
689c3fb9ac
Replace "Can't" with "Cannot" everywhere.
2001-08-14 00:55:34 +00:00
Pavel Roskin
686041bbe2
* learn.c (learn_save): Fix memory leak.
2001-08-12 18:20:33 +00:00
Pavel Roskin
596d916e5b
* dir.c (string_sortcomp) [HAVE_STRCOLL]: Make static.
2001-08-12 16:36:55 +00:00
Pavel Roskin
76926ea622
* cmd.c (guess_message_value): Typo - replace "LC_MESSAGE" with
...
"LC_MESSAGES".
2001-08-12 08:36:26 +00:00
Pavel Roskin
af4e2abdab
* dir.c (string_sortcomp) [HAVE_STRCOLL]: Always use strcmp()
...
for case sensitive sort. For case insensitive sort use
strcoll() if it's case insensitive for ASCII and g_strcasecmp()
otherwise.
2001-08-12 08:20:31 +00:00
Pavel Roskin
b3fbb01112
* achown.c (chown_advanced_cmd): Remove dead code.
...
* chown.c (chown_cmd): Likewise.
* chmod.c (chmod_cmd): Likewise.
2001-08-12 03:33:23 +00:00
Pavel Roskin
0177db2941
* charsets.c (load_codepages_list): Use concat_dir_and_file().
2001-08-12 03:27:27 +00:00
Pavel Roskin
50a2391d2b
* mad.h: Disable glib support - it doesn't work properly.
2001-08-11 05:13:10 +00:00
Pavel Roskin
2da73069b9
* view.c: Warning fixes. Include "cmd.h". Rename help_cmd()
...
to view_help_cmd().
(view_handle_key) [HAVE_X]: Disable '!' and Ctrl-O.
2001-08-07 16:53:55 +00:00
Pavel Roskin
5c428dc7a3
* main.c (do_execute): Don't show prompt if the command is empty
...
and the subshell is not running.
* view.c (view_handle_key): Add support for Ctrl-O in the viewer.
Suggested by Walery Studennikov <despair@sama.ru>
2001-08-07 16:32:22 +00:00
Pavel Roskin
d05bfe1f01
* boxes.c (display_init): Associate correct help topic.
...
(sort_box): Likewise.
(set_panel_filter): Likewise.
* option.c (init_configure): Likewise.
* menu.c (menubar_handle_key): Show help dependent on the active
menu.
2001-08-06 22:22:04 +00:00
Andrew V. Samoilov
12a291afdd
;)
2001-08-06 15:35:22 +00:00
Andrew V. Samoilov
7b568914ec
* view.c (block_search): Return the position where the block was
...
found as declared in comment.
(hex_search): Don't increase pos, block_search returns now right
position.
2001-08-06 15:33:38 +00:00
Andrew V. Samoilov
22861f9737
* mad.c (mad_strdup): Return NULL if NULL is passed.
2001-08-06 15:32:34 +00:00
Andrew V. Samoilov
cd34ee8d1f
* mad.[ch] (mad_check): Declare file parameter const.
...
(mad_alloc): Likewise. Don't truncate it.
(mad_abort): Declare message and file parameters const.
2001-08-03 10:33:54 +00:00
Pavel Roskin
b201fe6077
* file.c: Warning fix. Include global.h before other local
...
includes.
* filegui.c: Likewise.
(fmd_init_i18n) [!ENABLE_NLS]: Completely disable.
* i18n.h [!ENABLE_NLS]: Warning fix.
* learn.c (init_learn): Move do_refresh() call immediately
before cleate_dlg(). Warning fix.
2001-08-03 04:47:52 +00:00
Pavel Roskin
27d0af32c6
* Makefile.in: "install" now depends on "all".
...
Reported by Walery Studennikov <despair@sama.ru>
2001-07-31 15:24:15 +00:00
Andrew V. Samoilov
4e15f75f32
* complete.c (command_completion_function): Don't stop $PATH
...
processing on empty entry. Interpret it as current directory.
2001-07-31 15:21:28 +00:00
Andrew V. Samoilov
d83a8e7b5e
* find.c (find_parameters): Fix hotkeys duplication.
2001-07-31 12:18:07 +00:00
Andrew V. Samoilov
d9fb8565c0
* menu.c (create_menu): Don't localize name, it is always done.
2001-07-31 11:15:46 +00:00
Andrew V. Samoilov
8611daeb0c
* widget.[ch] (label_new): Make text parameter const.
2001-07-31 11:04:21 +00:00
Andrew V. Samoilov
78dbe61c6a
* util.c [!HAVE_X] (is_printable): Don't duplicate declarations from
...
main.h.
(load_file): Use fopen and fstat to prevent race conditions.
(size_trunc): Make suffix const array.
(strip_password): Make prefixes const array.
(file_date): Make fmt auto variable.
2001-07-31 10:38:15 +00:00
Andrew V. Samoilov
24385045ce
* color.c (color_table): Make constant array.
2001-07-31 10:32:50 +00:00
Pavel Roskin
2a6be49822
* charsets.c: Warning fixes.
...
* charsets.h: Likewise.
* selcodepage.c: Likewise.
* selcodepage.h: Likewise.
2001-07-31 05:54:39 +00:00
Pavel Roskin
1ae4e4e1cb
* Makefile.in: Move most logic around gindex.pl into gindex.pl.
...
Don't use maintainer-only rules since mc.hlp won't be removed
now if perl is missing or gindex.pl fails.
* gindex.pl: Run man2hlp internally. Use files given as
arguments instead of stdin and stdout.
2001-07-31 05:25:30 +00:00
Pavel Roskin
a6f868a6cf
* mad.c: Don't use g_calloc - it's missing in glib 1.2.x.
...
* mad.h: Likewise. Use mad_alloc0() to emulate calloc().
2001-07-30 20:43:20 +00:00
Pavel Roskin
506634318f
* view.h: Simplify, respect WANT_WIDGETS setting.
2001-07-30 15:43:42 +00:00
Pavel Roskin
813cf40ac4
* view.c (view_ok_to_quit): Make global - it's needed for GMC.
...
* view.h: Declare view_ok_to_quit().
2001-07-29 02:08:40 +00:00
Pavel Roskin
70fa991882
* util.c [!USE_VFS] (get_current_wd): Resurrect, this time using
...
g_get_current_dir().
2001-07-27 21:20:43 +00:00
Pavel Roskin
97af90af3c
* background.h: Remove WITH_BACKGROUND, it's now in extraconf.h.
...
* background.c: Use WITH_BACKGROUND instead of USE_NETCODE.
2001-07-27 20:36:22 +00:00
Pavel Roskin
b4be52ba78
* util.c (mc_mkstemps): Don't prepend $TMPDIR if prefix contains
...
path separator.
2001-07-27 19:27:09 +00:00
Pavel Roskin
f0beaa4ed7
* cmd.c (do_link): Append filename to the default symlink
...
target. Don't add path separator if there is no listing on
the other panel. Avoid using fixed size buffers.
From Max Schedriviy <max@tavrida.net>
2001-07-26 15:47:19 +00:00
Pavel Roskin
11fd4abc0e
* main.c [HAVE_X]: Disable eight_bit_clean and full_eight_bits.
...
* util.c (is_printable) [HAVE_X]: Simplify.
2001-07-26 05:01:26 +00:00
Pavel Roskin
b900848aaa
* cmd.c (do_link): Simplify. Don't silently exit if the source
...
file is not regular - let user see the error if any.
2001-07-25 22:42:23 +00:00
Pavel Roskin
93f54c5c1b
* achown.c (ch_perm): Make constant array.
...
(chown_info_update): Use set_perm_by_flags(), not set_perm().
(set_perm): Remove.
2001-07-24 16:16:13 +00:00
Pavel Roskin
159b4aa1ef
* achown.c: Make all global variables static. Fix help.
...
* complete.c: Likewise.
* chmod.c: Make all global variables static.
* chown.c: Likewise.
* chmod.h: Remove all variables.
2001-07-24 15:04:21 +00:00
Pavel Roskin
fd895e3759
* user.c: Eliminate static variable s_editwidget. Pass
...
edit_widget as argument. All callers changed.
(expand_format): Fix expansion of %n and %b for the editor.
* util.c: Remove dead code.
2001-07-23 22:50:54 +00:00
Pavel Roskin
725f2ac2ec
* setup.c (load_keys_from_section): Give terminal-specific
...
settings preference over settings from [terminal:general].
2001-07-23 19:14:40 +00:00
Pavel Roskin
a7937891ea
* setup.c (load_keys_from_section): Give ~/.mc/ini preference
...
over mc.lib.
2001-07-22 06:00:30 +00:00
Pavel Roskin
506273750e
* dlg.c: Remove dependency on definitions in gconf.h.
2001-07-20 16:47:46 +00:00
Pavel Roskin
d866874b24
* widget.c (input_callback) [HAVE_X]: Disable Ctrl-q - it
...
doesn't work.
2001-07-20 16:34:05 +00:00
Pavel Roskin
2dd2dc2182
* file.c (panel_get_file): Use g_assert_not_reached().
...
* key.c (xgetch_second): Make static.
2001-07-20 16:19:28 +00:00
Pavel Roskin
b25f5be791
* Make.common.in: Move all defines ...
...
* gnome/Makefile.in: ... here ...
* src/Makefile.in: ... and here.
2001-07-20 15:22:50 +00:00
Pavel Roskin
71620c6a9e
* user.c (check_format_view): Match "unform" instead of
...
"unformated" because some users may spell this word correctly.
2001-07-19 21:25:40 +00:00
Pavel Roskin
c19dfa9175
* util.c (get_current_wd): Remove. It's obsoleted by
...
g_get_current_dir() from glib.
2001-07-18 03:49:08 +00:00
Pavel Roskin
ce150c8aa9
* ext.c (exec_extension): Add the `rm' command to the end of
...
temporary scripts so that they erase themselves.
2001-07-18 03:06:57 +00:00
Pavel Roskin
4349ae1c4e
* util.c (mc_mkstemps): Always use "unsigned long" for enthropy,
...
since gcc-2.7.2.1 on SunOS doesn't understand __extension__ and
checking for "long long" is not worth the trouble.
Reported by David Martin <dmartina@excite.es>
2001-07-17 18:38:46 +00:00
Pavel Roskin
f952acf1f8
* utilunix.c (mc_doublepopen): Use _exit() instead of exit()
...
and don't close any unrelated file descriptors. Explicitly
close inhandle.
2001-07-16 23:34:56 +00:00
Pavel Roskin
57fde54f99
* mad.h: Include stdio.h to prevent redefining mad_tempnam().
...
* main.c [HAVE_X && HAVE_MAD]: Don't call done_key().
2001-07-16 04:06:35 +00:00
Pavel Roskin
5ae49e62d1
* dlg.h: Remove declarations of non-existent functions.
...
[HAVE_X]: Disable color constants - they shouldn't be used.
2001-07-16 00:58:53 +00:00
Pavel Roskin
75be0dd7e1
Use short path in the last entry.
2001-07-15 07:24:58 +00:00
Pavel Roskin
a66a15319d
* src/boxes.c [WITH_SMBFS] (vfs_smb_get_authinfo): Copied from
...
vfs/smbfs.c, function authinfo_get_authinfo_from_user().
2001-07-15 07:04:53 +00:00
Pavel Roskin
aa9ac05960
* cmd.c [HAVE_X]: Disable source routing dialog and panel
...
comparison.
* main.c (ctl_x_map): Simplify preprocessor directives.
2001-07-15 04:14:39 +00:00
Pavel Roskin
069eaca778
* screen.c (panel_keymap) [HAVE_X]: Disable Alt-H - it's not
...
implemented properly for GNOME.
* main.c (directory_history_list) [HAVE_X]: Disable.
2001-07-15 03:50:23 +00:00
Pavel Roskin
af1dc9fd62
* panelize.c [HAVE_X]: Disable unused code.
2001-07-14 22:41:24 +00:00
Pavel Roskin
9f014513ab
* main.c [HAVE_X]: Disable Ctrl-X sequences.
2001-07-14 22:13:46 +00:00
Pavel Roskin
e280cb5c8b
* find.c: Remove code unused in the text edition.
2001-07-14 21:44:39 +00:00
Pavel Roskin
6883eb1dd0
* main.c [HAVE_X]: Eliminate setup_post() and partly done_mc().
2001-07-14 06:25:45 +00:00
Pavel Roskin
5fd1f032f3
* utilunix.c (uid_cache): Make static.
...
(gid_cache): Likewise.
(init_uid_gid_cache): Remove.
* main.c (setup_post): Don't call init_uid_gid_cache().
2001-07-14 06:13:29 +00:00
Pavel Roskin
9e7e7037f8
* main.c (default_map) [HAVE_X]: Disable Alt-T.
...
* cmd.c [HAVE_X]: Eliminate set_basic_panel_listing_to() and
toggle_listing_cmd().
2001-07-14 05:37:27 +00:00
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
Pavel Roskin
a13c1d1928
* ext.c (exec_extension): Use g_free() on the result of
...
mc_mkstemps(). Don't free it if mc_mkstemps() fails - it's not
needed anymore.
* user.c (execute_menu_command): Likewise.
* util.c (mc_mkstemps): Return NULL in the filename in the case
of failure. Remove support for NULL as the first argument.
From Andrew V. Samoilov.
2001-05-22 07:10:43 +00:00
Pavel Roskin
bea09b932d
* src/ext.c (exec_extension): Use mc_mkstemps().
...
* src/user.c (execute_menu_command): Use mc_mkstemps().
* src/util.c (mc_mkstemps): New function - safely create and
open temporary file. Return the handle and the name.
* src/util.h: Declarations for init_tmpdir() and mc_mkstemps().
Define TMPDIR_DEFAULT and SCRIPT_SUFFIX.
* vfs/direntry.c (vfs_s_open): Use mc_mkstemps. Create and close
temporary file to reserve its name on the filesystem.
(vfs_s_retrieve_file): Use mc_mkstemps().
(g_tempnam): Remove.
* vfs/extfs.c (extfs_open): Use mc_mkstemps().
* vfs/sfs.c (redirect): Likewise.
* vfs/shared_ftp_fish.c (_get_file_entry): Likewise.
(retrieve_file): Likewise.
* vfs/vfs.c (mc_def_getlocalcopy): Likewise.
* vfs/xdirentry.h: Remove declaration of g_tempnam().
2001-05-21 16:21:07 +00:00
Pavel Roskin
38a1e6499c
* INSTALL: Update download locations for MC, rxvt, gpm, ncurses.
...
Add download location for glib.
* mc.spec.in: Likewise.
* doc/LSM: Likewise.
* doc/mc.1.in: Likewise.
* doc/mcedit.1.in: Likewise.
* src/ext.c: Don't mention download location for MC.
2001-05-18 18:44:51 +00:00
Pavel Roskin
5f8add985b
* TODO: Remove Tk-related entries.
...
* boxes.c [HAVE_TK]: Remove. Don't need INPUT_INDEX anymore.
* screen.c [HAVE_TK]: Remove.
(panel_event): Made static.
* chmod.c [HAVE_TK]: Remove.
* cmd.c [HAVE_TK]: Likewise.
* help.c [HAVE_TK]: Likewise.
* hotlist.c [HAVE_TK]: Likewise.
* info.c [HAVE_TK]: Likewise.
* view.c [HAVE_TK]: Likewise.
* view.h [HAVE_TK]: Likewise.
* widget.c [HAVE_TK]: Likewise.
* wtools.c [HAVE_TK]: Likewise.
2001-05-18 17:44:02 +00:00
Pavel Roskin
944d5416c0
* TODO: Remove XView-related entries.
...
* menu.h [HAVE_XVIEW]: Remove all XView-related code.
2001-05-18 16:58:03 +00:00
Pavel Roskin
327797ea96
* INSTALL: Remove information about Tk and XView. Change the
...
mailing list addresses again.
* FAQ: Change the mailing list addresses again.
* MAINTAINERS: Likewise.
* README: Likewise.
* doc/mc.1.in: Likewise.
* gnome/gmc-window.c: Likewise.
* lib/README.xterm: Likewise.
* lib/mc.ext.in: Likewise.
* lib/mc.hint*: Likewise.
* lib/mc.hlp.hu: Likewise.
* po/*.po: Likewise.
* src/main.c: Likewise.
2001-05-18 16:28:22 +00:00
Pavel Roskin
85e2dac3be
* subshell.c (pty_open_master) [HAVE_SCO]: Fix ambigous `else'.
...
[!HAVE_SCO && !HAVE_GRANTPT]: Likewise.
2001-05-17 16:53:35 +00:00
Pavel Roskin
d21f09608b
* subshell.c: Define _GNU_SOURCE to enable prototypes for
...
allocating pseudo-terminals on GNU systems.
2001-05-17 00:47:51 +00:00
Pavel Roskin
7f448a4c2e
* subshell.c (init_subshell_child): New function to initialize
...
child process and run subshell. Code moved from ...
(init_subshell): ... here.
2001-05-17 00:40:18 +00:00
Pavel Roskin
2d11201264
* subshell.c (init_subshell): Don't close pty_slave if is wasn't
...
open. Initialize it with -1.
2001-05-17 00:13:19 +00:00
Pavel Roskin
cc8fa6552a
* main.c [HAVE_GNOME]: Disable more code.
...
* cmd.c [HAVE_GNOME]: Likewise.
2001-05-15 00:53:48 +00:00
Pavel Roskin
bc5e0cd228
* background.h: Omit definitions that require FileOpContext if
...
fileopctx.h has not been included yet.
2001-05-14 23:28:29 +00:00
Pavel Roskin
f6403d9972
* background.c (real_message_2s): Declare arguments "const" when
...
possible.
(real_message_3s): Likewise.
* wtools.c (message): Likewise.
* background.h: Change declarations to match.
* dialog.h: Likewise.
2001-05-14 22:50:28 +00:00
Pavel Roskin
532c80d929
* complete.c [HAVE_GNOME]: Likewise.
...
* main.c [HAVE_GNOME]: Likewise.
2001-05-14 22:17:06 +00:00
Pavel Roskin
1bb43b9c1a
* boxes.c [HAVE_GNOME]: Disable unused code.
...
* find.c [HAVE_GNOME]: Likewise.
2001-05-14 21:57:10 +00:00
Pavel Roskin
a036aa0207
* screen.c (adjust_top_file): Enable only if it's used, i.e.
...
when PORT_HAS_PAINT_FRAME in undefined.
* wtools.c (listbox_refresh): Disable for HAVE_X, define to
an empty macro instead.
(listbox_callback): Call listbox_refresh() regardless of HAVE_X.
(create_listbox_window): Likewise.
2001-05-14 21:35:56 +00:00
Pavel Roskin
21d3c2b138
* fsusage.c: Include stdlib.h for abort().
...
* tree.c (tree_mkdir_cmd): Disable tree_mkdir_cmd() since it's
not used.
* widget.c: Declare x_radio_toggle() with arguments.
2001-05-14 21:18:58 +00:00
Pavel Roskin
814ee01b63
* util.h: Remove declarations of some functions defined in
...
background.c.
2001-05-14 21:08:45 +00:00