projects
/
apps
/
madmutt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
95986f5
)
Replace deprecated luaL_openlib() by luaL_register()
master
author
Julien Danjou
<julien@danjou.info>
Wed, 21 May 2008 06:10:14 +0000
(08:10 +0200)
committer
Pierre Habouzit
<madcoder@debian.org>
Wed, 21 May 2008 07:21:54 +0000
(09:21 +0200)
Signed-off-by: Julien Danjou <julien@danjou.info>
tools/cpkg2c.mll
patch
|
blob
|
history
diff --git
a/tools/cpkg2c.mll
b/tools/cpkg2c.mll
index
388973a
..
a942ee7
100644
(file)
--- a/
tools/cpkg2c.mll
+++ b/
tools/cpkg2c.mll
@@
-585,7
+585,7
@@
int luaopen_%s(lua_State *L)
%s_init();
/* create methods table, add it the the table of globals */
%s_init();
/* create methods table, add it the the table of globals */
- luaL_
openlib(L, \"%s\", luaM_%s_methods, 0
);
+ luaL_
register(L, \"%s\", luaM_%s_methods
);
methods = lua_gettop(L);
lua_newtable(L); /* for new members */
methods = lua_gettop(L);
lua_newtable(L); /* for new members */