Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 776591 Details for
Bug 842444
dev-db/redis-6.2.6[lua_single_target_luajit] fails to build with dev-lang/luajit-2.1 - error: static declaration of ‘luaL_setfuncs’ follows non-static declaration
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
redis-6.2.6-luajit-lua52compat.patch
redis-luajit-lua52compat-7.0.0.patch (text/plain), 1.17 KB, created by
Vadim A. Misbakh-Soloviov (mva)
on 2022-05-03 21:39:26 UTC
(
hide
)
Description:
redis-6.2.6-luajit-lua52compat.patch
Filename:
MIME Type:
Creator:
Vadim A. Misbakh-Soloviov (mva)
Created:
2022-05-03 21:39:26 UTC
Size:
1.17 KB
patch
obsolete
>--- a/deps/lua/src/lua_cjson.c 2022-05-04 04:04:58.751963749 +0700 >+++ b/deps/lua/src/lua_cjson.c 2022-05-04 04:05:31.832794312 +0700 >@@ -1292,26 +1292,6 @@ static int json_decode(lua_State *l) > > /* ===== INITIALISATION ===== */ > >-#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502 >-/* Compatibility for Lua 5.1. >- * >- * luaL_setfuncs() is used to create a module table where the functions have >- * json_config_t as their first upvalue. Code borrowed from Lua 5.2 source. */ >-static void luaL_setfuncs (lua_State *l, const luaL_Reg *reg, int nup) >-{ >- int i; >- >- luaL_checkstack(l, nup, "too many upvalues"); >- for (; reg->name != NULL; reg++) { /* fill the table with given functions */ >- for (i = 0; i < nup; i++) /* copy upvalues to the top */ >- lua_pushvalue(l, -nup); >- lua_pushcclosure(l, reg->func, nup); /* closure with those upvalues */ >- lua_setfield(l, -(nup + 2), reg->name); >- } >- lua_pop(l, nup); /* remove upvalues */ >-} >-#endif >- > /* Call target function in protected mode with all supplied args. > * Assumes target function only returns a single non-nil value. > * Convert and return thrown errors as: nil, "error message" */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 842444
: 776591