Takatoshi Kondo
ef09252dff
Added the Boost.Optional adaptor.
...
It is enables when MSGPACK_USE_BOOST is defined.
2015-04-09 14:46:06 +09:00
tbeu
e3aa02b6af
Make use of MSVC specific macros for format specifiers
...
Where inttypes.h is not availabale for VS<=2012 the MSVC specific macros still can be used.
See msgpack/msgpack-c#257
2015-04-07 22:10:07 +02:00
Takatoshi Kondo
904dd65965
Merge branch 'fix_doxygen_support' of https://github.com/redboltz/msgpack-c into redboltz-fix_doxygen_support
...
# Conflicts:
# erb/cpp03_define.hpp.erb
# erb/cpp03_msgpack_tuple.hpp.erb
# erb/cpp03_msgpack_tuple_fwd.hpp.erb
# include/msgpack/adaptor/bool_fwd.hpp
# include/msgpack/adaptor/char_ptr_fwd.hpp
# include/msgpack/adaptor/cpp11/array.hpp
# include/msgpack/adaptor/cpp11/array_char.hpp
# include/msgpack/adaptor/cpp11/array_char_fwd.hpp
# include/msgpack/adaptor/cpp11/array_fwd.hpp
# include/msgpack/adaptor/cpp11/forward_list.hpp
# include/msgpack/adaptor/cpp11/forward_list_fwd.hpp
# include/msgpack/adaptor/cpp11/tuple_fwd.hpp
# include/msgpack/adaptor/cpp11/unordered_map.hpp
# include/msgpack/adaptor/cpp11/unordered_map_fwd.hpp
# include/msgpack/adaptor/cpp11/unordered_set.hpp
# include/msgpack/adaptor/cpp11/unordered_set_fwd.hpp
# include/msgpack/adaptor/deque_fwd.hpp
# include/msgpack/adaptor/detail/cpp03_define.hpp
# include/msgpack/adaptor/detail/cpp03_msgpack_tuple.hpp
# include/msgpack/adaptor/detail/cpp03_msgpack_tuple_fwd.hpp
# include/msgpack/adaptor/detail/cpp11_define.hpp
# include/msgpack/adaptor/detail/cpp11_msgpack_tuple_fwd.hpp
# include/msgpack/adaptor/fixint_fwd.hpp
# include/msgpack/adaptor/float_fwd.hpp
# include/msgpack/adaptor/int_fwd.hpp
# include/msgpack/adaptor/list_fwd.hpp
# include/msgpack/adaptor/map_fwd.hpp
# include/msgpack/adaptor/nil.hpp
# include/msgpack/adaptor/nil_fwd.hpp
# include/msgpack/adaptor/pair_fwd.hpp
# include/msgpack/adaptor/raw.hpp
# include/msgpack/adaptor/raw_fwd.hpp
# include/msgpack/adaptor/set_fwd.hpp
# include/msgpack/adaptor/string_fwd.hpp
# include/msgpack/adaptor/tr1/unordered_map.hpp
# include/msgpack/adaptor/tr1/unordered_map_fwd.hpp
# include/msgpack/adaptor/tr1/unordered_set.hpp
# include/msgpack/adaptor/tr1/unordered_set_fwd.hpp
# include/msgpack/adaptor/vector.hpp
# include/msgpack/adaptor/vector_bool_fwd.hpp
# include/msgpack/adaptor/vector_char.hpp
# include/msgpack/adaptor/vector_char_fwd.hpp
# include/msgpack/adaptor/vector_fwd.hpp
2015-04-03 14:54:55 +09:00
Takatoshi Kondo
e8d3c8d6c5
Re-designed user types dispatching mechanism.
...
msgpakc-c 0.5.9 or older uses ADL.
msgpack-c 1.0.x uses overloading with header files ordering.
msgpack-c 1.1.x uses functor with class template specialization.
2015-04-02 18:23:37 +09:00
Takatoshi Kondo
ae5734e8d1
Recovered a minimal support for Doxygen.
...
Removed MSGPACK_API_VERSION_NAMESPACE(v1) from doxygen build.
It seems that Doxygen cannot parse a complicated macro such as MSGPACK_API_VERSION_NAMESPACE.
Added EXTRACT_ALL=YES to Doxyfle.
Added INPUT configuration variable that is point to include directory to Doxyfile.
2015-03-31 16:26:27 +09:00
Takatoshi Kondo
5401660b07
Fixed #255 . MSVC2012(_MSC_VER=1700) doesn't have inttypes.h.
2015-03-30 09:07:06 +09:00
tbeu
8921f9dcfc
Do not interleave code and declarations in C files
...
Avoid C99 style to interleave code and declarations in order to compile msgpackc with Visual Studion < 2013
2015-03-26 21:48:03 +01:00
Nobuyuki Kubota
8dbe25a51d
Add missing headers and files for make dist
2015-03-10 21:35:55 +09:00
Nobuyuki Kubota
8eaa2e9e74
Merge pull request #199 from redboltz/fix_issue_198
...
Fix issue 198
2015-03-10 19:31:09 +09:00
Nobuyuki Kubota
cf1487f8ba
Merge branch 'fix_decrement_typo'
...
Conflicts:
include/msgpack/unpack.hpp
2015-03-10 18:25:38 +09:00
Takatoshi Kondo
82a10cba5c
Fixed typo.
...
Replaced 'decl' with 'decr'.
2015-03-09 14:49:18 +09:00
Takatoshi Kondo
8ad9ce059b
Fixed #226 .
...
Suppressed warnings on MSVC++ 64bit environment.
Added container size limit check.
2015-03-05 07:36:56 +09:00
Mizuki Hirata
994144dac2
Add range-based for loop support.
2015-02-02 15:27:15 +09:00
Takatoshi Kondo
64ac09c492
Fixed #198 .
...
Added a conversion support from msgpack::object to std::vector<bool>.
2015-01-25 21:59:39 +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
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
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
b78b49a7bd
Fixed MSVC2010 doesn't have inttypes.h problem.
2014-10-31 10:50:19 +09:00
Takatoshi Kondo
1285470c21
Fixed https://github.com/msgpack/msgpack-c/issues/148
...
Fixed inttypes.h inclusion problem on MSVC.
Fixed msgpack_object_print implementation using PRIi8, PRIi64, and PRIu64.
If 64bit print is not supported on fprintf, dispatch to fallback print.
2014-10-30 23:54:33 +09:00
Takatoshi Kondo
db8578a62b
Separated adaptor functions' definitions and declarations.
2014-10-16 11:21:26 +09: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
Thiago de Arruda
dfa277a9e0
Add EXT support to C library
2014-09-08 12:11:38 -03:00
Takatoshi Kondo
11f1d5fbbd
Fixed https://github.com/msgpack/msgpack-c/pull/113
...
When the original PR was applied, the resource leak had been fixed, but a dual free problem had been happened.
When msgpack_unpacker_next returns MSGPACK_UNPACK_CONTINUE, msgpack_unpacked::zone is not replaced. Then mespack_zone_free is called twice with the same object. msgpack_unpacked_destroy frees msgpack::zone when it is not NULL and set it to NULL.
Also, fixed memory leak (msgpack_sbuffer) on the test code.
2014-09-07 13:56:07 +09:00
Thiago de Arruda
a186725213
Fix memory leak in msgpack_unpacker_next
2014-09-06 20:01:52 -03:00
Takatoshi Kondo
86ad026f11
Renamed the last digit of version string from RELEASE to REVISION.
...
Added REVISION macro and getting API.
2014-09-03 13:26:34 +09:00
Takatoshi Kondo
5896ff3746
Fixed -Wextra warnings on gcc.
2014-09-02 18:15:58 +09:00
Takatoshi Kondo
2103c12e05
Added char* packing support. char* is packed to STR similar as std::string.
...
See https://github.com/msgpack/msgpack-c/issues/110
2014-09-01 22:42:08 +09:00
Takatoshi Kondo
ea23bf843e
Added std::forward_list support.
...
Fixed cmake filename typo.
2014-08-10 23:45:50 +09:00
Takatoshi Kondo
0bc4b3f599
Added the C++11 std::array support.
...
std::array<char, N> is mapped to BIN. That is the same mannar as std::vector.
2014-08-10 23:06:30 +09:00
Takatoshi Kondo
0201c21b9a
Added minimum copy/reference threshold.
...
Even if ref_size is given on vrefbuffer's constructor, the minimum size of vrefbuffer::ref_buffer is 10.
Because int64, uint64, and double's msgpack expression size equals 9, and those buffer is allocated on the stack internally.
2014-08-08 14:28:03 +09:00
Takatoshi Kondo
17e696fc0d
Removed redundant memory allocation from zone.
...
Removed zone::create and zone::destroy.
We can use zone as follows:
zone z; // on stack
zone* z = new zone; // on heap
Fixed a resource leak when zone::push_finalizer(msgpack::unique_ptr<T>) is called.
2014-08-07 15:23:34 +09:00
Takatoshi Kondo
421aeb5021
Fixed missing copy operation for zone.hpp
2014-07-24 23:49:35 +09:00
Takatoshi Kondo
47f4ffe9f3
Added cpp11 include files to install files.
...
Sorted C++ install files to avoid overlooking.
2014-07-24 10:54:54 +09:00
Takatoshi Kondo
bfa428ab13
Added cpp_config.hpp to install files.
2014-07-24 07:52:20 +09:00
Takatoshi Kondo
0380215982
Fixed https://github.com/msgpack/msgpack-c/issues/88
...
Added examples for the following updated functions:
msgpack_unpack_return msgpack_unpacker_next(msgpack_unpacker* mpac, msgpack_unpacked* result);
msgpack_unpack_return
msgpack_unpack_next(msgpack_unpacked* result,
const char* data, size_t len, size_t* off);
2014-07-13 09:35:58 +09:00
Takatoshi Kondo
aa79fc2ff4
Updated versions.
2014-07-12 00:33:06 +09:00
Takatoshi Kondo
b0df21295c
Untabified.
...
Adjust line break positions.
2014-07-12 00:17:31 +09:00
Takatoshi Kondo
bc33317b7e
Reorganized tree.
2014-07-07 16:31:29 +09:00
Takatoshi Kondo
754b1682a5
Replaced C-style casts with C++ style casts.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
cb9eed8ccc
Renamed from ct to container_type.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
862905742f
Renamed z with zone.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
ba98315f65
The same fix as follows on C++ code.
...
https://github.com/msgpack/msgpack-c/pull/38
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
124a871923
Removed redundant parameter.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
378f6afccd
Mapped std::stirng to STR instead of BIN for benchmark.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
1320863cb3
Replaced function arguments with data members.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
038c3e3518
Replaced unsigned int to size_t.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
c08439ff41
Added STR to std::string conversion.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
59d994ea5f
Define nullptr macro only if it is not previously defined.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
723d900098
Added 'template' keyword.
2014-07-07 16:19:31 +09:00