1. 03 6月, 2015 1 次提交
  2. 13 12月, 2014 1 次提交
  3. 05 12月, 2014 1 次提交
  4. 25 11月, 2014 1 次提交
  5. 15 11月, 2014 5 次提交
    • A
      lua_cjson.c Lua includes: angled -> quoted. · 0ed2c601
      antirez 提交于
      0ed2c601
    • M
      Lua: upgrade cmsgpack to 0.4.0 · 90b6337c
      Matt Stancliff 提交于
      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
      90b6337c
    • M
      Lua: remove new warning added by cjson header · da18dd34
      Matt Stancliff 提交于
      clang doesn't like "extern inline" when no definition
      is given right away.
      da18dd34
    • M
      Lua: Use Redis solaris compatability for cjson too · a9900ad3
      Matt Stancliff 提交于
      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
      a9900ad3
    • M
      Lua: Upgrade cjson to 2.1.0 (2012-03-01) · 4fdcd213
      Matt Stancliff 提交于
      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.
      4fdcd213
  6. 09 10月, 2014 1 次提交
    • M
      Lua: Add bitop · 3fecb961
      Matt Stancliff 提交于
      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.
      3fecb961
  7. 27 8月, 2013 1 次提交
  8. 29 4月, 2013 1 次提交
  9. 16 3月, 2013 1 次提交
  10. 23 1月, 2013 1 次提交
    • A
      Lua struct library updated to version 0.2. · 61853a9c
      antirez 提交于
      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/
      61853a9c
  11. 24 2月, 2012 2 次提交
  12. 14 2月, 2012 1 次提交
  13. 09 11月, 2011 1 次提交
  14. 19 10月, 2011 2 次提交
  15. 25 5月, 2011 1 次提交