mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
change use of luaL_openlib to luaL_register via path from Arfrever Frehtes Taifersar Arahesis
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@784643 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -75,7 +75,7 @@ static const luaL_reg lua_table_methods[] = {
|
||||
AP_LUA_DECLARE(int) ap_lua_init(lua_State *L, apr_pool_t *p)
|
||||
{
|
||||
luaL_newmetatable(L, "Apr.Table");
|
||||
luaL_openlib(L, "apr_table", lua_table_methods, 0);
|
||||
luaL_register(L, "apr_table", lua_table_methods, 0);
|
||||
lua_pushstring(L, "__index");
|
||||
lua_pushstring(L, "get");
|
||||
lua_gettable(L, 2);
|
||||
|
Reference in New Issue
Block a user