From 172cd155d25d17f6c5f12db119caa9fd4193b825 Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Wed, 12 Jan 2011 20:20:35 +0000 Subject: [PATCH] Touch-ups to mushlua.c and mushlua.i to allow paranoid compile to work --- src/mushlua.c | 2 +- src/mushlua.i | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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; } %} -- 2.30.2