aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/path.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2015-10-17 15:51:31 +0300
committerZyX <kp-pav@yandex.ru>2015-10-23 14:54:10 +0300
commita1b0f4073deb7f50e1b7137174bcb9914c97078f (patch)
tree742f737ad6ccf9e5da6515641edc0214fd2a6134 /src/nvim/path.c
parenta06a8bad6080e605c25124446c7441cee8911234 (diff)
downloadrneovim-a1b0f4073deb7f50e1b7137174bcb9914c97078f.tar.gz
rneovim-a1b0f4073deb7f50e1b7137174bcb9914c97078f.tar.bz2
rneovim-a1b0f4073deb7f50e1b7137174bcb9914c97078f.zip
stdpaths: Do NOT create data directories
This is none of option.c business to create *possibly unneeded* **default** directories **before** user specified where he actually wants to place the files.
Diffstat (limited to 'src/nvim/path.c')
-rw-r--r--src/nvim/path.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/path.c b/src/nvim/path.c
index a0bba450cd..e30f6b08d9 100644
--- a/src/nvim/path.c
+++ b/src/nvim/path.c
@@ -364,7 +364,7 @@ static inline char *do_concat_fnames(char *fname1, const size_t len1,
/// if necessary
/// @return [allocated] Concatenation of fname1 and fname2.
char *concat_fnames(const char *fname1, const char *fname2, bool sep)
- FUNC_ATTR_NONNULL_ARG(1, 2) FUNC_ATTR_NONNULL_RET
+ FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NONNULL_RET
{
const size_t len1 = strlen(fname1);
const size_t len2 = strlen(fname2);
@@ -376,7 +376,8 @@ char *concat_fnames(const char *fname1, const char *fname2, bool sep)
/// Concatenate file names fname1 and fname2
///
/// Like concat_fnames(), but in place of allocating new memory it reallocates
-/// fname1. For this reason fname1 must be allocated with xmalloc.
+/// fname1. For this reason fname1 must be allocated with xmalloc, and can no
+/// longer be used after running concat_fnames_realloc.
///
/// @param fname1 is the first part of the path or filename
/// @param fname2 is the second half of the path or filename
@@ -384,7 +385,7 @@ char *concat_fnames(const char *fname1, const char *fname2, bool sep)
/// if necessary
/// @return [allocated] Concatenation of fname1 and fname2.
char *concat_fnames_realloc(char *fname1, const char *fname2, bool sep)
- FUNC_ATTR_NONNULL_ARG(1, 2) FUNC_ATTR_NONNULL_RET
+ FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NONNULL_RET
{
const size_t len1 = strlen(fname1);
const size_t len2 = strlen(fname2);