aboutsummaryrefslogtreecommitdiff
path: root/src/garray.h
diff options
context:
space:
mode:
authorNicolas Hillegeer <nicolas@hillegeer.com>2014-04-26 19:49:02 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-29 09:29:10 -0300
commit104000eff649886777563f36f03d260f5e8baa5c (patch)
treeb2b960771352d95b45b8ddaac2ccf4c84a6f9013 /src/garray.h
parentcf68eda287a5a89e2b48779087f6d8ce99ba05d9 (diff)
downloadrneovim-104000eff649886777563f36f03d260f5e8baa5c.tar.gz
rneovim-104000eff649886777563f36f03d260f5e8baa5c.tar.bz2
rneovim-104000eff649886777563f36f03d260f5e8baa5c.zip
garray: implement ga_concat_strings_sep
A generalized version of ga_concat_strings that can handle any separator. Reimplement ga_concat_strings on top of it.
Diffstat (limited to 'src/garray.h')
-rw-r--r--src/garray.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/garray.h b/src/garray.h
index eccade2ebb..4f07d5523b 100644
--- a/src/garray.h
+++ b/src/garray.h
@@ -20,6 +20,8 @@ void ga_clear(garray_T *gap);
void ga_clear_strings(garray_T *gap);
void ga_init(garray_T *gap, int itemsize, int growsize);
void ga_grow(garray_T *gap, int n);
+char_u *ga_concat_strings_sep(const garray_T *gap, const char *sep)
+ FUNC_ATTR_NONNULL_RET;
char_u *ga_concat_strings(garray_T *gap) FUNC_ATTR_NONNULL_RET;
void ga_remove_duplicate_strings(garray_T *gap);
void ga_concat(garray_T *gap, char_u *s);