Pavel Roskin
26e444a11c
* background.c (tell_parent): Eliminate.
...
(background_attention): Use error code instead.
* file.c (panel_operate): Exit with code 0, not 1.
2003-10-26 05:42:29 +00:00
Pavel Roskin
211ce16fac
* wtools.c: Merge mc_message() and message() into one background
...
safe function message(). Fix all callers.
2003-10-26 04:47:20 +00:00
Pavel Roskin
a08f91eb63
* background.c: Clean up includes.
...
(do_background): Set current_dlg to NULL for the child process.
* dialog.h (do_complete_refresh): Don't use we_are_background.
* file.h: Remove dependency on background.h.
* background.h: Define we_are_background. Move mc_message() ...
* wtools.h: ... here.
* key.h: Don't define we_are_background.
* slint.c (mc_refresh): Use current_dialog instead of
we_are_background to fix compilation without WITH_BACKGROUND.
2003-10-26 00:58:14 +00:00
Pavel Roskin
2d33b5047e
* background.c: Replace all message stubs with a new function
...
mc_message(). Protect against strlen(MSG_ERROR). Adjust all
dependencies.
2003-10-25 19:54:24 +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
52844a3092
* vfs.h: Rename commands for mc_ctl() and mc_setctl() to make it
...
clear which function they are used with.
* vfs.c (mc_ctl): Change last argument to (void*).
(mc_set): Likewise.
Adjust all dependencies.
2003-10-16 16:12:19 +00:00
Pavel Roskin
0837ed2b49
* cmd.c: Cleanup of unneeded global functions and data.
...
* color.c: Likewise.
* dir.c: Likewise.
* file.c: Likewise.
* filegui.c: Likewise.
* hotlist.c: Likewise.
* layout.c: Likewise.
* main.c: Likewise.
* panelize.c: Likewise.
* wtools.c: Likewise.
2003-10-14 21:58:56 +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
c09d542b9e
* file.c (check_hardlinks): Use vfs_file_class_flags().
2003-10-11 08:23:00 +00:00
Pavel Roskin
9d1f2aae71
* vfs.c (vfs_type): Rename to vfs_get_class(). Fix prototype to
...
avoid using internal vfs type. Adjust all dependencies.
(vfs_rosplit): Rename to _vfs_get_class().
2003-10-11 06:25:29 +00:00
Pavel Roskin
f1288c7338
* file.c: Use struct vfs_class, not type vfs, which should be
...
internal to VFS code.
2003-10-11 06:05:51 +00:00
Pavel Roskin
8b3b8147d7
* cmd.c (edit_symlink_cmd): Fix possible off-by-one after
...
readlink().
* file.c (make_symlink): Likewise.
* main.c (copy_readlink): Likewise.
* screen.c (display_mini_info): Likewise.
(chdir_to_readlink): Likewise.
* util.c (resolve_symlinks): Likewise.
2003-08-29 22:45:04 +00:00
Pavel Roskin
df6365e737
* file.c (panel_operate_generate_prompt): Remove source
...
calculation, it doesn't belong here.
(panel_operate): Change arguments: drop ask_user and thedefault,
introduce force_single. force_single changes default to the
current file and ignores selection. Adjust all dependencies.
2003-08-18 04:35:28 +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
341ad1d804
Fix typos and "britainisms".
2003-06-02 18:13:42 +00:00
Andrew V. Samoilov
904e4022a4
* file.c (copy_file_file): Fix data corruption if mc_write()
...
does not write n_read bytes at once.
(move_file_file): Eliminate retry_src_lstat label.
2003-03-26 09:59:37 +00:00
Pavel Roskin
4cec4a2058
* file.c: Never access internals of ctx->rx directly.
...
* fileopctx.c (file_op_context_destroy): Use regfree() to free
ctx->rx.
Patch from Red Hat beta.
2002-12-26 19:04:10 +00:00
Pavel Roskin
f2c028ce46
s/can not/cannot/
2002-12-26 02:21:37 +00:00
Pavel Roskin
0d0ede9ec4
* file.c (is_wildcarded): Move ...
...
* filegui.c: ... here. Make static.
2002-12-08 04:23:14 +00:00
Pavel Roskin
b246f3c7ea
s/Could not/Cannot/
2002-12-08 01:12:18 +00:00
Pavel Roskin
c3f5696cca
* tree.c: Make struct WTree opaque. Remove "done" flag - it's
...
broken by design.
(tree_selected_name): New function, return name of the currently
selected entry. Use it where WTree is opaque.
* boxes.c (tree_callback): Don't check for the "done" flag - it
causes closing the dialog on any key after mouse selection.
2002-11-29 04:55:06 +00:00
Pavel Roskin
ba466b74d6
* file.c (panel_operate): Warning fix.
...
* cmd.c (compare_dirs_cmd): Likewise.
* man2hlp.c: Warning fixes. size_t can be unsigned.
2002-11-11 08:25:29 +00:00
Pavel Roskin
2538dbfdd3
* file.c (panel_get_file): Make static.
...
* filegui.h: Eliminate use of WANT_WIDGETS.
* setup.h: Likewise.
* menu.h: Declare struct WMenu.
* main.h: Don't include menu.h, use forward declaration.
2002-11-11 07:35:08 +00:00
Pavel Roskin
935a2b4d4e
Reformat. The formatting in those files was unbearable.
2002-10-24 20:25:07 +00:00
Andrew V. Samoilov
cde108f585
* file.c (copy_file_file): Reuse message.
...
(copy_dir_dir): Eliminate one more goto.
2002-10-23 08:22:53 +00:00
Pavel Roskin
a84b0fc9cd
Fix some of the most ugly abuses of mixed caps in English texts,
...
especially in button captions.
2002-10-21 22:26:39 +00:00
Pavel Roskin
71ee494335
* file.h: Rename know_not_what_am_i_doing to safe_delete.
...
* file.c (real_query_recursive): Don't ask to enter "yes" - it's
ugly and requires changing input method in some locales.
2002-10-21 21:03:22 +00:00
Pavel Roskin
7571ef816d
* file.c (real_query_recursive): Default to empty string, not to
...
"no" when asking to enter "yes". Add note for translators.
2002-10-21 06:01:04 +00:00
Pavel Roskin
d3f0a2f61b
Remove spaces around "Error" and "Warning" together with their translations.
...
Also remove spaces from "Quit" and "Search", but leave alone the
translations, that already have them without spaces.
2002-10-21 04:13:49 +00:00
Pavel Roskin
7fece18d5f
* file.c (panel_operate): Replace fancy internationalized
...
message boxes for unknown file operations with abort().
2002-09-27 21:39:30 +00:00
Pavel Roskin
222035b949
* file.c (copy_file_file): Rename DST_* names to DEST_*, since
...
DST_NONE is used in FreeBSD libc.
Reported by Pavel Shirshov <pavelsh@mail.ru>
2002-09-27 19:21:36 +00:00
Pavel Roskin
da7e82d253
Global removal of RCS Id: flags.
2002-09-26 23:13:45 +00:00
Pavel Roskin
e402f59842
* file.c (copy_file_file): Eliminate the complex scheme with
...
"resources". Set src_desc, dest_desc to -1 initially and use
their values to see if they need to be closed. Track status of
the destination file using a 3-state variable.
2002-09-26 16:39:17 +00:00
Pavel Roskin
7fcbcaf284
* file.c (copy_file_file): Fix event handling - check the result
...
of file_progress_show_bytes().
From Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
2002-09-26 16:07:25 +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
Pavel Roskin
74288460f5
* file.c (do_transform_source): Cast the argument to functions
...
for character classification to unsigned int.
* main.c (handle_args): Likewise.
* util.c (size_trunc_sep): Likewise.
(skip_numbers): Likewise.
2002-07-03 19:47:40 +00:00
Andrew V. Samoilov
5f2ae160c0
* file.c (copy_file_file): Rollback one hunk to eliminate infinitive loop.
2002-03-06 07:37:14 +00:00
Andrew V. Samoilov
8ce8833c37
* file.c (copy_file_file): Chmod destination only if
...
ctx->preserve is on. Eliminate gotos.
2002-03-04 13:52:39 +00:00
Andrew V. Samoilov
ce7bae4dd7
* file.c (recursive_erase): Use mc_closedir() if mc_lstat()
...
fails. Eliminate goto.
(erase_dir): Eliminate goto.
(erase_dir_iff_empty): Likewise.
2002-01-30 11:15:39 +00:00
Pavel Roskin
3a9692b680
* global.h: Provide fallbacks for getuid(), getgid(), geteuid()
...
and getegid().
* fs.h: Fully trust HAVE_DIRENT_H.
* complete.c: Don't include dirent.h directly, fs.h takes care
of it.
* file.c: Likewise.
* filegui.c: Likewise.
* main.c: Likewise.
* treestore.c: Likewise.
2002-01-21 20:47:05 +00:00
Pavel Roskin
73ed832576
* cmd.c: Remove OS/2 specific code.
...
* file.c: Likewise.
* main.c: Likewise.
2002-01-17 07:23:50 +00:00
Andrew V. Samoilov
7d88c34470
* file.c (copy_dir_dir): Check the destination is a directory
...
if it exists. Reported by Thomas <metaf4@pseudonym.org>.
2002-01-15 08:01:29 +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
5e3bb68e26
* cmd.c: Change all "long" variables to "off_t" whenever they
...
are used to store file sizes.
* file.c: Likewise.
* file.h: Likewise.
* fileopctx.h: Likewise.
* tree.c: Likewise.
* filegui.c: Likewise.
(show_bar): Take "double" arguments. Normalize arguments of
gauge_set_value() before converting them to "int".
2001-09-21 05:04:38 +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
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