1
0
forked from aniani/vim

patch 8.2.4716: memory allocation failure not tested when defining a function

Problem:    Memory allocation failure not tested when defining a function.
Solution:   Add a test. (Yegappan Lakshmanan, closes #10127)
This commit is contained in:
Yegappan Lakshmanan
2022-04-09 11:09:07 +01:00
committed by Bram Moolenaar
parent 5e1792270a
commit 7c7e19cf50
7 changed files with 65 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ int ga_copy_strings(garray_T *from, garray_T *to);
void ga_init(garray_T *gap);
void ga_init2(garray_T *gap, size_t itemsize, int growsize);
int ga_grow(garray_T *gap, int n);
int ga_grow_id(garray_T *gap, int n, alloc_id_T id UNUSED);
int ga_grow_inner(garray_T *gap, int n);
char_u *ga_concat_strings(garray_T *gap, char *sep);
int ga_copy_string(garray_T *gap, char_u *p);