1
0
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@784644 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brian McCallister
2009-06-15 03:10:06 +00:00
parent 3268b2daf4
commit c194519800

View File

@@ -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) AP_LUA_DECLARE(int) ap_lua_init(lua_State *L, apr_pool_t *p)
{ {
luaL_newmetatable(L, "Apr.Table"); luaL_newmetatable(L, "Apr.Table");
luaL_register(L, "apr_table", lua_table_methods, 0); luaL_register(L, "apr_table", lua_table_methods);
lua_pushstring(L, "__index"); lua_pushstring(L, "__index");
lua_pushstring(L, "get"); lua_pushstring(L, "get");
lua_gettable(L, 2); lua_gettable(L, 2);