mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
More mod_lua compat for Lua 5.1, 5.2, 5.3.
One last use of luaL_register() with a non-NULL "name" argument remaining. Not tested yet. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1800815 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -265,13 +265,13 @@ void ap_lua_load_config_lmodule(lua_State *L)
|
||||
lua_pushvalue(L, -1);
|
||||
|
||||
lua_setfield(L, -2, "__index");
|
||||
luaL_register(L, NULL, cfg_methods); /* [metatable] */
|
||||
luaL_setfuncs(L, cfg_methods); /* [metatable] */
|
||||
|
||||
|
||||
luaL_newmetatable(L, "Apache2.CommandParameters");
|
||||
lua_pushvalue(L, -1);
|
||||
|
||||
lua_setfield(L, -2, "__index");
|
||||
luaL_register(L, NULL, cmd_methods); /* [metatable] */
|
||||
luaL_setfuncs(L, cmd_methods); /* [metatable] */
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user