mirror of
https://github.com/apache/httpd.git
synced 2025-08-05 16:55:50 +03:00
changes headers_in and headers_out handling in mod_lua to map apr_table_t instances as boxed pointers
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@737293 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -41,12 +41,11 @@ apr_table_t *check_apr_table(lua_State *L, int index)
|
||||
}
|
||||
|
||||
|
||||
void apl_push_apr_table(lua_State *L, const char *name, apr_table_t *t)
|
||||
void apl_push_apr_table(lua_State *L, apr_table_t *t)
|
||||
{
|
||||
lua_boxpointer(L, t);
|
||||
luaL_getmetatable(L, "Apr.Table");
|
||||
lua_setmetatable(L, -2);
|
||||
lua_setfield(L, -2, name);
|
||||
}
|
||||
|
||||
static int lua_table_set(lua_State *L)
|
||||
|
Reference in New Issue
Block a user