summaryrefslogtreecommitdiff
path: root/deps/lua/src
Commit message (Collapse)AuthorAgeFilesLines
* Remove Lua state reference from buffers in lua_cmsgpack.antirez2016-02-101-28/+25
|
* cmsgpack: pass correct osize values to lua allocator, update correct buf ↵yoav@monfort.co.il2016-02-071-4/+4
| | | | free space in cmsgpack
* lua_struct.c/getnum: throw error if overflow happenSun He2015-12-131-4/+6
| | | | Fix issue #2855
* disable loading lua bytecodeBen Murphy2015-06-031-1/+1
|
* Scripting: Lua cmsgpack lib updated to include str8 supportantirez2015-06-031-29/+42
|
* Lua cmsgpack lib updated to latest version.antirez2014-12-121-26/+27
| | | | | It fixes a bad bug that crashes the server in certain conditions as shown in issue #2210.
* Simplify lua_cmsgpack macro and fix build on old Linux distros.antirez2014-12-051-7/+1
| | | | Thanks to @badboy for the help in checking the build after the fix.
* Fix lua-cmsgpack 64 bit integer on 32 bit platformMatt Stancliff2014-11-241-14/+32
| | | | | | This syncs lua-cmsgpack with the mattsta/lua-cmsgpack upstream. Fixes #2161
* lua_cjson.c Lua includes: angled -> quoted.antirez2014-11-141-2/+2
|
* Merge remote-tracking branch 'origin/unstable' into unstableantirez2014-11-142-1/+191
|\
| * Lua: Add bitopMatt Stancliff2014-10-092-1/+191
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A few people have written custom C commands because bit manipulation isn't exposed through Lua. Let's give them Mike Pall's bitop. This adds bitop 1.0.2 (2012-05-08) from http://bitop.luajit.org/ bitop is imported as "bit" into the global namespace. New Lua commands: bit.tobit, bit.tohex, bit.bnot, bit.band, bit.bor, bit.bxor, bit.lshift, bit.rshift, bit.arshift, bit.rol, bit.ror, bit.bswap Verification of working (the asserts would abort on error, so (nil) is correct): 127.0.0.1:6379> eval "assert(bit.tobit(1) == 1); assert(bit.band(1) == 1); assert(bit.bxor(1,2) == 3); assert(bit.bor(1,2,4,8,16,32,64,128) == 255)" 0 (nil) 127.0.0.1:6379> eval 'assert(0x7fffffff == 2147483647, "broken hex literals"); assert(0xffffffff == -1 or 0xffffffff == 2^32-1, "broken hex literals"); assert(tostring(-1) == "-1", "broken tostring()"); assert(tostring(0xffffffff) == "-1" or tostring(0xffffffff) == "4294967295", "broken tostring()")' 0 (nil) Tests also integrated into the scripting tests and can be run with: ./runtest --single unit/scripting Tests are excerpted from `bittest.lua` included in the bitop distribution.
* | Lua: upgrade cmsgpack to 0.4.0Matt Stancliff2014-11-141-90/+305
| | | | | | | | | | | | | | | | Main reasons for upgrade: - Remove a warning when building Redis - Add multi pack/unpack - Improve memory usage and use Lua allocator properly - Fix some edge case encoding/decoding bugs
* | Lua: remove new warning added by cjson headerMatt Stancliff2014-11-141-1/+1
| | | | | | | | | | clang doesn't like "extern inline" when no definition is given right away.
* | Lua: Use Redis solaris compatability for cjson tooMatt Stancliff2014-11-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | cjson calls isinf, but some Solaris versions don't have isinf even with the attempted fix we have in deps/Makefile. We can harmlessly include the Redis solarisfixes.h header to give cjson proper isinf. Note: cjson has a compile-time setting for using their own defined isinf, but the Redis definition in solarisfixes.h is more complete. Fixes antirez#1620
* | Lua: Upgrade cjson to 2.1.0 (2012-03-01)Matt Stancliff2014-11-146-309/+674
|/ | | | | | | | | | | | | | | | | | The new cjson has some improvements over our current version including increased platform compatability, a new resource limit to restrict decode depth, and better invalid number handling. One minor change was required to deps/Makefile because this version of cjson doesn't export itself globally, so we added a quick little define of -DENABLE_CJSON_GLOBAL. cjson now has an optional higher performing float parsing interface, but we are not including it (g_fmt.c, dtoa.c) because it requires endianness declaration during compile time. This commit is exactly lua_cjson.c from 2.1.0 with one minor change of altering the two Lua includes for local search instead of system-wide importing.
* fix lua_cmsgpack pack map as arrayyihuang2013-08-271-1/+1
|
* Lua updated to version 5.1.5.antirez2013-04-2913-31/+35
|
* Inherit CC for LuaJohan Bergström2013-03-161-1/+1
|
* Lua struct library updated to version 0.2.antirez2013-01-231-52/+119
| | | | | | | | | | | | There was a bug in the previous version of this library that caused a crash under the circumstances described in issue #901. The newer version of the library appears to be fixed (I tested it manually with valgrind and everything seems fine now). For more information about this library please visit this web site: http://www.inf.puc-rio.br/~roberto/struct/
* lua_cmsgpack.c addedantirez2012-02-241-0/+729
|
* Lua_cmsgpack added to Redis scripting.antirez2012-02-241-1/+1
|
* added lua struct c extensionlsbardel2012-02-132-1/+355
|
* 32bit build fixed, broken by a previous commit fixing build on Solarisantirez2011-11-081-4/+4
|
* Lua cjson include paths now use the local includes.antirez2011-10-191-2/+2
|
* JSON support for Lua scripting, based on work from @lp, thanks!. We are ↵antirez2011-10-194-2/+1694
| | | | using the good and fast cjson by Mark Pulford.
* makefile adapted to link against lua lib and to pass the 32bit flag to Lua ↵antirez2011-05-2556-0/+17141
building system