mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
stdpaths: Document that stdpaths_*_subpath is not returning NULL
This commit is contained in:
parent
baf032834a
commit
1af15494c2
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user