comparison src/if_lua.c @ 4135:688da4d486a0 v7.3.820

updated for version 7.3.820 Problem: Build errors and warnings when building with small features and Lua, Perl or Ruby. Solution: Add #ifdefs and UNUSED.
author Bram Moolenaar <bram@vim.org>
date Thu, 14 Feb 2013 22:19:51 +0100
parents 3c072c1cb873
children c5eab656ec51
comparison
equal deleted inserted replaced
4134:1f0dca3be14b 4135:688da4d486a0
843 lua_pushinteger(L, (d == NULL) ? 0 : (int) d->dv_hashtab.ht_used); 843 lua_pushinteger(L, (d == NULL) ? 0 : (int) d->dv_hashtab.ht_used);
844 return 1; 844 return 1;
845 } 845 }
846 846
847 static int 847 static int
848 luaV_dict_iter (lua_State *L) 848 luaV_dict_iter (lua_State *L UNUSED)
849 { 849 {
850 #ifdef FEAT_EVAL
850 hashitem_T *hi = (hashitem_T *) lua_touserdata(L, lua_upvalueindex(2)); 851 hashitem_T *hi = (hashitem_T *) lua_touserdata(L, lua_upvalueindex(2));
851 int n = lua_tointeger(L, lua_upvalueindex(3)); 852 int n = lua_tointeger(L, lua_upvalueindex(3));
852 dictitem_T *di; 853 dictitem_T *di;
853 if (n <= 0) return 0; 854 if (n <= 0) return 0;
854 while (HASHITEM_EMPTY(hi)) hi++; 855 while (HASHITEM_EMPTY(hi)) hi++;
858 lua_pushlightuserdata(L, (void *) (hi + 1)); 859 lua_pushlightuserdata(L, (void *) (hi + 1));
859 lua_replace(L, lua_upvalueindex(2)); 860 lua_replace(L, lua_upvalueindex(2));
860 lua_pushinteger(L, n - 1); 861 lua_pushinteger(L, n - 1);
861 lua_replace(L, lua_upvalueindex(3)); 862 lua_replace(L, lua_upvalueindex(3));
862 return 2; 863 return 2;
864 #else
865 return 0;
866 #endif
863 } 867 }
864 868
865 static int 869 static int
866 luaV_dict_call (lua_State *L) 870 luaV_dict_call (lua_State *L)
867 { 871 {