mc/tests/lib
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
..
mcconfig Define macros for bashrc, ashrc, and inputrc files. 2021-03-14 19:52:38 +03:00
search Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
strutil Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
vfs (vfs_path_free): add 2nd parameter... 2021-03-14 19:52:39 +03:00
widget Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
library_independ.c Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
Makefile.am (mc_pstream_get_string): new API. 2021-03-14 19:17:08 +03:00
mc_build_filename.c Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
mc_realpath.c Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
name_quote.c Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
serialize.c Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
utilunix__mc_pstream_get_string.c (mc_pstream_get_string): new API. 2021-03-14 19:17:08 +03:00
utilunix__my_system-common.c Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
utilunix__my_system-fork_child_shell.c Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
utilunix__my_system-fork_child.c Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
utilunix__my_system-fork_fail.c Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00
x_basename.c Ticket #4179: code clean up before 4.8.27 release. 2021-03-14 19:30:42 +03:00