diff options
author | Famiu Haque <famiuhaque@protonmail.com> | 2022-05-12 10:57:43 +0200 |
---|---|---|
committer | Famiu Haque <famiuhaque@protonmail.com> | 2022-05-14 10:25:52 +0600 |
commit | 566f8f80d6cb7ef2df8366e5f092b0841ee757ce (patch) | |
tree | f5f34de29ef1cde99309ad7faf988aca63844baa /src/nvim/strings.h | |
parent | 8fba428bc6f36ae038a9286517e15b33257a1359 (diff) | |
download | rneovim-566f8f80d6cb7ef2df8366e5f092b0841ee757ce.tar.gz rneovim-566f8f80d6cb7ef2df8366e5f092b0841ee757ce.tar.bz2 rneovim-566f8f80d6cb7ef2df8366e5f092b0841ee757ce.zip |
refactor(api/nvim_cmd): use `kvec_t` for constructing cmdline string
Co-authored-by: Björn Linse <bjorn.linse@gmail.com>
Diffstat (limited to 'src/nvim/strings.h')
-rw-r--r-- | src/nvim/strings.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/strings.h b/src/nvim/strings.h index 893b0ea269..0503cecc8a 100644 --- a/src/nvim/strings.h +++ b/src/nvim/strings.h @@ -7,6 +7,7 @@ #include "nvim/eval/typval.h" #include "nvim/types.h" +#include "nvim/lib/kvec.h" /// Append string to string and return pointer to the next byte /// @@ -25,6 +26,8 @@ static inline char *strappend(char *const dst, const char *const src) return (char *)memmove(dst, src, src_len) + src_len; } +typedef kvec_t(char) StringBuilder; + #ifdef INCLUDE_GENERATED_DECLARATIONS # include "strings.h.generated.h" #endif |