Skip to content

Commit 760076a

Browse files
committed
Bump to version 0.4.0
Changes: - Improve table vs. array detection - Improve packing +-inf - Add multiple pack/unpack support - Add cmsgpack.safe module variant - Add local build infrastructure for easier testing - Add user-controlled unpack support limiting returned objects - Add Lua 5.3 compatibility - Remove an unnecessary malloc - Use Lua memory allocator instead of malloc for buffer creation Issues involved: - closes antirez#16 - allow multi pack/unpack by default - closes antirez#10 - unpack one/limit API added - closes antirez#13 and closes antirez#20 - use Lua allocator - closes antirez#15 - (included in antirez#16) - ignores antirez#22 because it's confusing - closes antirez#23 - fixed elsewhere - closes antirez#26 - extracted some useful parts from a difficult commit - closes antirez#28 - we started tagging versions again recently - closes antirez#27 - that failure case works for me now I merged commits with original author information where possible, but each commit required manual cleanup of one or more of: formatting fixes (no tabs, please), commit message fixes (more details please), extracting contents from a single 300 line commit with 5 different logical changes merged together, and general correctness checking after merging with newer code. As of this commit, all tests pass on Lua 5.1.5 and Lua 5.3-work2.
1 parent 6628b01 commit 760076a

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

lua_cmsgpack.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#define LUACMSGPACK_NAME "cmsgpack"
1111
#define LUACMSGPACK_SAFE_NAME "cmsgpack_safe"
12-
#define LUACMSGPACK_VERSION "lua-cmsgpack 0.3.1"
12+
#define LUACMSGPACK_VERSION "lua-cmsgpack 0.4.0"
1313
#define LUACMSGPACK_COPYRIGHT "Copyright (C) 2012, Salvatore Sanfilippo"
1414
#define LUACMSGPACK_DESCRIPTION "MessagePack C implementation for Lua"
1515

@@ -53,6 +53,7 @@
5353
* 20-Feb-2012 (ver 0.2.1): Minor bug fixing.
5454
* 20-Feb-2012 (ver 0.3.0): Module renamed lua-cmsgpack (was lua-msgpack).
5555
* 04-Apr-2014 (ver 0.3.1): Lua 5.2 support and minor bug fix.
56+
* 07-Apr-2014 (ver 0.4.0): Multiple pack/unpack, lua allocator, efficiency.
5657
* ========================================================================== */
5758

5859
/* -------------------------- Endian conversion --------------------------------
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package = "lua-cmsgpack"
2+
version = "0.4.0-0"
3+
source = {
4+
url = "git://github.com/antirez/lua-cmsgpack.git",
5+
tag = "0.4.0"
6+
}
7+
description = {
8+
summary = "MessagePack C implementation and bindings for Lua 5.1/5.2/5.3",
9+
homepage = "http://github.com/antirez/lua-cmsgpack",
10+
license = "Two-clause BSD",
11+
maintainer = "Salvatore Sanfilippo <[email protected]>"
12+
}
13+
dependencies = {
14+
"lua >= 5.1"
15+
}
16+
build = {
17+
type = "builtin",
18+
modules = {
19+
cmsgpack = {
20+
sources = {
21+
"lua_cmsgpack.c"
22+
}
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)