comparison src/if_lua.c @ 2331:3840b7508835 vim73

Make it easier to build with Lua. Remove compiler warnings.
author Bram Moolenaar <bram@vim.org>
date Sun, 18 Jul 2010 12:35:47 +0200
parents ea4bf6df1a8a
children f149bb1cf5be
comparison
equal deleted inserted replaced
2330:ea4bf6df1a8a 2331:3840b7508835
919 luaV_pushtypval(L, tv); 919 luaV_pushtypval(L, tv);
920 return 1; 920 return 1;
921 } 921 }
922 922
923 static int 923 static int
924 luaV_beep(lua_State *L) 924 luaV_beep(lua_State *L UNUSED)
925 { 925 {
926 vim_beep(); 926 vim_beep();
927 return 0; 927 return 0;
928 } 928 }
929 929
953 { 953 {
954 if (buf->b_ffname == NULL || buf->b_sfname == NULL) 954 if (buf->b_ffname == NULL || buf->b_sfname == NULL)
955 { 955 {
956 if (l == 0) break; 956 if (l == 0) break;
957 } 957 }
958 else if (strncmp(s, buf->b_ffname, l) == 0 958 else if (strncmp(s, (char *)buf->b_ffname, l) == 0
959 || strncmp(s, buf->b_sfname, l) == 0) 959 || strncmp(s, (char *)buf->b_sfname, l) == 0)
960 break; 960 break;
961 } 961 }
962 } 962 }
963 if (buf == NULL) /* not found? */ 963 if (buf == NULL) /* not found? */
964 lua_pushnil(L); 964 lua_pushnil(L);