X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=tools%2Fcpkg2c.mll;h=a942ee7bc1b15b4326f99ef993c01953bfb149a9;hp=388973a06b126cc5904ac34f72294eafb1def280;hb=6920eb5798f2d9f25e5ea1af2ba86122cf408bd1;hpb=95986f5aee1c2ee7d12c4b1e4bc47874856c5831 diff --git a/tools/cpkg2c.mll b/tools/cpkg2c.mll index 388973a..a942ee7 100644 --- 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 */ - 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 */