aboutsummaryrefslogtreecommitdiff
path: root/src/fold.c
diff options
context:
space:
mode:
authorJohn Schmidt <john.schmidt.h@gmail.com>2014-03-31 17:19:54 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-31 14:42:11 -0300
commit5d30654512f1e40479e32f2c02a59fa84bb9118f (patch)
tree0fa1ebaeff8a77e39957ae9b285e1dd4e671e23b /src/fold.c
parente02790cad4b1ede5b32a1d77cabe40dd088ba4c0 (diff)
downloadrneovim-5d30654512f1e40479e32f2c02a59fa84bb9118f.tar.gz
rneovim-5d30654512f1e40479e32f2c02a59fa84bb9118f.tar.bz2
rneovim-5d30654512f1e40479e32f2c02a59fa84bb9118f.zip
Rename ga_init2() to ga_init()
Diffstat (limited to 'src/fold.c')
-rw-r--r--src/fold.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fold.c b/src/fold.c
index 89efa47176..c789871804 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -607,7 +607,7 @@ void foldCreate(linenr_T start, linenr_T end)
i = (int)(fp - (fold_T *)gap->ga_data);
if (ga_grow(gap, 1) == OK) {
fp = (fold_T *)gap->ga_data + i;
- ga_init2(&fold_ga, (int)sizeof(fold_T), 10);
+ ga_init(&fold_ga, (int)sizeof(fold_T), 10);
/* Count number of folds that will be contained in the new fold. */
for (cont = 0; i + cont < gap->ga_len; ++cont)
@@ -931,7 +931,7 @@ foldMoveTo (
*/
void foldInitWin(win_T *new_win)
{
- ga_init2(&new_win->w_folds, (int)sizeof(fold_T), 10);
+ ga_init(&new_win->w_folds, (int)sizeof(fold_T), 10);
}
/* find_wl_entry() {{{2 */
@@ -1009,7 +1009,7 @@ void cloneFoldGrowArray(garray_T *from, garray_T *to)
fold_T *from_p;
fold_T *to_p;
- ga_init2(to, from->ga_itemsize, from->ga_growsize);
+ ga_init(to, from->ga_itemsize, from->ga_growsize);
if (from->ga_len == 0 || ga_grow(to, from->ga_len) == FAIL)
return;
@@ -2518,7 +2518,7 @@ static int foldInsert(garray_T *gap, int i)
if (i < gap->ga_len)
memmove(fp + 1, fp, sizeof(fold_T) * (gap->ga_len - i));
++gap->ga_len;
- ga_init2(&fp->fd_nested, (int)sizeof(fold_T), 10);
+ ga_init(&fp->fd_nested, (int)sizeof(fold_T), 10);
return OK;
}