comparison src/dict.c @ 15016:c338c91086b9 v8.1.0519

patch 8.1.0519: cannot save and restore the tag stack commit https://github.com/vim/vim/commit/f49cc60aa802862c595ff619dccc11271633a94b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 11 15:21:05 2018 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Sun, 11 Nov 2018 15:30:07 +0100
parents f761a55a8aed
children 7903dce131d4
comparison
equal deleted inserted replaced
15015:abcfa9dcc93f 15016:c338c91086b9
43 d->dv_scope = 0; 43 d->dv_scope = 0;
44 d->dv_refcount = 0; 44 d->dv_refcount = 0;
45 d->dv_copyID = 0; 45 d->dv_copyID = 0;
46 } 46 }
47 return d; 47 return d;
48 }
49
50 /*
51 * dict_alloc() with an ID for alloc_fail().
52 */
53 dict_T *
54 dict_alloc_id(alloc_id_T id UNUSED)
55 {
56 #ifdef FEAT_EVAL
57 if (alloc_fail_id == id && alloc_does_fail((long_u)sizeof(list_T)))
58 return NULL;
59 #endif
60 return (dict_alloc());
48 } 61 }
49 62
50 dict_T * 63 dict_T *
51 dict_alloc_lock(int lock) 64 dict_alloc_lock(int lock)
52 { 65 {