From 7a02f03a825cf2e8510d5c61d269cfffbdc62b2a Mon Sep 17 00:00:00 2001 From: Kashyap Date: Tue, 1 Dec 2015 09:26:19 +0530 Subject: [PATCH 1/3] Update install instructions with latest msgpack --- QUICKSTART-C.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/QUICKSTART-C.md b/QUICKSTART-C.md index b244a76c..d1901c28 100644 --- a/QUICKSTART-C.md +++ b/QUICKSTART-C.md @@ -36,9 +36,9 @@ On Gentoo Linux, you can use emerge. Install [dev-libs/msgpack|http://gentoo-por On the other UNIX-like platforms, download source package from [Releases|http://msgpack.org/releases/cpp/] and run `./configure && make && make install`. ``` -$ wget http://msgpack.org/releases/cpp/msgpack-0.5.5.tar.gz -$ tar zxvf msgpack-0.5.5.tar.gz -$ cd msgpack-0.5.5 +$ wget http://msgpack.org/releases/cpp/msgpack-1.3.0.tar.gz +$ tar zxvf msgpack-1.3.0.tar.gz +$ cd msgpack-1.3.0 $ ./configure $ make $ sudo make install From 3660b495c31e6036c2849015562acd632d3d3cc8 Mon Sep 17 00:00:00 2001 From: Kashyap Date: Tue, 1 Dec 2015 09:26:46 +0530 Subject: [PATCH 2/3] Use post 1.x APIs in Quickstart docs --- QUICKSTART-C.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/QUICKSTART-C.md b/QUICKSTART-C.md index d1901c28..094c9422 100644 --- a/QUICKSTART-C.md +++ b/QUICKSTART-C.md @@ -88,10 +88,10 @@ int main(void) { /* serializes ["Hello", "MessagePack"]. */ msgpack_pack_array(pk, 2); - msgpack_pack_raw(pk, 5); - msgpack_pack_raw_body(pk, "Hello", 5); - msgpack_pack_raw(pk, 11); - msgpack_pack_raw_body(pk, "MessagePack", 11); + msgpack_pack_bin(pk, 5); + msgpack_pack_bin_body(pk, "Hello", 5); + msgpack_pack_bin(pk, 11); + msgpack_pack_bin_body(pk, "MessagePack", 11); /* deserializes it. */ msgpack_unpacked msg; @@ -128,10 +128,10 @@ int main(void) { /* serializes ["Hello", "MessagePack"]. */ msgpack_pack_array(pk, 3); - msgpack_pack_raw(pk, 5); - msgpack_pack_raw_body(pk, "Hello", 5); - msgpack_pack_raw(pk, 11); - msgpack_pack_raw_body(pk, "MessagePack", 11); + msgpack_pack_bin(pk, 5); + msgpack_pack_bin_body(pk, "Hello", 5); + msgpack_pack_bin(pk, 11); + msgpack_pack_bin_body(pk, "MessagePack", 11); msgpack_pack_int(pk, j); /* deserializes it. */ From 772e4e01a39ffcf24f5d54e36118077002bd259c Mon Sep 17 00:00:00 2001 From: Kashyap Date: Tue, 1 Dec 2015 09:27:10 +0530 Subject: [PATCH 3/3] Remove whitespace --- QUICKSTART-C.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QUICKSTART-C.md b/QUICKSTART-C.md index 094c9422..df3e8175 100644 --- a/QUICKSTART-C.md +++ b/QUICKSTART-C.md @@ -119,7 +119,7 @@ int main(void) { /* creates buffer and serializer instance. */ msgpack_sbuffer* buffer = msgpack_sbuffer_new(); msgpack_packer* pk = msgpack_packer_new(buffer, msgpack_sbuffer_write); - + int j; for(j = 0; j<23; j++) {