Commit Graph

5812 Commits

Author SHA1 Message Date
Pavel Roskin 2fc70a9dd8 * win.c (check_movement_keys): Remove "additional" argument,
it's always 1.
2003-10-23 22:53:32 +00:00
Pavel Roskin 0e1a39cfd0 * view.c: (put_editkey): Rename to ...
(view_handle_editkey): ... this.  Move here some logic from ...
(view_handle_key): ... here.
2003-10-23 22:20:15 +00:00
Pavel Roskin fec2f41c48 * view.c: Eliminate struct block_ptr_t and enum ViewSide.
Rename ascii mode to text mode.
2003-10-23 21:23:33 +00:00
Pavel Roskin a5c11d267f * view.c (WView): Remove unused fields localcopy and file_dirty.
Make boolean fields 1 bit wide.
2003-10-23 20:31:28 +00:00
Pavel Roskin f0b4e66d1a view.c (toggle_hexedit_mode): New function, split from ...
(toggle_wrap_mode): ... this.
(view_labels): Fix overuse of the :? operator.  Don't allow
editing files in quick view - it's easy to lose changes.
2003-10-23 19:53:22 +00:00
Pavel Roskin 1bde2dcbda * main.c (process_args): Use cast to avoid warning. 2003-10-23 19:05:52 +00:00
Pavel Roskin 44eef72b3e * view.c (view_callback): Don't close the current dialog when
the viewer is framed.
2003-10-23 18:26:24 +00:00
Pavel Roskin 5a827286d1 Typo fixes. 2003-10-23 16:33:23 +00:00
Pavel Roskin 7e639b7c95 Typo fix, from Andrew V. Samoilov 2003-10-21 13:32:33 +00:00
Pavel Roskin 274a5a1c41 * direntry.c (vfs_s_find_entry_tree): Canonicalize path. 2003-10-17 03:25:43 +00:00
Pavel Roskin e09739368e * direntry.c (vfs_s_resolve_symlink): Don't use buffers of fixed
size.  This fixes a security hole.  Always start from the root.
Remove broken code for making symlinks relative.
(vfs_s_find_entry_tree): Protect against long path, since this
function uses a buffer of fixed size.
(vfs_s_fullpath): Implement support for archives (real trees).
2003-10-16 23:58:43 +00:00
Pavel Roskin 3b2e731d3d * vfs.c (mc_open): Fix rare memory leak on failure. 2003-10-16 20:46:08 +00:00
Pavel Roskin f426c570a6 * syntax.c (compare_word_to_right): More checks for braces and
brackets.
2003-10-16 20:31:06 +00:00
Pavel Roskin 7f8dfa977d * syntax.c (compare_word_to_right): Fix recent breakage - rules
ending with wildcard (e.g. "$+") won't match.
2003-10-16 20:16:38 +00:00
Pavel Roskin 6bb01bfe85 * main.c (update_one_panel_widget): Use VFS_SETCTL_FLUSH for the
current directory.  This fixes Ctrl-R on fish.
* vfsdummy.h: Remove unused functions.
2003-10-16 18:57:15 +00:00
Pavel Roskin 7c4fc715da * direntry.c (vfs_s_setctl): Implement VFS_SETCTL_FLUSH.
* ftpfs.c: Remove ftpfs_flushdir.  Use MEDATA->flush.
* fish.c: Use MEDATA->flush.
2003-10-16 18:51:41 +00:00
Pavel Roskin 0636e2ed73 * main.c (process_args): Use VFS_SETCTL_LOGFILE for ftpfs. 2003-10-16 17:13:35 +00:00
Pavel Roskin e9ffcceae5 * direntry.c (vfs_s_setctl): Add support to VFS_SETCTL_LOGFILE.
* ftpfs.c (ftpfs_set_debug): Remove.
2003-10-16 17:08:38 +00:00
Pavel Roskin 0b99804da2 * names.c: Merge ...
* utilvfs.c: ... here.
* names.h: Merge ...
* utilvfs.h: ... here.
* Makefile.am: Remove references to names.c and names.h.
2003-10-16 16:50:09 +00:00
Pavel Roskin 63740624ea * xdirentry.h: Rename vfs_s_data to vfs_s_subclass.
* cpio.c: Initialize only non-zero fields in vfs_s_subclass.
* fish.c: Likewise.
* ftpfs.c: Likewise.
* tar.c: Likewise.
2003-10-16 16:40:11 +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 fc7267906f * xdirentry.h: Move system includes to the files that need them. 2003-10-16 08:47:33 +00:00
Pavel Roskin 1504215498 More comment fixes. 2003-10-16 08:00:05 +00:00
Pavel Roskin a8a471a282 Comment changes. 2003-10-16 06:50:05 +00:00
Pavel Roskin dcd2b9e8fc * xdirentry.h: Fix typos in field names. 2003-10-16 06:05:39 +00:00
Pavel Roskin a6754ce841 * xdirentry.h: Cleanup unused or write-only fields. Adjust all
dependencies.
2003-10-16 05:47:23 +00:00
Pavel Roskin b7efdfa380 * xdirentry.h: Remove magic numbers. Move some constants ...
* ftpfs.c: ... here.
2003-10-16 05:06:24 +00:00
Pavel Roskin 6f5feb27cd Add copyright.
Output tabs, not spaces.
2003-10-15 16:56:26 +00:00
Pavel Roskin dffb87e481 Discard libraries with absolute path.
Sort the output and group by object files.
2003-10-15 16:51:21 +00:00
Pavel Roskin 26ce05dfa3 * samba/lib/doscalls.c: Remove. Remove all references to it. 2003-10-15 07:32:45 +00:00
Pavel Roskin bf5a5c4e04 * glibcompat.h: Define g_try_malloc as malloc for glib 1.2.x. 2003-10-15 07:05:24 +00:00
Pavel Roskin 5cb7bf73fd * view.c (load_view_file): Use g_try_malloc() because the
failure to allcate memory is acceptable here.
Reported by Pavel S. Shirshov <pavelsh@mail.ru>
2003-10-15 04:10:36 +00:00
Pavel Roskin 07d3a2cdaa Exclude *.o files with absolute path. 2003-10-14 23:10:25 +00:00
Pavel Roskin 49ca3dc449 New file - find unreferenced global symbols in cross-reference linker maps. 2003-10-14 23:04:01 +00:00
Pavel Roskin 39d5093acb * tree.c: Remove dead code.
* treestore.c (tree_store_add_entry): Make static.
(tree_store_start_check): Likewise.
2003-10-14 22:48:44 +00:00
Pavel Roskin 8cde1fd052 * configure.in: Don't check for seekdir() and telldir(). 2003-10-14 22:25:45 +00:00
Pavel Roskin 426c1836d5 * vfs.h: Remove all references to seekdir and telldir. Adjust
all dependencies.
2003-10-14 22:24:26 +00:00
Pavel Roskin 4b5acf720e Fix name of Bjrn Eriksson. 2003-10-14 22:02:38 +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 e90a7540a2 * edit.h: Make static all functions and variables that don't
need to be global.  Remove unused functions.  Adjust all
dependencies.
2003-10-14 21:48:40 +00:00
Pavel Roskin 600891d8d5 * vfs.c (_vfs_add_noncurrent_stamps): Fix incorrect casts. 2003-10-13 06:56:31 +00:00
Pavel Roskin 0c75cd31a5 * screen.c (do_enter_on_file_entry): Remove annoying message "no
action taken".  Simplify logic.  Confirmation affects VFS too.
2003-10-13 00:50:11 +00:00
Pavel Roskin 72c64a60e2 * extfs.c: Switch to self-registration.
* mcfs.c: Likewise.
* sfs.c: Likewise.
* smbfs.c: Likewise.
* undelfs.c: Likewise.
* vfs.s (_vfs_add_noncurrent_stamps): Temporary disable code
that uses vfs_extfs_ops.
(vfs_file_is_smb): Remove.
2003-10-12 22:25:53 +00:00
Pavel Roskin 9a5c3dda9e Restore lost ifdef. 2003-10-12 20:01:48 +00:00
Pavel Roskin 2e524d3cad * local.c: Switch to self-registration.
* vfs.c: Cache localfs class for the use in vfs_get_class().
2003-10-12 19:57:27 +00:00
Pavel Roskin 6cf97f4069 * xdirentry.h: Remove all typedefs, there is no need to hide the
fact that structures are structures.  Fix all dependencies.
2003-10-12 01:00:44 +00:00
Pavel Roskin ce356e2ce0 Remove useless comment. 2003-10-12 00:26:43 +00:00
Pavel Roskin 00b57fd4bf * vfs.h: Remove typedef vfs, it's too ambiguous. Massive
changes to use struct vfs_class instead.
2003-10-12 00:24:00 +00:00
Pavel Roskin 4b1ec7399b * vfs.c (vfs_setup_wd): Initialize current_vfs here, not
globally.
(vfs_type_from_op): Rename to vfs_prefix_to_class(), avoid using
vfs_local_fs.
(vfs_strip_suffix_from_filename): Don't use vfs_local_fs.
2003-10-11 22:17:52 +00:00
Pavel Roskin 4de9d4d10e * vfs.h (ftpfs_hint_reread): Remove, it's unused. 2003-10-11 20:58:22 +00:00