]> granicus.if.org Git - apache/commitdiff
change use of luaL_openlib to luaL_register via path from Arfrever Frehtes Taifersar...
authorBrian McCallister <brianm@apache.org>
Mon, 15 Jun 2009 03:10:03 +0000 (03:10 +0000)
committerBrian McCallister <brianm@apache.org>
Mon, 15 Jun 2009 03:10:03 +0000 (03:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@784643 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/lua_apr.c

index bcd5c59754a89f3e232451dba6f3d3cf3808d9a4..bcedf41ca3dc8f4eb8f3071c85e9679e52ba2017 100644 (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)
 {
     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);