Martin C Drohmann
7191a3b014
enable as<map<...> > implementation when the key OR the value have as()
2016-08-23 15:03:14 -07:00
Takatoshi Kondo
b82b58f184
Merge pull request #508 from redboltz/fix_507
...
Fixed #507 .
2016-08-02 22:26:45 +09:00
Takatoshi Kondo
73af452ed8
Fixed #507 .
...
Removed -Wno-mismatched-tags option from g++.
g++ doesn't support the option and doesn't care the mismatch originally.
2016-07-29 19:49:53 +09:00
Takatoshi Kondo
95b31d0d16
Merge pull request #505 from smititelu/buffer-print-bin
...
Print unprintable characters in memory buffer
2016-07-21 21:10:41 +09:00
Stefan Mititelu
c73d9a9dab
Print unprintable characters in memory buffer
2016-07-19 12:17:38 +00:00
Takatoshi Kondo
0164c1efe2
Merge branch 'iphydf-bin-printer'
2016-07-16 10:26:16 +09:00
Takatoshi Kondo
48abfe7aa1
Adusted coding style.
2016-07-16 10:25:38 +09:00
Takatoshi Kondo
8105c33f9d
Merge branch 'bin-printer' of https://github.com/iphydf/msgpack-c into iphydf-bin-printer
2016-07-16 10:19:40 +09:00
Takatoshi Kondo
237cf888d8
Merge branch 'smititelu-master'
2016-07-16 09:33:58 +09:00
Takatoshi Kondo
b9bc9d4195
Replaced uint32_t with size_t.
...
User buffer size is not limited by msgpack-c so size_t is the
appropriate type.
2016-07-16 09:32:19 +09:00
Takatoshi Kondo
aa790ba785
Merge branch 'master' of https://github.com/smititelu/msgpack-c into smititelu-master
2016-07-16 09:20:39 +09:00
iphydf
1da0539a00
Improve bin/ext printer for unprintable characters.
...
msgpack_object_print used fwrite to write binary data to a stream. The intention
of the function is to produce a human-readable representation of the object for
debugging purposes. Having arbitrary data dumped as is can cause issues with
terminals that interpret it as control sequences.
This change prints printable characters as is and unprintable characters as
hex-escapes ("\xNN"). Note that UTF-8 encoded characters will now be printed as
escaped sequence of UTF-8 bytes. This is an acceptable compromise, as doing
otherwise would require a light form of UTF-8 decoding and BIN-typed objects
should not be used to transport UTF-8 strings anyway (STR should be used
instead).
2016-07-12 13:31:05 +02:00
Takatoshi Kondo
d7a656523b
Fixed #503 .
...
Fixed fwrite return value comparison.
2016-07-11 19:34:10 +09:00
Takatoshi Kondo
f573fd6a26
Merge pull request #499 from redboltz/fix_498
...
Fixed #498 .
2016-07-10 09:27:11 +09:00
Stefan Mititelu
4fa661a63d
Add msgpack_object_print_buffer() function
...
In order to print the msgpack object in a memory buffer.
2016-07-07 22:43:48 +03:00
Takatoshi Kondo
2e4de8b65c
Fixed #498 .
...
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38764
2016-07-06 21:52:08 +09:00
Takatoshi Kondo
42181289ed
Merge pull request #492 from redboltz/ver2.0.0
...
Appended CHANGELOG. Updated version.
cpp-2.0.0
2016-06-25 13:42:05 +09:00
Takatoshi Kondo
cd84d04860
Appended CHANGELOG. Updated version.
2016-06-25 13:38:39 +09:00
Takatoshi Kondo
0d1e1787de
Merge pull request #491 from redboltz/fix_424
...
Fix 424
2016-06-22 21:56:12 +09:00
Takatoshi Kondo
45b8d29cc0
Added CMAKE_VERSION checking.
...
cmake version less than 3.1 doesn't have the policy CMP0054.
2016-06-22 00:20:19 +09:00
Takatoshi Kondo
0bfe4c49b7
Set CMP0054 policy to NEW.
2016-06-21 23:50:33 +09:00
Takatoshi Kondo
3c997edd71
Merge pull request #489 from redboltz/fix_390
...
Fix 390
2016-06-21 21:07:29 +09:00
Takatoshi Kondo
523e986077
Added size_equal_only support for C++03 msgpack::type::tuple.
2016-06-20 18:39:04 +09:00
Takatoshi Kondo
90c2e35694
Fixed warnings on clang on OSX.
2016-06-20 17:30:51 +09:00
Takatoshi Kondo
4ffdc01135
Added converting support for different size tuples.
2016-06-20 17:12:53 +09:00
Takatoshi Kondo
b398ce9acc
Merge pull request #488 from redboltz/fix_485
...
Improved C-Style array support.
2016-06-20 17:05:32 +09:00
Takatoshi Kondo
1b87018a0a
Fixed #390 .
...
Added size_equal_only class template to check converted container size
strictly.
Relaxed std::array size checking by default.
Fixed std::tuple and msgpack::type::tuple size checking problem.
2016-06-20 15:32:24 +09:00
Takatoshi Kondo
755342bb25
Improved C-Style array support.
...
In the case the target type is char[] or const char[],
If the array is '\0' teminated, msgpack-c packs the characters before
'\0', otherwise packs all characters.
When converting, the array has the size that is greater than
msgpack::object STR's size, msgpack-c adds '\0' to just after converted
characters. Otherwise msgpack-c doesn't add '\0'.
2016-06-19 20:47:42 +09:00
Takatoshi Kondo
438c4ff8ca
Merge pull request #479 from aberaud/master
...
Add msvc project back
2016-06-19 20:20:51 +09:00
Takatoshi Kondo
20e777c1fa
Merge pull request #487 from ys-nuem/support-mingw
...
Add missing platform detection in examples/test
2016-06-19 18:55:43 +09:00
Takatoshi Kondo
3f98327f3b
Merge pull request #486 from ys-nuem/support_mingw_cmake
...
Add support for MinGW platform in CMakeLists.txt
2016-06-19 17:59:55 +09:00
Takatoshi Kondo
224a830ce0
Merge pull request #481 from redboltz/support_msvc_cli
...
Support MSVC cli.
2016-06-19 08:13:00 +09:00
Yusuke Sasaki
b4c4c213b1
Add missing platform detection in examples/test
2016-06-18 03:38:42 +09:00
Yusuke Sasaki
edc8004985
avoid to install DLLs in lib/
2016-06-18 02:51:01 +09:00
Yusuke Sasaki
7f37eac04c
switch suffix of import library between MSVC and MinGW
2016-06-18 02:50:51 +09:00
Takatoshi Kondo
0f66e144ab
Support MSVC cli.
...
MSVC CLI defined their own nullptr and provides for __nullptr for standard C++11.
https://msdn.microsoft.com/en-us/library/4ex65770.aspx
msgpack-c introduce MSGPACK_NULLPTR for internal use, it is defined as __nullptr only if compiled on C++ CLI otherwise defined as nullptr.
2016-06-08 18:03:51 +09:00
Adrien Béraud
0d475a9dbc
Add msvc project back
2016-06-07 12:26:15 -04:00
Takatoshi Kondo
ca5ef097ac
Merge pull request #476 from redboltz/remove_autotools
...
Removed autotools and msvc files.
2016-06-06 14:05:45 +09:00
Takatoshi Kondo
4ee616bbde
Removed autotools and msvc files.
...
Please use cmake.
2016-06-05 21:54:59 +09:00
Takatoshi Kondo
de972fbe0f
Merge pull request #471 from redboltz/add_new_packaging_script
...
Added the new packaging script.
2016-06-05 20:57:26 +09:00
Takatoshi Kondo
585f330694
Merge pull request #475 from redboltz/update_boost_1_56_to_1_61
...
Updated boost predef and preprocessor from 1.58.0 to 1.61.0
2016-05-30 17:25:29 +09:00
Takatoshi Kondo
89faf6ee9f
Updated boost predef and preprocessor from 1.58.0 to 1.61.0
2016-05-30 13:20:58 +09:00
Takatoshi Kondo
83dbe398fd
Merge pull request #474 from redboltz/fix_gcc_atomic_hpp_location
...
Moved gcc_atomic.hpp location.
2016-05-30 13:12:55 +09:00
Takatoshi Kondo
b68c073d1b
Moved gcc_atomic.hpp location.
2016-05-30 09:55:16 +09:00
Takatoshi Kondo
7eb8c8221a
Merge pull request #473 from redboltz/create_list_of_files
...
Added msgpack-c library file generation.
2016-05-30 09:46:35 +09:00
Takatoshi Kondo
7094e0872e
Added msgpack-c library file generation.
...
When you add or remove .h .hpp .c files in the msgpack-c library, run
make_file_list.sh. It generates (overwrites) Files.cmake for cmake and
src/files.mk for autotools. They are a part of repository managed
files. Files.cmake is included by CMakeLists.txt and src/files.mk is
included by src/Makefile.am.
2016-05-29 21:09:03 +09:00
Takatoshi Kondo
4b26a82ae8
Added the new packaging script.
...
It will replace make dist with autotools.
2016-05-28 19:59:17 +09:00
Takatoshi Kondo
22613d4dd0
Merge pull request #464 from redboltz/fix_463
...
Fixed #463 .
2016-05-24 08:22:50 +09:00
Takatoshi Kondo
d15d9220ff
Merge pull request #461 from redboltz/add_unpack_visitor_api
...
Added a visitor version of unpack API,
2016-05-22 22:50:44 +09:00
Takatoshi Kondo
a3f353ef42
Merge pull request #466 from redboltz/fix_465
...
Fixed #465
2016-05-18 19:00:57 +09:00