Lines Matching refs:alloc_len
77 int alloc_len; member
149 lst->line->alloc_len = alc; in linelist_load()
170 lst->line->alloc_len = alc; in linelist_load()
356 char *t = xzalloc(c_r->line->alloc_len); in i_insert()
361 if (c_r->line->alloc_len < c_r->line->str_len+il->str_len+5) { in i_insert()
363 c_r->line->alloc_len*2+il->alloc_len*2); in i_insert()
365 c_r->line->alloc_len = c_r->line->alloc_len*2+2*il->alloc_len; in i_insert()
367 c_r->line->alloc_len-c_r->line->str_len); in i_insert()
384 int l_a = c_r->line->alloc_len; in i_split()
387 l->alloc_len = l_a; in i_split()
494 il->alloc_len = 80; in vi_main()
576 memset(il->str_data, 0, il->alloc_len); in vi_main()
590 memset(il->str_data, 0, il->alloc_len); in vi_main()
594 if (il->str_len == il->alloc_len) { in vi_main()
595 il->str_data = realloc(il->str_data, il->alloc_len*2); in vi_main()
596 il->alloc_len *= 2; in vi_main()
609 memset(il->str_data, 0, il->alloc_len); in vi_main()
627 memset(il->str_data, 0, il->alloc_len); in vi_main()
632 if (il->str_len+utf8_dec_p+1 >= il->alloc_len) { in vi_main()
633 il->str_data = realloc(il->str_data, il->alloc_len*2); in vi_main()
634 il->alloc_len *= 2; in vi_main()