mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
garray: make parameter of ga_concat_strings const
This commit is contained in:
parent
b737b27e6a
commit
767f0fae0b
@ -136,7 +136,7 @@ char_u *ga_concat_strings_sep(const garray_T *gap, const char *sep)
|
|||||||
/// @param gap
|
/// @param gap
|
||||||
///
|
///
|
||||||
/// @returns the concatenated strings
|
/// @returns the concatenated strings
|
||||||
char_u* ga_concat_strings(garray_T *gap)
|
char_u* ga_concat_strings(const garray_T *gap)
|
||||||
{
|
{
|
||||||
return ga_concat_strings_sep(gap, ",");
|
return ga_concat_strings_sep(gap, ",");
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@ void ga_init(garray_T *gap, int itemsize, int growsize);
|
|||||||
void ga_grow(garray_T *gap, int n);
|
void ga_grow(garray_T *gap, int n);
|
||||||
char_u *ga_concat_strings_sep(const garray_T *gap, const char *sep)
|
char_u *ga_concat_strings_sep(const garray_T *gap, const char *sep)
|
||||||
FUNC_ATTR_NONNULL_RET;
|
FUNC_ATTR_NONNULL_RET;
|
||||||
char_u *ga_concat_strings(garray_T *gap) FUNC_ATTR_NONNULL_RET;
|
char_u *ga_concat_strings(const garray_T *gap) FUNC_ATTR_NONNULL_RET;
|
||||||
void ga_remove_duplicate_strings(garray_T *gap);
|
void ga_remove_duplicate_strings(garray_T *gap);
|
||||||
void ga_concat(garray_T *gap, char_u *s);
|
void ga_concat(garray_T *gap, char_u *s);
|
||||||
void ga_append(garray_T *gap, char c);
|
void ga_append(garray_T *gap, char c);
|
||||||
|
Loading…
Reference in New Issue
Block a user