updated for version 7.4.278
Problem: list_remove() conflicts with function defined in Sun header file.
Solution: Rename the function. (Richard Palo)
diff --git a/src/eval.c b/src/eval.c
index 5085b97..f619b5a 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -5998,7 +5998,7 @@
list_T *l;
listitem_T *item;
{
- list_remove(l, item, item);
+ vimlist_remove(l, item, item);
listitem_free(item);
}
@@ -6577,9 +6577,11 @@
/*
* 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 @@
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 @@
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;