Roland Illig
922043282d
* view.h: Renamed view to mc_internal_viewer. This avoids
...
hundreds of shadowed names in view.c.
2005-07-31 20:29:35 +00:00
Roland Illig
1b18865579
* user.c (execute_menu_command): Allow execution on no-exec
...
filesystems. This fixes Savannah Bug #13832 .
2005-07-31 19:29:04 +00:00
Leonard den Ottolander
f10fe35005
* main.[ch], user.c: Fixed a double free in mc_maybe_editor_or_viewer().
...
Restructured setup_dummy_mc() and expand_format() accordingly.
2005-06-22 21:38:52 +00:00
Pavel Roskin
1f60f44145
Update postal address of Free Software Foundation.
2005-05-27 03:35:10 +00:00
Pavel Roskin
c90d263d2c
* .c: Sanitize all calls to functions from ctype.h. Fix gcc 4.0
...
warnings.
2005-05-11 01:16:58 +00:00
Roland Illig
fc85bdba7e
* *.c: Reordered header inclusion.
2005-02-08 09:04:03 +00:00
Andrew V. Samoilov
17ec1c5476
* user.c (execute_menu_command): Revert last changes. Execute
...
shell_execute() with flag EXECUTE_HIDE to prevent recording
in ~/.bash_history.
* execute.h: Add EXECUTE_HIDE flag. It's used to prefix the command
with a space.
* execute.c (shell_execute): Prefix the command with a space, if define
EXECUTE_HIDE flag.
2004-11-18 17:47:55 +00:00
Roland Illig
57708c91cc
* user.c (execute_menu_command): Prefix the command with a space
...
to prevent recording in ~/.bash_history.
2004-11-16 22:41:00 +00:00
Andrew V. Samoilov
f7cacb883f
* user.c (expand_format): Return % with followed character if it
...
without special meaning.
2004-11-12 11:56:21 +00:00
Andrew V. Samoilov
3c8833159f
* user.c (user_menu_cmd): Fix error. test_line() doesn't handle
...
consecutive '+'s and '='s correctly. Pass a line starting with
a single '+' or '=' instead.
2004-10-20 12:29:55 +00:00
Roland Illig
8b1e87523a
* boxes.c (display_unit): Added const qualifier.
...
* file.c (check_hardlinks): Likewise.
* find.c (find_do_view_edit): Likewise. (find_file): Likewise.
* global.h (home_dir): Likewise.
* main.c (get_parent_dir_name): Likewise. (init_xterm_support):
Likewise. (OS_Setup): Likewise.
* menu.c (create_menu): Likewise.
* mountlist.c (xatoi): Likewise. (read_filesystem_list): Likewise.
* poptconfig.c (poptReadDefaultConfig): Likewise.
* popthelp.c (showHelpIntro): Likewise.
* rxvt.c (look_for_rxvt_extensions): Likewise.
* slint.c (has_colors): Likewise.
* subshell.c (check_sid): Likewise.
* user.c (check_format_var): Likewise.
* widget.c (radio_callback): Likewise.
2004-09-25 13:46:23 +00:00
Andrew V. Samoilov
68a7c1dfab
* boxes.c (configure_vfs): g_free handles NULL argument too,
...
no need for the comparison.
* cmd.c (set_panel_filter_to): Likewise.
(do_link): Likewise.
(quick_cd_cmd): Likewise.
* color.c (done_colors): Likewise.
* dialog.c (destroy_dlg): Likewise.
* dir.c (alloc_dir_copy): Likewise.
* ext.c (flush_extension_file): Likewise.
* file.c (copy_file_file): Likewise.
(panel_operate): Likewise.
* hotlist.c (remove_group): Likewise.
(remove_from_hotlist): Likewise.
(done_hotlist): Likewise.
* main.c (main): Likewise.
* setup.c (panel_load_setup): Likewise.
* tree.c (tree_destroy): Likewise.
(show_tree): Likewise.
* user.c (user_menu_cmd): Likewise.
* utilunix.c (i_cache_add): Likewise.
(putenv): Likewise.
* view.c (view_done): Likewise.
(regexp_search): Likewise.
(normal_search): Likewise.
(change_viewer): Likewise.
* widget.c (label_set_text): Likewise.
(set_label_text): Likewise.
2004-09-24 22:22:35 +00:00
Roland Illig
11842a375f
2004-09-24 Roland Illig <roland.illig@gmx.de>
...
* boxes.c: Replaced NULL with (char *) NULL. Likewise for 0, where
NULL was meant.
* cmd.c: Likewise.
* dialog.c: Likewise.
* ext.c: Likewise.
* file.c: Likewise.
* find.c: Likewise.
* hotlist.c: Likewise.
* learn.c: Likewise.
* main.c: Likewise.
* screen.c: Likewise.
* setup.c: Likewise.
* treestore.c: Likewise.
* user.c: Likewise.
* util.c: Likewise.
* utilunix.c: Likewise.
* view.c: Likewise.
* widget.c: Likewise.
* wtools.c: Likewise.
2004-09-24 15:05:28 +00:00
Roland Illig
9c334b4dd8
* achown.c: Added const qualifiers and const_cast.
...
* background.c: likewise.
* boxes.c: likewise.
* file.c: likewise.
* filegui.c: likewise.
* find.c: likewise.
* hotlist.c: likewise.
* info.c: likewise.
* layout.c: likewise.
* myslang.h: likewise.
* option.c: likewise.
* user.c: likewise.
* util.c: likewise.
* utilunix.c: likewise.
* view.c: likewise.
* widget.c: likewise.
2004-09-19 15:55:58 +00:00
Andrew V. Samoilov
1b80f9ceac
* complete.c (completion_matches): Use more suitable function
...
g_strndup(), instead sequence g_malloc(), strncpy(),
name[len] = '\0'
* widget.c (copy_region): Likewise. (delete_region): Use
memmove() instead strcpy().
* user.c (debug_out): Eliminate buffer array.
2004-09-01 23:25:21 +00:00
Andrew V. Samoilov
de59cf86c4
* user.c (check_format_var): Use more suitable function
...
g_strndup, instead sequence g_malloc(), strncpy(), name[len] = '\0'
* man2hlp.c (handle_link): Use g_strlcpy instead sequence
strncpy(), name[len] = '\0'
* profile.c (GetSetProfile): Likewise.
* wtools.c (fg_input_dialog_help): Likewise.
2004-09-01 18:31:24 +00:00
Andrew V. Samoilov
50dda0fcb3
* user.c (extract_line): Add a new parameter (size of the
...
output buffer) to prevent buffer overflow.
2004-03-07 06:24:14 +00:00
Pavel Roskin
9fe5ee23c9
* user.c (execute_menu_command): Put /bin/sh in the beginning of
...
the script.
2004-01-23 17:33:36 +00:00
Pavel Roskin
474fc58d94
* user.c (expand_format): Preserve "%" if followed by a
...
characted without special meaning.
2003-11-19 22:56:07 +00:00
Pavel Roskin
8bc40b44f0
Fix includes not to rely on $(top_srcdir) being in the include path.
2003-10-29 08:54:22 +00:00
Pavel Roskin
24384e9a89
* panel.h: Fix duplication between cpanel and current_panel in
...
favor of current_panel. Ditto opanel and other_panel.
2003-10-26 06:45:59 +00:00
Pavel Roskin
98950838b4
* dlg.h: Merge with ...
...
* dialog.h: ... this. Adjust all dependencies.
* dlg.c: Merge with ...
* dialog.c: ... this.
* Makefile.am (SRCS): Remove dlg.h and dlg.c.
2003-10-24 23:20:30 +00:00
Pavel Roskin
f219b81311
* vfsdummy.h: New file to replace vfs.h if VFS is disabled.
...
* Makefile.am: Add vfsdummy.h.
* global.h [!USE_VFS]: Include vfsdummy.h. Fix files that
include vfs.h directly.
2003-10-11 08:54:31 +00:00
Pavel Roskin
35931b119e
* user.c (execute_menu_command: Fix rare segmentation violation
...
if last line in menu file contain space(s) only and no trailing
newline.
2003-09-09 04:52:15 +00:00
Pavel Roskin
6349237830
* user.c (execute_menu_command): Implement %view macro.
2003-09-04 17:02:21 +00:00
Pavel Roskin
4dd13a09ba
* dir.h (file_entry): Rename "buf" to "st". Adjust all
...
dependencies.
2003-08-18 00:47:43 +00:00
Pavel Roskin
c72a1ea44c
Get rid of all references to NATIVE_WIN32.
2003-07-23 03:22:32 +00:00
Pavel Roskin
e4f7714ab1
* execute.c: New file with all functions for execution and
...
toggling panels not specific to subshell.
* execute.h: Corresponding header.
* Makefile.am: Adjust for the above.
2003-06-22 09:17:46 +00:00
Pavel Roskin
a568db4228
* main.c (execute): Eliminate. Fix all dependencies.
...
(shell_execute): Constify string argument.
2003-06-22 08:12:13 +00:00
Pavel Roskin
e0e20526b2
* user.h: Don't include edit/edit-widget.h.
...
* user.c: Include edit/edit-widget.h and edit/edit.h.
2002-11-29 03:03:53 +00:00
Pavel Roskin
af883aaecf
Fixes in English messages.
2002-11-11 17:27:13 +00:00
Pavel Roskin
b31f058eea
s/appropriative/suitable/
2002-09-26 23:40:03 +00:00
Pavel Roskin
cf31b0aacd
* user.c (check_patterns): Ignore invalid shell_patterns and
...
let user see them in the menu. The error message was too vague.
2002-09-26 23:33:22 +00:00
Pavel Roskin
da7e82d253
Global removal of RCS Id: flags.
2002-09-26 23:13:45 +00:00
Pavel Roskin
65924ac165
* ext.c (get_file_type_local): Make static.
...
(get_file_type_pipe): Likewise.
* util.c (check_patterns): Likewise.
2002-09-26 21:23:55 +00:00
Pavel Roskin
f2972e99dc
Comment fix.
2002-09-26 20:55:51 +00:00
Pavel Roskin
c785d4195b
* global.h: Move fcntl.h inclusion here. Define O_BINARY.
...
* mountlist.c: Remove more includes already handled in global.h.
2002-09-23 06:43:22 +00:00
Pavel Roskin
ec1b1f9614
Globally replace OS2_NT and _OS_NT with WIN32_NATIVE.
2002-09-10 22:04:11 +00:00
Andrew V. Samoilov
7d821e954e
* user.c (debug_out): Use "%s" as text argument.
2002-09-01 08:10:11 +00:00
Pavel Roskin
f5a762b7a8
* user.c (expand_format): Remove support for error file in the
...
editor.
* utilunix.c (close_error_pipe): Fix the condition when nothing
needs to be dislayed.
2002-08-24 17:25: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
5f2c890ba7
* user.c (expand_format): Fix '%b' proccessing.
...
Handle '%k' as documented.
2002-06-13 11:22:04 +00:00
Pavel Roskin
fa89635b51
Fully eliminate all references to HAVE_X and HAVE_GNOME.
2001-11-14 23:20:37 +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
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
689c3fb9ac
Replace "Can't" with "Cannot" everywhere.
2001-08-14 00:55:34 +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
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
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
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