From: Ari Johnson Date: Wed, 12 Jan 2011 20:20:35 +0000 (+0000) Subject: Touch-ups to mushlua.c and mushlua.i to allow paranoid compile to work X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=172cd155d25d17f6c5f12db119caa9fd4193b825;p=cobramush.git Touch-ups to mushlua.c and mushlua.i to allow paranoid compile to work --- diff --git a/src/mushlua.c b/src/mushlua.c index e3d72a3..e06f868 100644 --- a/src/mushlua.c +++ b/src/mushlua.c @@ -11,7 +11,7 @@ #include "lua.h" #include "lualib.h" -#include "lauxlib.c" +#include "lauxlib.h" #include "mushlua.h" extern void luaopen_cobra(lua_State *); diff --git a/src/mushlua.i b/src/mushlua.i index 6a87c43..191aa71 100644 --- a/src/mushlua.i +++ b/src/mushlua.i @@ -2,11 +2,14 @@ #include "conf.h" #include "externs.h" #include "dbdefs.h" +#include "game.h" +#include "command.h" +#include "function.h" extern struct db_stat_info current_state; extern void moveit(dbref what, dbref where, int nomovemsgs); -static lua_CFunction mlua_notify(lua_State *L) { +static int mlua_notify(lua_State *L) { int nargs; dbref obj; @@ -24,6 +27,8 @@ static lua_CFunction mlua_notify(lua_State *L) { obj = lua_tonumber(L, 1); notify(obj, lua_tostring(L, -1) ); } + + return 0; } %}