Commit Graph

962 Commits

Author SHA1 Message Date
Pavel Roskin
34947b1819 * mouse.h: Major cleanup and interface change. init_mouse()
should only be called once, disable_mouse() and enable_mouse()
should be used later.  Distinguish between disabled and
undetected mouse.  Remove debugging stuff.  Adjust all users.
* mouse.c: Implementation of the above.
* key.c: Don't use gpm_flag - check mouse_enabled instead.
2001-09-17 04:43:58 +00:00
Pavel Roskin
9b00e32f64 * view.c: Cleanup of preprocessor directives.
* view.h: Likewise.
* widget.c: Likewise.
* widget.h: Likewise.
2001-09-16 01:22:12 +00:00
Pavel Roskin
f2e38b2c3a * textconf.h: Get rid of all PORT_HAS_*. Adjust all users.
Continued eliminating GNOME code.
2001-09-16 01:10:09 +00:00
Pavel Roskin
0a4aa53f65 * cmd.c: Clean up unused GNOME code and some ifdef's.
* dlg.c: Likewise.
* dlg.h: Likewise.
* ext.c: Likewise.
* setup.c: Likewise.
2001-09-16 00:53:43 +00:00
Pavel Roskin
7fe30fff07 * cmd.c (guess_message_value): Remove the argument. Adjust all
callers.
2001-09-16 00:18:39 +00:00
Pavel Roskin
e94ec737ad * textconf.c (features): Remove "edition", minor fixes.
(version): Don't report the current locale - it's meaningless,
especially if ENABLE_NLS is not defined.
2001-09-16 00:07:59 +00:00
Pavel Roskin
7e69c250a5 * textconf.h: Remove status_using_ncurses - it's useless now.
Adjust all users.  Call do_exit_ca_mode() and do_enter_ca_mode()
even with ncurses.
2001-09-15 23:44:43 +00:00
Pavel Roskin
aa50585937 * main.c (init_xterm_support): Don't enable xterm_flag just
because of "kmous" in terminfo.  Setiing this flag means much
more than just mouse support.  Recognize terminals beginning
with "rxvt" and set xterm_flag for them.
2001-09-15 22:59:34 +00:00
Pavel Roskin
e65a82ed06 * cmd.c (view_other_cmd): Don't check use_mouse_p before calling
init_mouse() and shut_mouse(), since those functions decide
themselves what to do.
* layout.c (done_screen): Likewise.
* main.c (setup_mc): Likewise.
* text.c (edition_post_exec): Likewise.
(edition_pre_exec): Likewise.
2001-09-15 21:34:42 +00:00
Pavel Roskin
b54b1e491c * user.h: Fix location of the home editor menu.
Reported by David Martin <dmartina@excite.es>
2001-09-15 18:56:58 +00:00
Pavel Roskin
3051dba20b * mouse.h: Export xmouse_seq.
* mouse.c (init_mouse): Use xmouse_seq instead of hardcoded
xterm mouse sequence.
* main.c (setup_post): Join with setup_mc().
(init_xterm_support): New function.  Check mouse capability.
(OS_Setup): Remove parts that are now in init_xterm_support().
2001-09-15 16:54:40 +00:00
Pavel Roskin
7efdf3527d * key.c (get_event): Recognize KEY_MOUSE, not just MCKEY_MOUSE.
* mouse.c: Don't use or emulate keyok(), since MC understands
KEY_MOUSE now.
2001-09-15 01:18:11 +00:00
Pavel Roskin
a100142753 * cmd.c (check_for_default): Make accessible from other files.
* cmd.h: Declare check_for_default().
2001-09-11 21:38:59 +00:00
Pavel Roskin
13e92aca94 * layout.c: Use HAVE_TERMIOS_H and HAVE_SYS_IOCTL_H more
consistently.
* mouse.c: Likewise.
* subshell.c: Likewise.
* win.c: Likewise.
* util.c: Remove unused includes.
2001-09-11 02:18:02 +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
192d6c1853 * hotlist.c (load_hotlist): If cannot open hotlist, don't assume
that it needs to be migrated and don't warn the user.
2001-09-09 05:46:44 +00:00
Pavel Roskin
e136f3b7b3 * Makefile.am: Fix definitions of CONFDIR and LOCALEDIR. 2001-09-09 01:50:00 +00:00
Pavel Roskin
a16f742216 * subshell.c: Move definitions of WEXITSTATUS and WIFEXITED
below all includes so that they can be defined elsewhere.
2001-09-08 05:36:23 +00:00
Pavel Roskin
b52bd06f04 * myslang.h: Specify arguments to function-like macros or remove
them if they are unused.
2001-09-08 04:37:19 +00:00
Pavel Roskin
92565a30ba * main.c: Remove old debugging code. Remove external function
declarations.
(menu_bar_event): Remove, it's unused.
* main.h: Declare get_mc_lib_dir() and force_ugly_line_drawing.
* layout.c: Remove all external declarations.
2001-09-08 04:06:03 +00:00
Pavel Roskin
bd5f3b08ae * main.c (main): Call save_stop_handler() - it was ifdef'd out
by error.
2001-09-07 22:37:46 +00:00
Pavel Roskin
482e115e3b * main.c: Remove all GNOME code. 2001-09-07 21:15:04 +00:00
Pavel Roskin
89dc0964cb * cmd.c: No need to define "MIDNIGHT" before including vfs.h. 2001-09-07 20:15:14 +00:00
Pavel Roskin
4895273a57 * user.h: Remove all dirty tricks with "MIDNIGHT" - they are not
needed anymore.
2001-09-07 19:54:15 +00:00
Pavel Roskin
c11389facb * global.h: Include io.h, pwd.h, grp.h and utime.h. Adjust all
sources not to include them and to include global.h at the right
place.
2001-09-07 17:52:19 +00:00
Pavel Roskin
dbe20dc6c8 * global.h: Include all time-related system includes, since
it's non-trivial (order, conflicts) and is better handled in one
place.
2001-09-07 16:46:31 +00:00
Pavel Roskin
013466a02e * fsusage.c: Include sys/param.h before sys/mount.h - it's
required on some systems.
* mountlist.c: Likewise.
From Timur Bakeyev <mc@bat.ru>
2001-09-07 02:40:45 +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
e840cff0dc * widget.c (label_new): Don't calculate dimensions of multiline
labels, since they cannot be changed and msglen() is already
used when the dialog is created.
2001-09-03 15:17:27 +00:00
Pavel Roskin
ed2306822f * Makefile.in: Converted to ...
* Makefile.am: ... this.
2001-09-03 07:03:46 +00:00
Pavel Roskin
44e9896171 * slint.c: Make more data and function static.
* key.h: Remove declarations that are now static.
* myslang.h: Likewise.
2001-09-03 05:55:22 +00:00
Pavel Roskin
a8ef641beb * x.h: Remove. Adjust all users. Make sure that global.h is
included instead.  Don't include sys/param.h unconditionally -
rely on global.h taking care of it.
* Makefile.in: Remove x.h.
2001-09-03 05:07:40 +00:00
Pavel Roskin
83c37cfd0f * color.c: Remove unused code.
* color.h: Likewise.
2001-09-03 04:32:16 +00:00
Pavel Roskin
ff7a2a0ceb * key.c: Remove support for BUGGY_CURSES. 2001-09-03 03:12:22 +00:00
Pavel Roskin
f3a84ebc1a * tty.h: Remove support for old curses and GNOME.
* global.h: Likewise.
2001-09-03 03:07:46 +00:00
Pavel Roskin
fc6efa62f9 * widget.c (label_new): Set initial width of the widget based on
the initial text.
2001-09-03 01:15:07 +00:00
Pavel Roskin
2ee372d4a8 * view.c (hex_search): Don't use sscanf() to search for quoted
strings - use strchr instead.
2001-09-02 20:34:44 +00:00
Pavel Roskin
6f8323907f Trimmed using last chtrim. Ensure exactly 2 spaces before e-mail. 2001-09-01 20:12:16 +00:00
Timur Bakeyev
043e782496 2001-08-31 23:14:21 Timur Bakeyev <mc@bat.ru>
* utilunix.c: init_groups(), destroy_groups(), get_user_permissions()
	rewritten to use GTree structure and functions. Add new static helper
	functions mc_gid_compare() and mc_gid_destroy().

	* util.h: Removed deprecated structure user_in_groups.

	* screen.c: Fixed typo in format report error string.

2001-08-31 23:14:21  Timur Bakeyev <mc@bat.ru>

	* utilunix.c: get_user_rights() renamed into get_user_permissions().
	delete_groups() renamed into destroy_groups().
	* util.h: Likewise.
	* screen.c: Likewise.
	* main.c: Likewise.
2001-09-01 13:47:34 +00:00
Pavel Roskin
f2547b3cbd * cmd.c (dirsizes_cmd): Don't cast st_size to long - use off_t
instead, since off_t can be longer.
Reported by Radovan Bukoci <rado@autoparts.sk>
2001-09-01 07:51:14 +00:00
Pavel Roskin
28ed7f82c0 * info.c (info_show_info): Use size_trunc_len() instead of
print_bytesize().  Don't assume English word ordering.  Add
singular message when single block.
* win.c (print_bytesize): Remove.
(sprint_bytesize): Remove.
* win.h: Remove print_bytesize() and sprint_bytesize().
2001-08-30 16:58:40 +00:00
Pavel Roskin
1ef25591d2 * util.c (size_trunc_len): Add units parameter. Change all
callers.
2001-08-30 16:41:08 +00:00
Pavel Roskin
242a26c03b * util.c (size_trunc_len): Print size values with some (little)
sense for tiny and even wee lengths (i.e. squeezed X terminals).
2001-08-30 16:19:45 +00:00
Pavel Roskin
54b219ebb6 * info.c (info_show_info): Move comment line just before
translatable message so it's shown in .po files to alert
translators.  The message (translated) is used to set the start
column (so the available width) for some "truncatable" strings.
2001-08-30 15:14:39 +00:00
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