mc/src
Andrew Borodin 536fb676d8 (vfs_path_free): add 2nd parameter...
...to free or not to free the string representation
of vfs_path_t object.

It allows to get rid of string duplication in following cases:

vfs_path_t *vpath;
char *path;
...
vpath = vfs_path_from_str (...);
path = g_strdup (vfs_path_as_str (vpath));
vfs_path_free (vpath);

Now we can write:

vfs_path_t *vpath;
char *path;
...
vpath = vfs_path_from_str (...);
path = vfs_path_free (vpath, FALSE);

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2021-03-14 19:52:39 +03:00
..
consaver Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
diffviewer (vfs_path_free): add 2nd parameter... 2021-03-14 19:52:39 +03:00
editor (vfs_path_free): add 2nd parameter... 2021-03-14 19:52:39 +03:00
filemanager (vfs_path_free): add 2nd parameter... 2021-03-14 19:52:39 +03:00
man2hlp man2hlp: limited support of \fR, \fB, \fI, and \fP troff commands. 2020-05-17 18:48:18 +03:00
subshell (init_subshell_child): use g_setenv() instead of putenv(). 2021-03-14 19:52:38 +03:00
vfs (vfs_path_free): add 2nd parameter... 2021-03-14 19:52:39 +03:00
viewer (vfs_path_free): add 2nd parameter... 2021-03-14 19:52:39 +03:00
.gitignore Fix .gitignore 2019-09-01 20:13:27 +03:00
args.c (vfs_path_free): add 2nd parameter... 2021-03-14 19:52:39 +03:00
args.h Ticket #3805: fix --help option to show correct syntax for editor, viewer and mcdiff 2017-04-15 09:49:29 +03:00
background.c Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
background.h Remove unneeded struct keyword for typedef'd structs 2016-03-04 09:23:38 +03:00
clipboard.c (vfs_path_free): add 2nd parameter... 2021-03-14 19:52:39 +03:00
clipboard.h Use events for operate with clipboard (copy/paste to external clipboard, save/load to file) 2011-03-21 23:55:52 +02:00
cons.handler.c Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
events_init.c Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
events_init.h Prepare to initialize application events. 2011-03-21 11:46:41 +02:00
execute.c (vfs_path_free): add 2nd parameter... 2021-03-14 19:52:39 +03:00
execute.h (toggle_panels): join with view_other_cmd and rename to toggle_subshell. 2019-09-01 19:41:12 +03:00
file_history.c (show_file_history): keep order of modified history items. 2021-03-14 19:48:59 +03:00
file_history.h Refactoring of show file history in the file manager. 2019-08-10 09:45:27 +03:00
help.c Refactoring of keymap load/save. 2021-03-14 19:48:59 +03:00
help.h Typo fixes. 2013-07-23 14:15:24 +04:00
history.h fixed doxygen documentation 2012-09-10 14:29:53 +03:00
keymap.c Refactoring of keymap load/save. 2021-03-14 19:48:59 +03:00
keymap.h Refactoring of keymap load/save. 2021-03-14 19:48:59 +03:00
learn.c Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
learn.h Code indentation in src directory 2010-11-24 10:27:47 +03:00
main.c (vfs_path_free): add 2nd parameter... 2021-03-14 19:52:39 +03:00
Makefile.am Refactoring of keymap load/save. 2021-03-14 19:48:59 +03:00
selcodepage.c Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
selcodepage.h Cleanup of main.[ch]. 2010-11-24 10:51:31 +03:00
setup.c Refactoring of keymap load/save. 2021-03-14 19:48:59 +03:00
setup.h Refactoring of keymap load/save. 2021-03-14 19:48:59 +03:00
textconf.c Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
textconf.h Added --configure-options for easy update & reconfigure existing mc. 2011-03-29 12:37:55 +03:00
usermenu.c (vfs_path_free): add 2nd parameter... 2021-03-14 19:52:39 +03:00
usermenu.h Ticket #3861: fix %f macro in mcedit user menu. 2017-10-28 18:46:08 +03:00
util.c Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
util.h (check_for_default): minor optimization and change return value. 2012-04-22 11:25:11 +03:00