Mercurial > vim
comparison src/list.c @ 15209:3a99b2e6d136 v8.1.0614
patch 8.1.0614: placing signs can be complicated
commit https://github.com/vim/vim/commit/162b71479bd4dcdb3a2ef9198a1444f6f99e6843
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 21 15:17:36 2018 +0100
patch 8.1.0614: placing signs can be complicated
Problem: Placing signs can be complicated.
Solution: Add functions for defining and placing signs. Introduce a group
name to avoid different plugins using the same signs. (Yegappan
Lakshmanan, closes #3652)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 21 Dec 2018 15:30:07 +0100 |
parents | c338c91086b9 |
children | de63593896b3 |
comparison
equal
deleted
inserted
replaced
15208:acf68008ca43 | 15209:3a99b2e6d136 |
---|---|
112 | 112 |
113 rettv->v_lock = 0; | 113 rettv->v_lock = 0; |
114 rettv_list_set(rettv, l); | 114 rettv_list_set(rettv, l); |
115 return OK; | 115 return OK; |
116 } | 116 } |
117 | |
118 /* | |
119 * Same as rettv_list_alloc() but uses an allocation id for testing. | |
120 */ | |
121 int | |
122 rettv_list_alloc_id(typval_T *rettv, alloc_id_T id UNUSED) | |
123 { | |
124 #ifdef FEAT_EVAL | |
125 if (alloc_fail_id == id && alloc_does_fail((long_u)sizeof(list_T))) | |
126 return FAIL; | |
127 #endif | |
128 return rettv_list_alloc(rettv); | |
129 } | |
130 | |
117 | 131 |
118 /* | 132 /* |
119 * Set a list as the return value | 133 * Set a list as the return value |
120 */ | 134 */ |
121 void | 135 void |