projects
/
cobramush.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73225ec
)
Touch-ups to mushlua.c and mushlua.i to allow paranoid compile to work
author
Ari Johnson
<ari@theari.com>
Wed, 12 Jan 2011 20:20:35 +0000
(20:20 +0000)
committer
Ari Johnson
<ari@theari.com>
Wed, 12 Jan 2011 20:20:35 +0000
(20:20 +0000)
src/mushlua.c
patch
|
blob
|
history
src/mushlua.i
patch
|
blob
|
history
diff --git
a/src/mushlua.c
b/src/mushlua.c
index e3d72a31481d9711b1d0ace0fc87149de4daf1fc..e06f8682fe59d9a7dd94499b918af5dd27d02ce2 100644
(file)
--- 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 6a87c43baf8f27a5249553950f6ab824315ff7bf..191aa71c29e7925eae4557f8d53276c2f8bcf5e3 100644
(file)
--- 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;
}
%}