summaryrefslogtreecommitdiffstats
path: root/src/if_lua.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-02-14 22:19:51 +0100
committerBram Moolenaar <Bram@vim.org>2013-02-14 22:19:51 +0100
commitfeeaa688ebfd95281529191718b9194187995f7f (patch)
tree5c584b72bd4c595553b742bc49e4d7f4ba539897 /src/if_lua.c
parentb2c5a5ac79848b7f889a8b279eed40be3064feca (diff)
updated for version 7.3.820v7.3.820
Problem: Build errors and warnings when building with small features and Lua, Perl or Ruby. Solution: Add #ifdefs and UNUSED.
Diffstat (limited to 'src/if_lua.c')
-rw-r--r--src/if_lua.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/if_lua.c b/src/if_lua.c
index ce65fd2f68..1458593b1c 100644
--- a/src/if_lua.c
+++ b/src/if_lua.c
@@ -845,8 +845,9 @@ luaV_dict_len (lua_State *L)
}
static int
-luaV_dict_iter (lua_State *L)
+luaV_dict_iter (lua_State *L UNUSED)
{
+#ifdef FEAT_EVAL
hashitem_T *hi = (hashitem_T *) lua_touserdata(L, lua_upvalueindex(2));
int n = lua_tointeger(L, lua_upvalueindex(3));
dictitem_T *di;
@@ -860,6 +861,9 @@ luaV_dict_iter (lua_State *L)
lua_pushinteger(L, n - 1);
lua_replace(L, lua_upvalueindex(3));
return 2;
+#else
+ return 0;
+#endif
}
static int