mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
More mod_lua compat for Lua 5.1, 5.2, 5.3.
One last use of luaL_register() with a non-NULL "name" argument remaining. Not tested yet. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1800815 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1080,11 +1080,7 @@ static const char *register_named_block_function_hook(const char *name,
|
||||
else {
|
||||
luaL_Buffer b;
|
||||
luaL_buffinit(lvm, &b);
|
||||
#if LUA_VERSION_NUM >= 503
|
||||
lua_dump(lvm, ldump_writer, &b, 0);
|
||||
#else
|
||||
lua_dump(lvm, ldump_writer, &b);
|
||||
#endif
|
||||
luaL_pushresult(&b);
|
||||
spec->bytecode_len = lua_rawlen(lvm, -1);
|
||||
spec->bytecode = apr_pstrmemdup(cmd->pool, lua_tostring(lvm, -1),
|
||||
|
Reference in New Issue
Block a user