aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/garray.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-06-02 11:24:02 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-06-02 11:24:02 -0300
commitcab8cf970c09ea465d30e11eb356e2e5d37dc544 (patch)
tree5d274c892e4d53f5e976ae8f6f58aba030785e02 /src/nvim/garray.h
parent52a9a5b0b0c53a1481d901f39ed0d1e7e86c3853 (diff)
parent4aecb71b0e819aa84a430dacdab2146229c410a5 (diff)
downloadrneovim-cab8cf970c09ea465d30e11eb356e2e5d37dc544.tar.gz
rneovim-cab8cf970c09ea465d30e11eb356e2e5d37dc544.tar.bz2
rneovim-cab8cf970c09ea465d30e11eb356e2e5d37dc544.zip
Merge pull request #710 'Automatically generate declarations'
Diffstat (limited to 'src/nvim/garray.h')
-rw-r--r--src/nvim/garray.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/nvim/garray.h b/src/nvim/garray.h
index 2b54e56b2b..6e440039dd 100644
--- a/src/nvim/garray.h
+++ b/src/nvim/garray.h
@@ -1,8 +1,6 @@
#ifndef NVIM_GARRAY_H
#define NVIM_GARRAY_H
-#include "nvim/func_attr.h"
-
/// Structure used for growing arrays.
/// This is used to store information that only grows, is deleted all at
/// once, and needs to be accessed by index. See ga_clear() and ga_grow().
@@ -18,16 +16,7 @@ typedef struct growarray {
#define GA_EMPTY(ga_ptr) ((ga_ptr)->ga_len <= 0)
-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(const garray_T *gap) FUNC_ATTR_NONNULL_RET;
-void ga_remove_duplicate_strings(garray_T *gap);
-void ga_concat(garray_T *gap, const char_u *restrict s);
-void ga_append(garray_T *gap, char c);
-void append_ga_line(garray_T *gap);
-
+#ifdef INCLUDE_GENERATED_DECLARATIONS
+# include "garray.h.generated.h"
+#endif
#endif // NVIM_GARRAY_H