diff options
author | David Z. Chen <david.z.chen@outlook.com> | 2014-03-10 03:48:12 -0700 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-16 12:00:41 -0300 |
commit | baab23827194175e811cfaccd287e9438f1d1b6d (patch) | |
tree | 72d3d35fc2680149fdbcc32a9d068e6a7c821354 /src/garray.h | |
parent | 8a6118ccaced623b9e6d854e3a41fbd9d6fc68df (diff) | |
download | rneovim-baab23827194175e811cfaccd287e9438f1d1b6d.tar.gz rneovim-baab23827194175e811cfaccd287e9438f1d1b6d.tar.bz2 rneovim-baab23827194175e811cfaccd287e9438f1d1b6d.zip |
Issue #311 - Clean up blowfish.c/h, charset.c/h, diff.c/h, digraph.c/h, garray.c/h, hashtab.c/h, popupmnu.c/h, sha256.c/h, version.c/h. Update uncrustify to move logical operators to the beginning of the line when splitting. Also, clean up arabic.c/h and farsi.c/h
Diffstat (limited to 'src/garray.h')
-rw-r--r-- | src/garray.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/garray.h b/src/garray.h index 412a7f3ec3..c427842d93 100644 --- a/src/garray.h +++ b/src/garray.h @@ -1,20 +1,18 @@ #ifndef NEOVIM_GARRAY_H #define NEOVIM_GARRAY_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(). - */ +/// 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(). typedef struct growarray { - int ga_len; /* current number of items used */ - int ga_maxlen; /* maximum number of items possible */ - int ga_itemsize; /* sizeof(item) */ - int ga_growsize; /* number of items to grow each time */ - void *ga_data; /* pointer to the first item */ + int ga_len; // current number of items used + int ga_maxlen; // maximum number of items possible + int ga_itemsize; // sizeof(item) + int ga_growsize; // number of items to grow each time + void *ga_data; // pointer to the first item } garray_T; -#define GA_EMPTY {0, 0, 0, 0, NULL} +#define GA_EMPTY { 0, 0, 0, 0, NULL } void ga_clear(garray_T *gap); void ga_clear_strings(garray_T *gap); @@ -26,4 +24,4 @@ void ga_concat(garray_T *gap, char_u *s); void ga_append(garray_T *gap, int c); void append_ga_line(garray_T *gap); -#endif /* NEOVIM_GARRAY_H */ +#endif // NEOVIM_GARRAY_H |