stdpaths: Document that stdpaths_*_subpath is not returning NULL

This commit is contained in:
ZyX 2015-10-29 00:31:05 +03:00
parent baf032834a
commit 1af15494c2

View File

@ -82,7 +82,7 @@ static char *get_xdg_home(const XDGVarType idx)
/// ///
/// @return [allocated] `$XDG_CONFIG_HOME/nvim/{fname}` /// @return [allocated] `$XDG_CONFIG_HOME/nvim/{fname}`
char *stdpaths_user_conf_subpath(const char *fname) char *stdpaths_user_conf_subpath(const char *fname)
FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NONNULL_RET
{ {
return concat_fnames_realloc(get_xdg_home(kXDGConfigHome), fname, true); return concat_fnames_realloc(get_xdg_home(kXDGConfigHome), fname, true);
} }
@ -95,7 +95,7 @@ char *stdpaths_user_conf_subpath(const char *fname)
/// @return [allocated] `$XDG_DATA_HOME/nvim/{fname}` /// @return [allocated] `$XDG_DATA_HOME/nvim/{fname}`
char *stdpaths_user_data_subpath(const char *fname, char *stdpaths_user_data_subpath(const char *fname,
const size_t trailing_pathseps) const size_t trailing_pathseps)
FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NONNULL_RET
{ {
char *ret = concat_fnames_realloc(get_xdg_home(kXDGDataHome), fname, true); char *ret = concat_fnames_realloc(get_xdg_home(kXDGDataHome), fname, true);
if (trailing_pathseps) { if (trailing_pathseps) {