summaryrefslogtreecommitdiff
path: root/editors/vim-share/patches
diff options
context:
space:
mode:
authorrichard <richard>2014-05-03 07:30:19 +0000
committerrichard <richard>2014-05-03 07:30:19 +0000
commitac5561fdbc4d44b97764d869a68e993f6f8f610d (patch)
treeb780f95b4dce78604347862afacebaeb6fabbcf3 /editors/vim-share/patches
parentf4b82667b203cdcbd90f3bbcf6c22953c07aa928 (diff)
downloadpkgsrc-ac5561fdbc4d44b97764d869a68e993f6f8f610d.tar.gz
'list_remove', being defined as well on SunOS under <sys/list.h>, causes
a 'conflicting types' error when building with perl, python and/or ruby. Affects the following files: eval.c, if_lua.c and if_py_both.c
Diffstat (limited to 'editors/vim-share/patches')
-rw-r--r--editors/vim-share/patches/patch-eval.c40
-rw-r--r--editors/vim-share/patches/patch-if__lua.c13
-rw-r--r--editors/vim-share/patches/patch-if__py__both.h13
-rw-r--r--editors/vim-share/patches/patch-proto_eval.pro17
4 files changed, 83 insertions, 0 deletions
diff --git a/editors/vim-share/patches/patch-eval.c b/editors/vim-share/patches/patch-eval.c
new file mode 100644
index 00000000000..43ca9317b58
--- /dev/null
+++ b/editors/vim-share/patches/patch-eval.c
@@ -0,0 +1,40 @@
+$NetBSD: patch-eval.c,v 1.1 2014/05/03 07:30:19 richard Exp $
+
+--- src/eval.c.orig 2014-01-11 21:59:11.000000000 +0000
++++ src/eval.c
+@@ -5981,7 +5981,7 @@ listitem_remove(l, item)
+ list_T *l;
+ listitem_T *item;
+ {
+- list_remove(l, item, item);
++ vimlist_remove(l, item, item);
+ listitem_free(item);
+ }
+
+@@ -6553,7 +6553,7 @@ list_copy(orig, deep, copyID)
+ * Does not free the listitem or the value!
+ */
+ void
+-list_remove(l, item, item2)
++vimlist_remove(l, item, item2)
+ list_T *l;
+ listitem_T *item;
+ listitem_T *item2;
+@@ -15344,7 +15344,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);
+ }
+@@ -15370,7 +15370,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/editors/vim-share/patches/patch-if__lua.c b/editors/vim-share/patches/patch-if__lua.c
new file mode 100644
index 00000000000..ab02b8778e2
--- /dev/null
+++ b/editors/vim-share/patches/patch-if__lua.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-if__lua.c,v 1.1 2014/05/03 07:30:19 richard Exp $
+
+--- src/if_lua.c.orig 2013-04-22 08:09:33.000000000 +0000
++++ 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/editors/vim-share/patches/patch-if__py__both.h b/editors/vim-share/patches/patch-if__py__both.h
new file mode 100644
index 00000000000..adac695f690
--- /dev/null
+++ b/editors/vim-share/patches/patch-if__py__both.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-if__py__both.h,v 1.1 2014/05/03 07:30:19 richard Exp $
+
+--- src/if_py_both.h.orig 2014-01-11 21:59:11.000000000 +0000
++++ src/if_py_both.h
+@@ -2392,7 +2392,7 @@ ListAssItem(ListObject *self, Py_ssize_t
+ 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/editors/vim-share/patches/patch-proto_eval.pro b/editors/vim-share/patches/patch-proto_eval.pro
new file mode 100644
index 00000000000..4dee702711e
--- /dev/null
+++ b/editors/vim-share/patches/patch-proto_eval.pro
@@ -0,0 +1,17 @@
+$NetBSD: patch-proto_eval.pro,v 1.1 2014/05/03 07:30:19 richard Exp $
+
+'list_remove', being defined as well on SunOS under <sys/list.h>, causes
+a 'conflicting types' error when building with perl, python and/or ruby.
+Affects the following files: eval.c, if_lua.c and if_py_both.c
+
+--- src/proto/eval.pro.orig 2013-07-06 19:39:48.000000000 +0000
++++ src/proto/eval.pro
+@@ -59,7 +59,7 @@ int list_append_tv __ARGS((list_T *l, ty
+ 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));
+ int garbage_collect __ARGS((void));
+ void set_ref_in_ht __ARGS((hashtab_T *ht, int copyID));
+ void set_ref_in_list __ARGS((list_T *l, int copyID));