summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/eval.c10
-rw-r--r--src/if_lua.c2
-rw-r--r--src/if_py_both.h4
-rw-r--r--src/proto/eval.pro2
-rw-r--r--src/version.c2
5 files changed, 12 insertions, 8 deletions
diff --git a/src/eval.c b/src/eval.c
index 5085b975b..f619b5adf 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -5998,7 +5998,7 @@ listitem_remove(l, item)
list_T *l;
listitem_T *item;
{
- list_remove(l, item, item);
+ vimlist_remove(l, item, item);
listitem_free(item);
}
@@ -6577,9 +6577,11 @@ list_copy(orig, deep, copyID)
/*
* Remove items "item" to "item2" from list "l".
* Does not free the listitem or the value!
+ * This used to be called list_remove, but that conflicts with a Sun header
+ * file.
*/
void
-list_remove(l, item, item2)
+vimlist_remove(l, item, item2)
list_T *l;
listitem_T *item;
listitem_T *item2;
@@ -15435,7 +15437,7 @@ f_remove(argvars, rettv)
if (argvars[2].v_type == VAR_UNKNOWN)
{
/* Remove one item, return its value. */
- list_remove(l, item, item);
+ vimlist_remove(l, item, item);
*rettv = item->li_tv;
vim_free(item);
}
@@ -15461,7 +15463,7 @@ f_remove(argvars, rettv)
EMSG(_(e_invrange));
else
{
- list_remove(l, item, item2);
+ vimlist_remove(l, item, item2);
if (rettv_list_alloc(rettv) == OK)
{
l = rettv->vval.v_list;
diff --git a/src/if_lua.c b/src/if_lua.c
index 35e910615..7efd2cba6 100644
--- a/src/if_lua.c
+++ b/src/if_lua.c
@@ -734,7 +734,7 @@ luaV_list_newindex (lua_State *L)
if (li == NULL) return 0;
if (lua_isnil(L, 3)) /* remove? */
{
- list_remove(l, li, li);
+ vimlist_remove(l, li, li);
clear_tv(&li->li_tv);
vim_free(li);
}
diff --git a/src/if_py_both.h b/src/if_py_both.h
index b26226977..bf5ea4cf3 100644
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -2494,7 +2494,7 @@ ListAssSlice(ListObject *self, Py_ssize_t first,
if (numreplaced < slicelen)
{
lis[slicelen + numreplaced] = lis[numreplaced]->li_prev;
- list_remove(l, lis[numreplaced], lis[numreplaced]);
+ vimlist_remove(l, lis[numreplaced], lis[numreplaced]);
numreplaced++;
}
else
@@ -2570,7 +2570,7 @@ ListAssIndex(ListObject *self, Py_ssize_t index, PyObject *obj)
if (obj == NULL)
{
li = list_find(l, (long) index);
- list_remove(l, li, li);
+ vimlist_remove(l, li, li);
clear_tv(&li->li_tv);
vim_free(li);
return 0;
diff --git a/src/proto/eval.pro b/src/proto/eval.pro
index 3fa265ef7..517d9e71a 100644
--- a/src/proto/eval.pro
+++ b/src/proto/eval.pro
@@ -59,7 +59,7 @@ int list_append_tv __ARGS((list_T *l, typval_T *tv));
int list_append_dict __ARGS((list_T *list, dict_T *dict));
int list_append_string __ARGS((list_T *l, char_u *str, int len));
int list_insert_tv __ARGS((list_T *l, typval_T *tv, listitem_T *item));
-void list_remove __ARGS((list_T *l, listitem_T *item, listitem_T *item2));
+void vimlist_remove __ARGS((list_T *l, listitem_T *item, listitem_T *item2));
void list_insert __ARGS((list_T *l, listitem_T *ni, listitem_T *item));
int garbage_collect __ARGS((void));
void set_ref_in_ht __ARGS((hashtab_T *ht, int copyID));
diff --git a/src/version.c b/src/version.c
index 4acbd9e90..d1da15b35 100644
--- a/src/version.c
+++ b/src/version.c
@@ -735,6 +735,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 278,
+/**/
277,
/**/
276,