forked from aniani/vim
patch 8.1.0519: cannot save and restore the tag stack
Problem: Cannot save and restore the tag stack.
Solution: Add gettagstack() and settagstack(). (Yegappan Lakshmanan,
closes #3604)
This commit is contained in:
13
src/list.c
13
src/list.c
@@ -85,6 +85,19 @@ list_alloc(void)
|
||||
return l;
|
||||
}
|
||||
|
||||
/*
|
||||
* list_alloc() with an ID for alloc_fail().
|
||||
*/
|
||||
list_T *
|
||||
list_alloc_id(alloc_id_T id UNUSED)
|
||||
{
|
||||
#ifdef FEAT_EVAL
|
||||
if (alloc_fail_id == id && alloc_does_fail((long_u)sizeof(list_T)))
|
||||
return NULL;
|
||||
#endif
|
||||
return (list_alloc());
|
||||
}
|
||||
|
||||
/*
|
||||
* Allocate an empty list for a return value, with reference count set.
|
||||
* Returns OK or FAIL.
|
||||
|
||||
Reference in New Issue
Block a user