Commit Graph

14451 Commits

Author SHA1 Message Date
Andrew Borodin
58d601c54b (sfs_open): rename variable
...to fix the warning:

sfs.c:281:10: warning: declaration of 'sfs_info' shadows a global declaration [-Wshadow]

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-17 08:17:17 +03:00
Yury V. Zaytsev
cd16697a3a Update doc/NEWS file
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2019-06-16 20:36:07 +02:00
Yury V. Zaytsev
8f9159122f Update hints translations from Transifex
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2019-06-16 20:29:09 +02:00
Yury V. Zaytsev
29d734a443 Update translations from Transifex
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2019-06-16 20:11:16 +02:00
Andrew Borodin
846d92b9b7 Merge branch '3955_cleanup'
* 3955_cleanup:
  Update po/*.po files.
  src/vfs/extfs/helpers/Makefile.am: clarify condition.
  VFS: move src/vfs/extfs/helpers/sfs.ini to src/vfs/sfs.
  src/vfs/sfs/sfs.c: refactor flags and options.
  (sfs_init): refactor loop.
  (sfs_vfmake): use gboolean instead of int for boolean variable was_percent.
  src/vfs/sfs/sfs.c: fix coding style.
  src/vfs/local/local.c: fix coding style.
  VFS: trivial optimization
  VFS: move flush member from vfs_s_subclass to vfs_class.
  VFS: move logfile member from vfs_s_subclass to vfs_class.
  VFS: change vfs_class::nothingisopen members
  vfs_class::nothingisopen: return gboolean instead of int.
  Rename VFS module initialization functions.
  lib/vfs/gc.c: yet another fixups
  VFS: invalidate file descriptors after close.
  Always use vfs_s_subclass as base class for VFS modules.
  (vfs_path_from_str_uri_parser): get rid of extra type cast.
  Ticket #3955: code cleanup before 4.8.23 release.
2019-06-15 17:50:13 +03:00
Andrew Borodin
2da65cb933 Update po/*.po files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 17:49:21 +03:00
Andrew Borodin
cc9b87e9cd src/vfs/extfs/helpers/Makefile.am: clarify condition.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 17:43:00 +03:00
Andrew Borodin
7cf275db73 VFS: move src/vfs/extfs/helpers/sfs.ini to src/vfs/sfs.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 17:43:00 +03:00
Andrew Borodin
d4819e1fb6 src/vfs/sfs/sfs.c: refactor flags and options.
Use enum for SFS flags. Use array of structures for SFS info.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 17:43:00 +03:00
Andrew Borodin
f2203868c1 (sfs_init): refactor loop.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 17:43:00 +03:00
Andrew Borodin
db342d69ac (sfs_vfmake): use gboolean instead of int for boolean variable was_percent.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 17:43:00 +03:00
Andrew Borodin
286e10679e src/vfs/sfs/sfs.c: fix coding style.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 17:43:00 +03:00
Andrew Borodin
c1b604fa16 src/vfs/local/local.c: fix coding style.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 17:43:00 +03:00
Andrew Borodin
651c3539b6 VFS: trivial optimization
* (vfs_s_opendir): test if path is invalid or not ASAP.
  * (vfs_s_readlink): likewise.
  * (vfs_s_open): likewise.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 17:43:00 +03:00
Andrew Borodin
9df841478b VFS: move flush member from vfs_s_subclass to vfs_class.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 17:43:00 +03:00
Andrew Borodin
45bd20ab0b VFS: move logfile member from vfs_s_subclass to vfs_class.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 17:43:00 +03:00
Andrew Borodin
94c0b79f37 VFS: change vfs_class::nothingisopen members
Do not free VFS before nested one.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 17:43:00 +03:00
Andrew Borodin
5b0f177e62 vfs_class::nothingisopen: return gboolean instead of int.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 17:43:00 +03:00
Andrew Borodin
01a1a01d4e Rename VFS module initialization functions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 17:43:00 +03:00
Andrew Borodin
3d6d6bd9a6 lib/vfs/gc.c: yet another fixups
* (vfs_expire): refactor.
  * Fix typos.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 17:43:00 +03:00
Andrew Borodin
7548679271 VFS: invalidate file descriptors after close.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 17:43:00 +03:00
Andrew Borodin
7d80e8a175 Always use vfs_s_subclass as base class for VFS modules.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 17:43:00 +03:00
Andrew Borodin
210ccc2f65 (vfs_path_from_str_uri_parser): get rid of extra type cast.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 17:43:00 +03:00
Andrew Borodin
70eba8c2d9 Ticket #3955: code cleanup before 4.8.23 release.
(update_one_panel_widget): clarify call of mc_setctl().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 17:43:00 +03:00
Andrew Borodin
0cf2ded646 Merge branch '3971_sighandler_t'
* 3971_sighandler_t:
  Ticket #3971: clarify sighandler_t usage in non-GNU OSes.
2019-06-15 09:40:45 +03:00
Andrew Borodin
4f06ba9346 Ticket #3971: clarify sighandler_t usage in non-GNU OSes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-15 09:38:53 +03:00
cheese
4135eb6460 Ticket #3991: update RPM spec syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-10 21:18:21 +03:00
Andrew Borodin
934a2d9314 Merge branch '212_menu_keybind'
* 212_menu_keybind:
  Menubar: support Home and End actions for Menubar.
  Menu: implement drop/execute menu by hotkey.
  Ticket #212: implement keybinding for menu.
2019-06-09 12:07:01 +03:00
Andrew Borodin
ff7d1728e2 Menubar: support Home and End actions for Menubar.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-09 12:06:10 +03:00
Ilia Maslakov
4e5488d5b2 Menu: implement drop/execute menu by hotkey.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-09 12:06:10 +03:00
Ilia Maslakov
f5f78ea658 Ticket #212: implement keybinding for menu.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-06-09 12:06:10 +03:00
Andrew Borodin
71c0f7640d Merge branch '3990_hardlink_error_garbage'
* 3990_hardlink_error_garbage:
  Ticket #3990: (real_do_file_error): fix number of buttons in the dialog window.
2019-06-02 12:33:32 +03:00
Andrew Borodin
936ba9618d Ticket #3990: (real_do_file_error): fix number of buttons in the dialog window.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-05-29 09:28:42 +03:00
Lars Wendler
ee08fa9f56 Ticket #3988: mcedit: syntax: add many missing ebuild syntax variables and commands.
- Group commands coming from eclasses
- Add common Makefile variables

Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-05-18 17:26:20 +03:00
Marco Ciampa
8548682198 Updated Italian translation 2019-05-14 08:45:45 +02:00
Andrew Borodin
5cde979390 Merge branch '3452_mcview_search_opposite'
* 3452_mcview_search_opposite:
  Ticket #3452: mcviewer: implement temporary change of search direction.
2019-05-09 15:47:40 +03:00
Andrew Borodin
7ddd4e9bb4 Ticket #3452: mcviewer: implement temporary change of search direction.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-04-27 20:47:51 +03:00
Andrew Borodin
e1d11906b3 Merge branch '3955_cleanup'
* 3955_cleanup: (43 commits)
  Update po/*.po files.
  (mcview_execute_cmd): regroup actions.
  lib/tty/key.c: fix coding style.
  (setup_mc): clarify call of add_select_channel().
  lib/tty/key.c: (SelectList): rename to select_t and refactor using GSList.
  src/editor/edit.c: cleanup unused include.
  (ftpfs_get_proxy_host_and_port): ret rid of host name duplcation.
  (ftpfs_open_socket): fix memory leak in case of proxy usage
  src/vfs/ftpfs/ftpfs.c: fix coding style.
  src/vfs/ftpfs/ftpfs.c: use gboolean instead of int where reasonable.
  (tar_read_header): refactor loop. Get rid of goto.
  tar.c: move header decoding to separate function.
  tar.c: lots of renaming to be close with the GNU tar source code.
  extfs: change some function arguments.
  extfs: refactoring: use standard VFS structures.
  extfs: refactoring of open and read archive.
  (extfs_find_entry_int): minor optimization.
  VFS: make vfs_file_handler related macros more readable.
  VFS: derive VFS-specific file handler class from vfs_file_handler_t.
  VFS: make vfs_super related macros more readable.
  ...
2019-04-27 20:40:41 +03:00
Andrew Borodin
f12a2ee4d5 Update po/*.po files. 2019-04-27 19:56:59 +03:00
Andrew Borodin
2c44ec24c9 (mcview_execute_cmd): regroup actions. 2019-04-27 19:31:20 +03:00
Andrew Borodin
8724c80b7a lib/tty/key.c: fix coding style.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-04-27 19:31:20 +03:00
Andrew Borodin
94eff3e2fd (setup_mc): clarify call of add_select_channel().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-04-27 19:29:25 +03:00
Andrew Borodin
c6f269a2c3 lib/tty/key.c: (SelectList): rename to select_t and refactor using GSList.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-04-27 19:29:25 +03:00
Andrew Borodin
870c1db722 src/editor/edit.c: cleanup unused include.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-04-27 19:29:25 +03:00
Andrew Borodin
987b4e3234 (ftpfs_get_proxy_host_and_port): ret rid of host name duplcation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-04-27 19:29:25 +03:00
Andrew Borodin
a16db591e3 (ftpfs_open_socket): fix memory leak in case of proxy usage
...and remove pointless check.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-04-27 19:29:25 +03:00
Andrew Borodin
f19a10c657 src/vfs/ftpfs/ftpfs.c: fix coding style.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-04-27 19:29:25 +03:00
Andrew Borodin
6bbb2d9ded src/vfs/ftpfs/ftpfs.c: use gboolean instead of int where reasonable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-04-27 19:29:25 +03:00
Andrew Borodin
e6fc6c81fa (tar_read_header): refactor loop. Get rid of goto.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-04-27 19:29:25 +03:00
Andrew Borodin
745c3536fe tar.c: move header decoding to separate function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-04-27 19:29:25 +03:00