Nobuyuki Kubota
2bbf10a324
Merge pull request #181 from redboltz/change_zone_align_default
...
Modified the default value of MSGPACK_ZONE_ALIGN from sizeof(int) to siz...
2015-01-16 19:53:27 +09:00
Takatoshi Kondo
737e6703df
Fixed #191 .
...
The names of float format family are changed.
old new
dec -> f64
MSGPACK_OBJECT_DOUBLE -> MSGPACK_OBJECT_FLOAT
msgpack::type::DOUBLE -> msgpack::type::FLOAT
Client codes could have compile errors when it use dec, MSGPACK_OBJECT_DOUBLE or msgpack::type::DOUBLE.
The best way to fix such errors, update client code. If it can't, set MSGPACK_USE_LEGACY_NAME_AS_FLOAT macro.
Then both old names and new names are available.
2015-01-16 00:20:43 +09:00
Takatoshi Kondo
7f48ddc85e
Fixed #190 .
...
Supressed warnings on MSVC.
2015-01-15 20:42:33 +09:00
Mircea Baja
7e597779e4
Fix one more memory size calculation.
...
See https://github.com/msgpack/msgpack-c/issues/149
and the commit d6cc5494a9dd25fe640c1602cdf1b566690c9ba7
2015-01-05 21:55:57 +00:00
Dror Levin
5f52ec5030
Comment unused variable name
...
Prevents unused parameter error from gcc when compiled with -Wextra.
2015-01-04 13:43:55 +02:00
Takatoshi Kondo
fe4af1125d
Modified the default value of MSGPACK_ZONE_ALIGN from sizeof(int) to sizeof(void*).
...
On the x64 environment, sizeof(int) == 4 but pointer size is 8. The latter is suitable for the default value.
2015-01-03 10:22:58 +09:00
Nobuyuki Kubota
ce96ca8bfc
Merge pull request #175 from redboltz/add_limit
...
- Added unpack limit.
2015-01-02 12:22:03 -08:00
Nobuyuki Kubota
57732f0c1b
Merge pull request #171 from redboltz/fixed_zone_alignment
...
Fixed zone alignment
2015-01-02 11:37:01 -08:00
Nobuyuki Kubota
7ccef5b787
Merge pull request #170 from redboltz/fixed_typo
...
Fixed typos.
2015-01-02 11:01:58 -08:00
Takatoshi Kondo
1a116fb644
Merge pull request #180 from spatz/patch-2
...
Add missing break to prevent segfault
2015-01-02 18:10:06 +09:00
Dror Levin
b9a80697bc
Add missing break to prevent segfault
...
When printing objects with extension, falling through to type ARRAY may cause segmentation fault.
2015-01-01 15:15:47 +02:00
Dror Levin
467822c97a
Move constructors and operator= should be noexcept
2014-12-30 18:30:11 +02:00
Takatoshi Kondo
3ed6b673d4
Fixed https://github.com/msgpack/msgpack-c/issues/176
...
byteswap.h is no longer included on Solaris.
2014-12-20 18:38:49 +09:00
Takatoshi Kondo
469040be6b
Fixed exceptions' interface. On the C++11, both const char* and const std::string& are supported.
...
Updated all exceptions relate to unpack take a message parameter. It is better to explain the exceptional situation in detail. So far, just passing the exceptions name.
2014-12-15 10:12:55 +09:00
Takatoshi Kondo
309e96087a
- Added unpack limit.
...
- Added new exceptions to explain limit over errors.
- Fixed ext maximum size problem.
Problem:
The type of m_trail was uint32_t but when parsing ext, it could be 0xffffffff + 1. +1 means type. See https://github.com/msgpack/msgpack/blob/master/spec.md#ext-format-family
Solution:
Modified the type of m_trail as std::size_t. If sizeof(std::size_t) == 4, 0xffffffff size of ext is an error. If sizeof(std::size_t) == 8, 0xffffffff size of ext is not an error. m_trail is 0xffffffff + 1.
Design cohice:
I chose std::size_t as the m_trail's type instead of uint64_t intentionally. On 64 addressing bit environment, there is no problem. On 32 bit environment, there is no problem except ext with maximum size. There is only one exception in the all msgpack format. Using uint64_t to support that, it's very expensive. On 32 addressing bit environment, allocating 0xffffffff + 1 bytes of memory couldn't succeed, so I believe that throwing an exception is a reasonable design choice in the case.
2014-12-14 19:10:46 +09:00
Mircea Baja
6e560e345a
Added check for already defined NOMINMAX
2014-12-08 21:36:26 +00:00
Takatoshi Kondo
240b02174d
Fixed zone allocate alignment problem.
2014-12-05 20:46:56 +09:00
Takatoshi Kondo
38a380684e
Fixed typos.
...
The typos have been pointed out by https://github.com/msgpack/msgpack-c/pull/130
Thank you @jpetso !
2014-12-05 17:18:24 +09:00
Takatoshi Kondo
9162610682
Added adaptors for the C++11 version of unordered containers.
...
(Fixed https://github.com/msgpack/msgpack-c/issues/168 )
2014-12-05 15:40:33 +09:00
Nobuyuki Kubota
c52a58b322
Merge pull request #163 from redboltz/fix_144
...
Fixed https://github.com/msgpack/msgpack-c/issues/144
2014-11-26 14:21:50 -08:00
Takatoshi Kondo
dab725624e
Made copy constructors and copy assignment operators private for classes that should be noncopyable.
2014-11-23 20:42:38 +09:00
Takatoshi Kondo
037b1c22dc
Fixed https://github.com/msgpack/msgpack-c/issues/144
...
This fix is ogirinally from https://github.com/msgpack/msgpack-c/pull/133
I removed raw support and added str, bin, and ext support.
2014-11-17 12:51:34 +09:00
Nobuyuki Kubota
0827d08cd7
Merge pull request #162 from redboltz/msvc_test_supported
...
Supported dll export for msvc.
2014-11-15 17:22:51 -08:00
Takatoshi Kondo
a4af97b32c
Supported dll export for msvc.
...
Supported tests for msvc.
2014-11-02 20:16:20 +09:00
Takatoshi Kondo
d6cc5494a9
Fixed memory size caluclation problem.
...
See https://github.com/msgpack/msgpack-c/issues/149
2014-11-01 19:41:47 +09:00
Takatoshi Kondo
31a3d34b49
Added warnings suppress option.
...
Changed buffer type from char to unsigned char.
2014-11-01 16:36:40 +09:00
Takatoshi Kondo
3bfd142660
Fixed https://github.com/msgpack/msgpack-c/issues/153
2014-10-31 15:50:57 +09:00
Takatoshi Kondo
d031162d96
Merge pull request #146 from redboltz/fixed_char_pack
...
Fixed char packing support.
2014-10-31 12:51:53 +09:00
Takatoshi Kondo
837c5ecfc3
Fixed char packing support.
...
See https://github.com/msgpack/msgpack-c/issues/57#issuecomment-60670037
2014-10-28 10:48:49 +09:00
Takatoshi Kondo
69b2ea4002
Added help comments for compile error.
2014-10-27 17:41:06 +09:00
Takatoshi Kondo
a6aac482dd
Merge branch 'api_versioning' of https://github.com/redboltz/msgpack-c into redboltz-api_versioning
...
Conflicts:
include/msgpack/unpack.hpp
2014-10-26 09:43:36 +09:00
Takatoshi Kondo
b5e66150e9
Minimized header files dependency.
...
Added help comments for typical compile error.
2014-10-19 21:18:30 +09:00
Takatoshi Kondo
e21e3245db
Merge pull request #138 from redboltz/move_byteswap
...
Moved include byteswap.h to sysdep.h.
2014-10-19 19:42:38 +09:00
Takatoshi Kondo
44b524529d
Merge pull request #136 from redboltz/replace_uint64_t_with_apropriate_types
...
Replaced uint64_t with apropriate types.
2014-10-19 19:26:42 +09:00
Takatoshi Kondo
fc65bc0682
Replaced tuple with std::tuple.
...
Added include file int_fwd.hpp for MSGPACK_ADD_ENUM.
2014-10-16 14:07:53 +09:00
Takatoshi Kondo
ca12e6d39d
Added packer_serializer class template declaration to object_fwd.hpp
2014-10-16 14:06:57 +09:00
Takatoshi Kondo
db8578a62b
Separated adaptor functions' definitions and declarations.
2014-10-16 11:21:26 +09:00
Takatoshi Kondo
4a292193f2
Moved include byteswap.h to sysdep.h.
...
When compiling on Mac, byteswap.h is not included.
2014-10-12 01:22:10 +09:00
Takatoshi Kondo
479d50bd93
Replaced uint64_t with apropriate types.
2014-10-11 23:45:21 +09:00
Nobuyuki Kubota
982787865f
Merge pull request #127 from redboltz/clear_set_map
...
Fixed https://github.com/msgpack/msgpack-c/issues/76
2014-10-06 15:12:20 -07:00
Takatoshi Kondo
4c00f448aa
Added a minimal forward declaration header file for pack/unpack overloading.
2014-10-01 14:33:02 +09:00
Takatoshi Kondo
3ddeb08e6e
Added API versioning.
2014-10-12 23:21:25 +09:00
Nobuyuki Kubota
cd03ab62f8
Merge pull request #128 from redboltz/cpp11_unpacked_return
...
Added additional unpack() APIs to support C++11 style programming.
2014-09-16 10:06:31 -07:00
Nobuyuki Kubota
44e41efa0c
Merge pull request #126 from redboltz/add_zero_size_tuple_support
...
Added zero size tuple support.
2014-09-16 09:23:31 -07:00
Thiago de Arruda
d6122b4a18
Fix size packing/unpacking for EXT 8/16/32
...
For EXT 8/16/32, the "size" field was being incremented by 1 to account for the
type field, but according to the specification the size should only consider the
length of the data field.
2014-09-15 15:37:02 -03:00
Takatoshi Kondo
4fcb4777f3
Added additional unpack() APIs to support C++11 style programming.
2014-09-15 22:33:23 +09:00
Takatoshi Kondo
03ed30ce03
Fixed https://github.com/msgpack/msgpack-c/issues/76
...
Clear deserialized target containers.
As the result of this fix, all containers' deserialized behaviors become consistent.
2014-09-15 18:16:37 +09:00
Takatoshi Kondo
6e810df2a4
Added zero size tuple support.
2014-09-14 20:50:57 +09:00
Thiago de Arruda
dfa277a9e0
Add EXT support to C library
2014-09-08 12:11:38 -03:00
Takatoshi Kondo
7737f1cb77
Removed unused member variable.
2014-09-08 17:14:56 +09:00