From: Brian McCallister Date: Mon, 15 Jun 2009 03:10:03 +0000 (+0000) Subject: change use of luaL_openlib to luaL_register via path from Arfrever Frehtes Taifersar... X-Git-Tag: 2.3.3~512 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3268b2daf4b503ea447d1772179ce823449a9b58;p=apache 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 --- diff --git a/modules/lua/lua_apr.c b/modules/lua/lua_apr.c index bcd5c59754..bcedf41ca3 100644 --- a/modules/lua/lua_apr.c +++ b/modules/lua/lua_apr.c @@ -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);