Takatoshi Kondo
b065560404
Merge pull request #966 from msgpack/update_to_cpp_4
...
Updated to version 4.0.0.
2021-08-29 22:53:50 +09:00
Takatoshi Kondo
93b41492fe
Updated to version 4.0.0.
2021-08-29 22:20:28 +09:00
Takatoshi Kondo
c1b3d7530f
Merge pull request #965 from redboltz/port_962_to_cpp
...
Ported #962 to C++.
2021-08-29 22:12:36 +09:00
Takatoshi Kondo
ca9f25b51e
Added file include.
...
Added cstdint header for uintptr_t (for C++11 or later)
Added stdint.h header for uintptr_t (for C++03)
2021-08-29 21:35:33 +09:00
Takatoshi Kondo
860f7fce55
Ported #962 to C++.
...
Improved alignment calculation logic.
Fixed test for zone.
Now, align parameter must be 2^n (n >=0). e.g. 1,2,4,8,16, ...
2021-08-29 13:46:51 +09:00
Takatoshi Kondo
76f5af0593
Merge pull request #951 from kovdan01/add_span_support
...
Modernize codebase
2021-08-29 11:10:37 +09:00
Daniil Kovalev
d04b1e7549
Fix empty string deserialization with API version 1
2021-08-28 17:36:39 +03:00
Daniil Kovalev
0fddfe8058
Use only one compiler per build ( #8 )
2021-08-22 17:12:44 +03:00
Daniil Kovalev
78814311cb
Update README.md
2021-08-17 10:30:05 +03:00
Daniil Kovalev
073394cbba
Enhance CI build time
2021-08-10 01:05:53 +03:00
Daniil Kovalev
25d6f84f3c
Fix cmake to support versions 3.1 and above
...
VERSION_GREATER_EQUAL is available since cmake 3.7 only
2021-07-07 18:11:43 +03:00
Daniil Kovalev
4022c2fc00
Fix appveyor build
2021-07-04 13:25:25 +03:00
Daniil Kovalev
7b7615a6d9
Modernize codebase
...
- Enhance CMakeLists.txt files.
- Move to Boost Test from Google Test to support pre-C++11 compilers.
- Add more configurations on CI matrix builds.
- Other minor fixes
2021-07-01 18:17:20 +03:00
Daniil Kovalev
0af15e45de
Add tests for std::span adaptor
2021-05-28 15:14:47 -04:00
Daniil Kovalev
18ec42ccac
Merge branch 'cpp_master' into add_span_support
2021-05-28 21:56:17 +03:00
Takatoshi Kondo
be4d971c62
Merge pull request #957 from redboltz/fix_956
...
Fixed #956 .
2021-05-16 00:11:43 +09:00
Takatoshi Kondo
3feac1f51d
Fixed #956 .
...
Called memcpy only if STR/BIN size > 0.
2021-05-15 23:43:33 +09:00
Daniil Kovalev
2b78d50d13
Fix build with C++17 or lower
2021-05-10 22:48:19 +03:00
Daniil Kovalev
77045f13bb
Add tests for std::span adaptor
2021-05-10 22:41:10 +03:00
Daniil Kovalev
388891edad
Add support for more binary buffer types
...
Add support for the following types:
- `std::array<std::byte>`
- `std::span<char>`
- `std::span<unsigned char>`
- `std::span<std::byte>`
2021-05-10 16:06:26 +03:00
Takatoshi Kondo
fc3de9806e
Merge pull request #954 from kovdan01/fix_ub_in_v4raw
...
Fix UB in v4raw_ref::operator==
2021-05-10 21:45:57 +09:00
Takatoshi Kondo
54b2b23b25
Merge pull request #955 from kovdan01/enhance_sanitizers_on_ci
...
Set `-fno-sanitize-recover=all` compiler option
2021-05-10 21:45:03 +09:00
Daniil Kovalev
b9381f842e
Set -fno-sanitize-recover=all
compiler option
...
If sanitizer detects an error, it will lead to a non-zero exit code.
2021-05-10 15:11:41 +03:00
Daniil Kovalev
90677eb58c
Fix UB in v4raw_ref::operator==
...
Behaviour of memcmp is undefined if any of pointers passed to it is null.
See https://en.cppreference.com/w/c/string/byte/memcmp for details.
UB was detected on test MSGPACK_V4RAW_REF.pack_unpack_fix_l with UB-sanitizer.
2021-05-09 15:43:14 +03:00
Takatoshi Kondo
dfbfd927b4
Merge pull request #952 from kovdan01/fix_name_conflicts
...
Fix name conflicts (C++)
2021-05-09 16:39:58 +09:00
Daniil Kovalev
e487321ed6
Delete unsupported cmake option -v
2021-05-08 18:24:07 +03:00
Daniil Kovalev
7c7f45fbea
Install boost on Windows via vcpkg
2021-05-08 18:18:09 +03:00
Daniil Kovalev
7707c81c5d
Fix boost download URL
2021-05-08 17:55:01 +03:00
Daniil Kovalev
a66da75bd4
Fix iovec-related tests
2021-05-08 17:10:47 +03:00
Daniil Kovalev
3944993686
Fix name conflicts
...
Previously `struct iovec` was explicitly defined on non-Unix systems,
which caused name conflicts when other libraries (e.g. Cyrus SASL) did the same.
Using `struct iovec` as `msgpack::iovec` solves the problem.
2021-05-08 16:26:25 +03:00
Takatoshi Kondo
6b6a05e07c
Merge pull request #924 from VorpalBlade/feature/boost-timer-optional
...
Implement issue #923 : Make boost timer optional
2020-10-19 19:36:17 +09:00
Arvid Norlander
6c8ec25016
Fix issue with Appveyor.
2020-10-19 10:00:29 +02:00
Arvid Norlander
04726a5acf
Implement issue #923 : Make boost timer optional
2020-10-16 10:51:49 +02:00
Takatoshi Kondo
44aa90eb50
Merge pull request #919 from redboltz/fix_readme_cpp_11_17
...
Fixed misleading flag notation.
2020-10-01 18:44:09 +09:00
Takatoshi Kondo
ab36ce2654
Fixed misleading flag notation.
...
Added missing `make` command.
2020-09-29 16:32:39 +09:00
Takatoshi Kondo
780c504c44
Merge pull request #918 from ashish-billore/patch-1
...
Update README.md
2020-09-29 16:26:06 +09:00
Ashish Billore
d852e6e4fb
Update README.md
...
Minor rewording for setup instructions.
2020-09-29 15:12:13 +09:00
Takatoshi Kondo
65938a95e9
Merge pull request #916 from mkilivan/cpp_master
...
Let the compiler deduce the type
2020-09-22 22:24:53 +09:00
Murat Kilivan
b9d06fe207
Let the compiler deduce the type
...
It also provides a consistent coding style with the rest of C++11
examples.
2020-09-14 09:06:47 +01:00
Takatoshi Kondo
555cd3ff68
Merge pull request #912 from redboltz/add_boost_requirement
...
Added boost dependency to README.md.
2020-08-10 16:01:09 +09:00
Takatoshi Kondo
e88fa26f7a
Added boost dependency to README.md.
2020-08-10 13:56:15 +09:00
Takatoshi Kondo
0d203644be
Merge pull request #906 from redboltz/fix_905
...
Fixed #905 .
2020-08-07 10:31:07 +09:00
Takatoshi Kondo
d53d42a791
Added vcpkg update.
2020-08-01 11:47:33 +09:00
Takatoshi Kondo
14763a8b31
Fixed #905 .
...
Added compiler version cheking for atomic test for older compilers on cmake.
2020-08-01 08:58:36 +09:00
Takatoshi Kondo
70912ffde4
Merge pull request #898 from redboltz/refine_assert
...
Replaced assert with BOOST_ASSERT.
2020-07-03 09:09:20 +09:00
Takatoshi Kondo
6598c6228f
Replaced assert with BOOST_ASSERT.
...
Applied *buffer buf and len checking assert.
Avoided needless code execution if buf is nullptr.
2020-07-02 21:36:04 +09:00
Takatoshi Kondo
eb1e7e6e07
Merge pull request #897 from redboltz/re_enable_werror
...
Propagated CXXFLAGS.
2020-07-02 17:39:56 +09:00
Takatoshi Kondo
544978b343
Added conditional sanitize option.
2020-07-02 17:04:32 +09:00
Takatoshi Kondo
c8a053557c
Propagated CXXFLAGS.
...
Fixed warnings.
2020-07-02 16:15:08 +09:00
Takatoshi Kondo
71687c4229
Merge pull request #895 from redboltz/add_f_sanitize_undefined_to_ci
...
Added -fsanitize=undefined option to ci.
2020-07-02 15:39:25 +09:00
Takatoshi Kondo
3557e6c9f9
Added -fsanitize=undefined option to ci.
2020-07-02 14:05:28 +09:00
Takatoshi Kondo
0e22de17b1
Merge branch 'ygj6-cpp_master' into cpp_master
2020-07-02 13:58:30 +09:00
Takatoshi Kondo
b0860a5f37
Fixed ptr size operation.
2020-07-02 13:34:00 +09:00
Takatoshi Kondo
447e8dfb07
Merge pull request #894 from redboltz/fix_fusion_warning
...
Fixed warning on fusion adaptor.
2020-07-02 09:48:56 +09:00
Takatoshi Kondo
8ee6df83cc
Fixed warning on fusion adaptor.
2020-07-02 09:13:53 +09:00
Takatoshi Kondo
0168468ac8
Merge branch 'cpp_master' of https://github.com/ygj6/msgpack-c into cpp_master
2020-07-02 08:51:59 +09:00
yuangongji
ee29324fd5
check null pointer before using memcpy()
2020-07-01 20:44:15 +08:00
Takatoshi Kondo
194d1a470d
Merge pull request #893 from redboltz/fix_chrono_ub
...
Fixed undefined behavior in chrono converting.
2020-07-01 18:26:05 +09:00
Takatoshi Kondo
ebb5e0ceca
Fixed undefined behavior in chrono converting.
...
Replaced static_cast with boost::numeric_cast to detect invalid cast
easier.
2020-07-01 16:22:01 +09:00
Takatoshi Kondo
f72c6c48f7
Merge pull request #892 from ygj6/dev
...
link lib32z1-dev when building 32-bit library
2020-07-01 12:47:56 +09:00
yuangongji
fc18087cdf
link lib32z1-dev when building 32-bit library
2020-06-30 21:03:35 +08:00
Takatoshi Kondo
da2fc25f87
Merge pull request #888 from redboltz/fix_886_more_elegant
...
Improved clock adaptor.
2020-06-15 09:07:11 +09:00
Takatoshi Kondo
4629583662
Improved clock adaptor.
2020-06-14 18:47:03 +09:00
Takatoshi Kondo
c7b7e745b3
Merge pull request #887 from redboltz/impl_886
...
Added steady_clock and high_resolution_clock support.
2020-06-13 12:58:15 +09:00
Takatoshi Kondo
899d3319bf
Removed code repeat.
2020-06-12 23:14:23 +09:00
Takatoshi Kondo
6eaf7fd38d
Added steady_clock and high_resolution_clock support.
2020-06-12 22:16:19 +09:00
Takatoshi Kondo
01260a263d
Merge pull request #884 from redboltz/fix_gha_bardge
...
Replaced travis-ci badge with github actions badge.
2020-06-12 12:09:22 +09:00
Takatoshi Kondo
30ed4e35b7
Replaced travis-ci badge with github actions badge.
2020-06-12 11:33:13 +09:00
Takatoshi Kondo
44f2a6a56e
Merge pull request #883 from redboltz/support_complex
...
Added complex type support.
2020-06-12 10:08:24 +09:00
Takatoshi Kondo
3b80c45725
Added complex type support.
2020-06-10 13:26:40 +09:00
Takatoshi Kondo
6b197e7328
Merge pull request #882 from sharkcz/cpp-context
...
reduce boost::context requirement
2020-06-09 20:46:50 +09:00
Dan Horák
498fe28b43
reduce dependency on boost::context
...
The Boost Context module is required only for certain configurations, so adapt
the build system checks to it.
2020-06-09 12:48:19 +02:00
Takatoshi Kondo
ad9106e38b
Merge pull request #876 from ygj6/cpp_master
...
remove C library in cpp_master branch
2020-06-08 09:25:25 +09:00
yuangongji
7ca4ec95e5
update appveyor matrix and compatible with old msvc
2020-06-07 01:58:52 +08:00
yuangongji
2f5b137997
remove C part in source code
2020-06-05 18:12:03 +08:00
yuangongji
328be0b445
rename include/msgpack/*.h to include/msgpack/*.hpp
...
include/msgpack/sysdep.h => include/msgpack/sysdep.hpp
include/msgpack/unpack_define.h => include/msgpack/unpack_define.hpp
include/msgpack/version_master.h => include/msgpack/version_master.hpp
Use `git log --follow include/msgpack/filename.hpp` to see full log
2020-06-05 16:44:51 +08:00
yuangongji
689e6d053a
remove C part files
...
remove the following files or folders:
ci/build_cmake_embedded.sh
example/c
example/cmake
include/msgpack/predef
include/msgpack/preprocessor.hpp
include/msgpack/preprocessor
include/msgpack/v1/preprocessor.hpp
include/msgpack.h
include/msgpack/fbuffer.h
include/msgpack/gcc_atomic.h
include/msgpack/object.h
include/msgpack/pack.h
include/msgpack/pack_define.h
include/msgpack/pack_template.h
include/msgpack/predef.h
include/msgpack/sbuffer.h
include/msgpack/timestamp.h
include/msgpack/unpack.h
include/msgpack/unpack_template.h
include/msgpack/util.h
include/msgpack/version.h
include/msgpack/vrefbuffer.h
include/msgpack/zbuffer.h
include/msgpack/zone.h
msgpack_vc8.sln
msgpack_vc8.vcproj
msgpack-config.cmake.in
msgpack.pc.in
src
test/fixint_c.cpp
test/msgpack_c.cpp
test/pack_unpack_c.cpp
test/streaming_c.cpp
.gitmodules
external
QUICKSTART-C.md
2020-06-05 16:44:51 +08:00
Takatoshi Kondo
6e7deb8091
Merge pull request #875 from redboltz/update_to_330
...
Update the version to 3.3.0.
2020-06-05 17:04:41 +09:00
Takatoshi Kondo
66fa561256
Update the version to 3.3.0.
2020-06-05 16:22:34 +09:00
Takatoshi Kondo
243fb27c3c
Merge pull request #874 from ygj6/build
...
fix cannot find boost error
2020-06-05 15:43:07 +09:00
yuangongji
746e983bf3
fix cannot find boost error
2020-06-01 20:02:52 +08:00
Takatoshi Kondo
766afb90ed
Merge pull request #870 from ygj6/json
...
convert between msgpack and json via cJSON library
2020-05-24 19:12:18 +09:00
yuangongji
403567c1c5
convert between msgpack and json
2020-05-24 17:24:55 +08:00
Takatoshi Kondo
f3fe1b801e
Merge pull request #871 from nicokruithof/master
...
Fixed warning in Visual Studio
2020-05-23 16:40:35 +09:00
Takatoshi Kondo
4fdbc7518f
Merge pull request #861 from ygj6/build
...
examples of packing boundary values
2020-05-18 22:29:46 +09:00
Nico Kruithof
0dbdb3d974
Fixed warning in Visual Studio
2020-05-15 07:16:34 +02:00
yuangongji
d7d5be414f
examples of packing boundary values
2020-05-08 14:28:45 +08:00
Takatoshi Kondo
4d36456799
Merge pull request #865 from ygj6/buffer
...
vrefbuffer: set default ref_size and chunk_size
2020-05-01 13:08:32 +09:00
yuangongji
b1725d4007
vrefbuffer: set default ref_size and chunk_size
2020-04-30 19:26:07 +08:00
Takatoshi Kondo
102dba8e24
Merge pull request #860 from ygj6/build
...
fix github actions failure and use C style casts instead of C++ style casts in zbuffer.h
2020-04-16 23:38:46 +09:00
yuangongji
1a372058a6
Use C style casts instead of C++ style casts
2020-04-16 12:46:16 +08:00
yuangongji
f8b691f622
run apt-get update to fix package installation failure
2020-04-16 11:40:53 +08:00
Takatoshi Kondo
7893d4d8c9
Merge pull request #851 from igor-sadchenko/fix-gnuc-macro-warnings
...
Fixed many warnings/errors with macro __GNUC__(issue #850 )
2020-03-29 09:43:00 +09:00
Igor Sadchenko
9a3cd0c951
Fixed many warnings/errors with macro __GNUC__(issue #850 )
2020-03-26 02:03:25 +03:00
Takatoshi Kondo
46684265d5
Merge pull request #846 from ygj6/build
...
install depends via vcpkg on Windows
2020-03-09 15:02:40 +09:00
Takatoshi Kondo
9e0d87b725
Merge pull request #834 from redboltz/limit_cov_guard
...
Limited codecov trigger.
2020-03-09 14:50:04 +09:00
Takatoshi Kondo
bbc03b2b0a
Limited codecov trigger.
...
Focused coverage target to library code.
Now, codecov supports tokenless upload.
2020-03-09 11:08:33 +09:00
yuangongji
b4d28c3d9d
install depends via vcpkg on Windows
2020-03-07 15:00:28 +08:00
Takatoshi Kondo
cc1098998f
Merge pull request #839 from ygj6/build
...
add MSGPACK_CXX_ONLY option to build c++ libraries only
2020-02-19 18:22:29 +09:00
yuangongji
d9c5978958
add MSGPACK_CXX_ONLY option to build c++ libraries only
2020-02-19 09:07:16 +08:00
Takatoshi Kondo
d05daa1df6
Merge pull request #842 from ygj6/doc
...
update the install section
2020-02-18 15:07:17 +09:00
yuangongji
534466894e
update the install section
2020-02-13 17:08:46 +08:00
Takatoshi Kondo
d04520044f
Merge pull request #833 from ygj6/master
...
add coverage target and integrate to github actions
2020-01-14 12:59:29 +09:00
yuangongji
c0fb6b3b8c
integrate coverage in github actions
2020-01-11 20:05:15 +08:00
yuangongji
19df3314f4
add coverage target in cmake
2020-01-11 13:23:19 +08:00
Takatoshi Kondo
b530b7f21a
Merge pull request #831 from ygj6/master
...
use cache in github actions
2020-01-08 11:06:27 +09:00
yuangongji
ed49ea3c95
use cache in github actions
2020-01-07 20:07:37 +08:00
Takatoshi Kondo
7918c19f8f
Merge branch 'jamessan-cxx11-32bit'
2020-01-06 15:02:29 +09:00
Takatoshi Kondo
0d7caecdb5
Fixed cmake condition.
...
If MSGPACK_CXX17 is ON then build MSGPACK_CXX11 target.
2020-01-06 13:04:14 +09:00
James McCoy
f8b0ad1766
Skip timespec_pack_convert_64bit_sec_max_nano on systems where tv_sec <= 32-bit
2020-01-05 21:38:52 -05:00
James McCoy
7ed7af90b6
Fix timespec_object.*_32bit_sec tests on 32-bit platforms
...
On 32-bit unix platforms, 0xffffffffUL is a 32-bit value so the compiler
complains about converting it to a signed value.
/home/runner/work/msgpack-c/msgpack-c/test/msgpack_cpp11.cpp:1085:20: error: constant expression evaluates to 4294967295 which cannot be narrowed to type '__time_t' (aka 'long') [-Wc++11-narrowing]
timespec val1{ 0xffffffffUL, 0 };
^~~~~~~~~~~~
/home/runner/work/msgpack-c/msgpack-c/test/msgpack_cpp11.cpp:1085:20: note: insert an explicit cast to silence this issue
timespec val1{ 0xffffffffUL, 0 };
^~~~~~~~~~~~
static_cast<__time_t>( )
/home/runner/work/msgpack-c/msgpack-c/test/msgpack_cpp11.cpp:1085:20: warning: implicit conversion changes signedness: 'unsigned long' to '__time_t' (aka 'long') [-Wsign-conversion]
timespec val1{ 0xffffffffUL, 0 };
~ ^~~~~~~~~~~~
Since we're trying to test how the maximum 32-bit value that fits in
timespec.tv_sec is handled, directly use the maximum 32-bit value for
the appropriate (un)signed type used for timespec.tv_sec.
We don't just cast to the value, as the compiler suggests, because that
would result in an extremely negative value.
2020-01-05 21:38:45 -05:00
Takatoshi Kondo
4a94f836a7
Merge pull request #828 from igor-sadchenko/patch-1
...
Fixed misprint in README.md
2019-12-28 15:18:59 +09:00
Igor Sadchenko
b36e548db2
Fixed misprint in README.md
2019-12-26 14:05:33 +03:00
Takatoshi Kondo
e6c276edf3
Merge pull request #827 from redboltz/fix_825_minimal
...
Fixed #825 .
2019-12-25 15:38:01 +09:00
Takatoshi Kondo
befc3cdd0c
Supressed C4309 on MSVC.
2019-12-25 14:59:40 +09:00
Takatoshi Kondo
2e2e93ba2e
Added compiler checking to pragma.
2019-12-25 14:39:57 +09:00
Takatoshi Kondo
3b2bb56243
Fixed #825 .
...
Added verbose option to windows CIs.
Added C compiler flag operation for MSVC.
Fixed invalid /WX flag matching on MSVC at test.
2019-12-25 14:24:24 +09:00
Takatoshi Kondo
9c4562382b
Merge pull request #824 from redboltz/migrate_to_gha
...
Migrate to gha
2019-12-25 12:16:39 +09:00
Takatoshi Kondo
08b0c88c21
Limited appveyor trigger event.
2019-12-25 10:39:26 +09:00
Takatoshi Kondo
d105f97ea0
Downgraded windows version.
2019-12-25 10:31:48 +09:00
Takatoshi Kondo
bd0665bed3
Removed travis.
2019-12-23 16:55:52 +09:00
Takatoshi Kondo
8dc865d92d
Added github actions.
...
Fixed enum qualifier.
2019-12-23 16:54:14 +09:00
Takatoshi Kondo
8085ab8721
Merge pull request #823 from redboltz/update_to_3.2.1
...
Updated the version to 3.2.1.
2019-12-10 14:36:16 +09:00
Takatoshi Kondo
b36e75a42e
Updated the version to 3.2.1.
2019-12-10 12:44:07 +09:00
Takatoshi Kondo
f17f8d79c4
Merge pull request #804 from herbrechtsmeier/cmake-remove-alias-from-package-config
...
cmake: Remove alias from package config
2019-12-10 12:33:18 +09:00
Takatoshi Kondo
f89f05b883
Merge pull request #821 from tsundre/fix-msgpack_checked_call
...
Correctly check return value of snprintf
2019-12-09 15:19:42 +09:00
Takatoshi Kondo
bd5f814cb2
Merge pull request #819 from devnexen/test_warning_fixes
...
c++11 unit tests silent warning fixes proposal.
2019-12-05 08:28:00 +09:00
Torleiv Sundre
bf6cc035c7
Fix tests for MSVC <= 2013
...
Use the _TRUNCATE flag for the count parameter to _snprintf_s. Without
this, the tests for MSVC <= 2013 failed on stack corruption!
2019-12-04 20:10:42 +01:00
Torleiv Sundre
a6bf728a5c
Correctly check return value of snprintf
...
In MSGPACK_CHECKED_CALL, the return value of snprintf is incorrectly
assumed to mean success if it is less than or equal to the buffer size.
The call should only be considered a success if the return value is less
than the buffer size.
This commit adds two unit tests that illustrates the issue and fixes the
issue, making the unit tests pass.
2019-12-04 14:20:12 +01:00
David Carlier
698a482b67
c++11 unit tests silent warning fixes proposal.
2019-11-16 13:36:37 +00:00
Takatoshi Kondo
fbf5b9d74c
Merge pull request #817 from BKPepe/add_include
...
Include <sys/uio.h> in Linux
2019-11-11 07:36:40 +09:00
Josef Schlehofer
65c35caab2
Include <sys/uio.h> in Linux
...
This is needed when cross-compiling for OpenWrt.
2019-11-10 11:40:13 +01:00
Takatoshi Kondo
ff9f14742b
Merge pull request #812 from redboltz/fix_805
...
Fixed #805 .
2019-09-24 20:10:25 +09:00
Takatoshi Kondo
4b4eb83cd1
Fixed #805 .
...
Fixed fwrite return value comparison.
2019-09-24 16:43:15 +09:00
Stefan Herbrechtsmeier
7761497778
ci: add cmake tests for installed and embedded build
2019-09-21 08:22:26 +02:00
Stefan Herbrechtsmeier
6046d5c666
cmake: Remove alias from package config
...
The cmake target of an alias may not be an Imported Target.
Always build the msgpackc target and only build the msgpackc-static
target if both should be build to fix issue #801 . Thereby the type
(shared or static) of the msgpackc target depends on the build
configuration.
2019-09-20 22:10:40 +02:00
Takatoshi Kondo
83eb70d718
Merge pull request #807 from redboltz/fix_806
...
Fixed #806 .
2019-08-30 07:40:32 +09:00
Takatoshi Kondo
70f950ac05
Fixed #806 .
...
Removed `ss.str().data()` (the type of ss is std::stringstream).
Introduced variable that is const reference of `ss.str()`.
2019-08-29 20:22:10 +09:00
Takatoshi Kondo
3129326432
Merge pull request #800 from redboltz/fix_799
...
Fixed #799 .
2019-07-28 16:09:11 +09:00
Takatoshi Kondo
799cd15107
Fixed #799 .
...
Fixed C++ `int main()` in the documents.
2019-07-28 14:45:38 +09:00
Takatoshi Kondo
942965ee87
Merge pull request #797 from probonopd/patch-1
...
Add "defined(__HAIKU__)", closes #796
2019-07-14 10:22:13 +09:00
probonopd
a123053823
Add "defined(__HAIKU__)", closes #796
2019-07-13 19:14:37 +00:00
Takatoshi Kondo
c7603fbbd1
Merge pull request #795 from redboltz/fix_794
...
Fixed #794 .
2019-07-12 23:38:13 +09:00
Takatoshi Kondo
6954e01338
Fixed #794 .
...
Buffer is expanded not only Z_OK, but also Z_BUF_ERROR case.
2019-07-12 21:55:50 +09:00
Takatoshi Kondo
7e23ec496a
Merge pull request #793 from Bak-Jin-Hyeong/remove_unnecessary_lines
...
Remove unnecessary lines from 'parse.hpp'
2019-07-10 21:23:26 +09:00
박진형2 [ungeziefer]
bae148bd76
Remove unnecessary lines from 'parse.hpp'
2019-07-10 19:54:29 +09:00
Takatoshi Kondo
3fcecf7099
Merge pull request #792 from redboltz/cpp_fix_as_776
...
Replaced integer overflow with efficient way.
2019-07-07 20:38:14 +09:00
Takatoshi Kondo
7d994630d2
Replaced integer overflow with efficient way.
...
Same fix as #776 on C.
2019-07-07 18:13:31 +09:00
Takatoshi Kondo
29b9505cb7
Merge pull request #785 from redboltz/update_version_3.2.0
...
Updated the version to 3.2.0.
2019-05-27 22:19:57 +09:00
Takatoshi Kondo
e07d774004
Merge pull request #784 from redboltz/more_warning_fix
...
Fixed warnings.
2019-05-27 21:34:47 +09:00
Takatoshi Kondo
ff77227e10
Updated the version to 3.2.0.
2019-05-27 18:37:24 +09:00
Takatoshi Kondo
de99222801
Fixed warnings.
2019-05-27 17:35:22 +09:00
Takatoshi Kondo
7cdc5b88e3
Merge pull request #780 from redboltz/fix_774
...
Fixed #774 .
2019-05-27 17:05:55 +09:00
Takatoshi Kondo
fbdf16db09
Merge pull request #783 from wkaluza/pr_header_circular_reference
...
Fix header circular reference
2019-05-27 17:05:40 +09:00
Wojciech Kaluza
41b2af8884
Fix self-including header
2019-05-22 20:38:36 +01:00
Takatoshi Kondo
9389912eaf
Merge pull request #776 from dcleblanc/master
...
Fix for issue 775
2019-05-12 21:12:15 +09:00
Takatoshi Kondo
d5242a7d8c
Merge pull request #781 from redboltz/add_timespec_for_cpp
...
Added timespec support for C++11 or later.
2019-05-09 16:11:10 +09:00
Takatoshi Kondo
d3fecce359
Added timespec support for C++11 or later.
2019-05-09 14:46:45 +09:00
David LeBlanc
7a70d74971
Use a #define to only check for integer overflow when it is actually
...
possible
2019-05-08 18:49:55 -07:00
David LeBlanc
fcf89fe901
Fix tabs, also attempt work-around for compile time constant conditional
...
warning
2019-05-08 17:59:10 -07:00
Takatoshi Kondo
ec8c0bc1c1
Fixed #774 .
...
Added checking code for snprintf return value.
2019-05-07 14:00:35 +09:00
David LeBlanc
a2f3689865
Older compilers don't allow declaring variables other than at the top of
...
the block if it is a C file.
2019-05-06 19:28:25 -07:00
David LeBlanc
2d54c0e918
Change integer overflow check to conform with spec
2019-05-06 17:29:40 -07:00
Takatoshi Kondo
ce088e7e0a
Merge pull request #779 from RPG3D/master
...
1.fix error on build msgpack with UE4
2019-05-04 19:18:35 -07:00
RPG3D
a1b86507da
keep compatibility
2019-05-04 17:12:15 +08:00
RPG3D
9235d1acae
1.fix error on build msgpack with UE4
2019-05-02 14:57:15 +08:00
Takatoshi Kondo
12172e7dc7
Merge pull request #778 from redboltz/fix_777
...
Fixed #777 .
2019-05-01 05:29:31 -07:00
Takatoshi Kondo
6a08446b3d
Removed noexcept overload.
2019-05-01 18:00:07 +09:00
Takatoshi Kondo
c93a42b5f4
Separate C++03 and 11.
2019-05-01 17:20:39 +09:00
Takatoshi Kondo
8febbfd9f5
Fixed noexcept.
2019-05-01 16:42:15 +09:00
Takatoshi Kondo
33a8d8c30f
Added noexcept overload for C++11 and later.
2019-05-01 16:08:17 +09:00
Takatoshi Kondo
ef5bcadd95
Fixed #777 .
...
Removed SFINAE. Use size type extractor.
2019-05-01 14:10:34 +09:00
David LeBlanc
fadc615f4e
Fix typo
2019-04-19 14:08:09 -07:00
David LeBlanc
eff6f5a2fd
Two more tabs
2019-04-11 15:58:49 -07:00
David LeBlanc
ed30252bdc
Spaces not tabs
2019-04-11 15:57:25 -07:00
David LeBlanc
2deed25da0
Fix for issue 775
...
Fix possibly incorrect integer overflow check with an efficient correct check. Not fixing the issue where size == 0, unsure if this is by design, or what error to return if not.
2019-04-11 15:54:12 -07:00
Takatoshi Kondo
419877cf3a
Merge pull request #770 from redboltz/fix_wconversion
...
Added -Wconversion support for C++.
2019-03-26 08:34:02 +09:00
Takatoshi Kondo
17267ed475
Added -Wconversion support for C++.
2019-03-25 19:48:39 +09:00
Takatoshi Kondo
b759f5bdf7
Merge pull request #764 from redboltz/fix_763
...
Fix 763
2019-02-12 17:12:13 +09:00
Takatoshi Kondo
f72372314e
Fixed #763 .
...
Fixed aligned_zone_size_visitor size passing.
Replaced by value with by reference.
2019-02-12 12:53:07 +09:00
Takatoshi Kondo
530561eec0
Added tests for msgpack::object::clone()
.
...
Converting C++ types from cloned object after original zone is destroyed.
2019-02-12 12:53:00 +09:00
Takatoshi Kondo
aec88c06a0
Merge pull request #757 from wbenny/master
...
Add support for Windows Drivers
2019-01-21 07:26:15 +09:00
Petr Benes
09e06a8cb7
Add support for Windows Drivers
2019-01-17 17:44:57 +01:00
Takatoshi Kondo
084db3fcf1
Merge pull request #755 from redboltz/fix_754
...
Fixed #754 .
2019-01-08 22:42:00 +09:00
Takatoshi Kondo
709d6f4fdd
Fixed #754 .
...
Fixed `msgpack::object` packing visitor and equal comparison visitor.
NOTE:
In the function `visit_ext(const char* v, uint32_t size)`, v contains
type and size means buffer `v` size. See #175 .
2019-01-05 09:41:58 +09:00
Takatoshi Kondo
27cf578e8c
Merge pull request #753 from redboltz/fix_752
...
Fixed #752 .
2018-12-20 12:59:23 +09:00
Takatoshi Kondo
7001679959
Fixed #752 .
...
Moved reserved_buffer to appropriate location.
2018-12-20 08:16:15 +09:00
Takatoshi Kondo
daa78b4606
Merge pull request #747 from redboltz/fix_746
...
Fixed #746 .
2018-11-23 19:56:16 +09:00
Takatoshi Kondo
b893f7750c
Fixed #746 .
...
Eliminated redundant zone allocation in unpacking process.
ARRAY and MAP is construced on the zone.
STR, BIN, and EXT refer to unpack buffer, and the buffer is reference
counted via zone (finalizer).
So zone is only needed if those types are appeared during unpacking
process.
I set zone to NULL by default. And the context has the pointer to
pointer to the zone. If the context meets ARRAY, MAP, STR, BIN, or EXT,
and zone (via pointer) is NULL, then allocate new zone.
It is lazy zone allocation strategy.
2018-11-23 11:08:08 +09:00
Takatoshi Kondo
8792f42f8d
Merge pull request #743 from redboltz/fix_741
...
Fixed #741 .
2018-10-17 09:08:29 +09:00
Takatoshi Kondo
4f9ec65713
Fixed #741 .
...
Fixed msgpack::type::tuple base class conversion.
Fixed C++03 msgpack::type::make_tuple.
2018-10-16 22:42:50 +09:00
Takatoshi Kondo
db54c78ed4
Merge pull request #737 from redboltz/fix_735
...
Added wstring adaptor.
2018-09-15 18:03:23 +09:00
Takatoshi Kondo
1155babda8
Added wstring adaptor.
2018-09-12 16:17:14 +09:00
Takatoshi Kondo
83a82e3eb5
Merge pull request #727 from redboltz/update_311
...
Updated the version to 3.1.1.
2018-09-09 15:27:47 +09:00
Takatoshi Kondo
aa9c73352c
Added more fixes.
2018-09-09 13:51:43 +09:00
Takatoshi Kondo
df9e003b35
Merge pull request #736 from redboltz/force_set_endian
...
Added enforcing endian functionality.
2018-09-08 22:06:02 +09:00
Takatoshi Kondo
f6ddc9b85a
Added enforcing endian functionality.
2018-09-08 20:06:00 +09:00
Takatoshi Kondo
11cfeeec92
Merge pull request #733 from tbeu/add-int-overflow-check-to-vrefbuffer
...
Adding int overflow checks to vrefbuffer
2018-09-07 09:04:22 +09:00
tbeu
d72765870a
Move overflow check up
2018-09-06 15:09:52 +02:00
jwang
349c133171
Fix malloc size
2018-09-05 10:28:22 +02:00
tbeu
c056026dad
Fix memory leaks
2018-09-04 22:24:40 +02:00
jwang
0421dabc1e
removing unused vars
2018-09-03 22:23:54 +02:00
jwang
60930f4b12
adding unit tests and fixing same overflow issue in hpp files
2018-09-03 22:23:53 +02:00
jwang
b3dfe28be4
adding int overflow checks to vrefbuffer
2018-09-03 22:23:52 +02:00
jwang
e703d8a2f7
adding int overflow checks to vrefbuffer
2018-09-03 22:23:52 +02:00
Takatoshi Kondo
801f61c12c
Merge pull request #732 from tbeu/fix-static-cast
...
Fix VS2010 warning C4309: 'static_cast' : truncation of constant value
2018-09-03 17:20:52 +09:00
Takatoshi Kondo
a3e75a0709
Merge pull request #731 from tbeu/fix-return-types
...
Fix VS2010 build errors on return types
2018-09-03 17:20:24 +09:00
tbeu
92d34cbd79
Fix VS2010 warning C4309: 'static_cast' : truncation of constant value
2018-09-02 20:36:48 +02:00
tbeu
c99fd62ae6
Fix VS2010 build errors on return types
2018-09-02 19:55:33 +02:00
Takatoshi Kondo
a3986b3bdc
Merge pull request #730 from froydnj/update-predef-and-preprocessor
...
update boost predef and preprocessor from 1.61.0 to 1.68.0
2018-09-01 21:31:58 +09:00
Takatoshi Kondo
7fed49e6fe
Merge branch 'froydnj-update-predef-and-preprocessor'
2018-09-01 20:36:18 +09:00
Takatoshi Kondo
005e06e00a
Updated appveyor's boost.
2018-09-01 19:45:14 +09:00
Nathan Froyd
b6d4bb5cb0
update boost predef and preprocessor from 1.61.0 to 1.68.0
...
...via `git submodule foreach git pull origin boost-1.68.0` and
initializing cmake.
Fixes #728 .
2018-08-31 14:57:19 -04:00
Takatoshi Kondo
f57bfd998b
Updated the version to 3.1.1.
2018-08-28 00:17:42 +09:00
Takatoshi Kondo
e8d3387a04
Merge pull request #726 from redboltz/fix_724
...
Fixed #724 .
2018-08-28 00:13:49 +09:00
Takatoshi Kondo
53d2ea9ad3
Fixed #724 .
...
Fixed type mismatch in msgpack_timestamp.
Added 64bit singed postfix.
2018-08-27 22:40:04 +09:00
Takatoshi Kondo
b6803a5fec
Merge pull request #723 from redboltz/update_readme
...
Updated readme.
2018-08-21 22:30:54 +09:00
Takatoshi Kondo
210d3ce390
Updated readme.
2018-08-21 07:13:38 +09:00
Takatoshi Kondo
a350e0714e
Merge pull request #716 from redboltz/update_310
...
Updated the version to 3.1.0
2018-08-21 06:43:27 +09:00
Takatoshi Kondo
72757feae4
Updated the version to 3.1.0
2018-08-20 21:58:54 +09:00
Takatoshi Kondo
fe2346efa1
Merge pull request #721 from dennisklein/master
...
Export an interface target for the C++ header-only library
2018-08-17 07:41:31 +09:00
Takatoshi Kondo
43ae287be3
Merge pull request #722 from redboltz/fix_build_shared_libs
...
Fixed BUILD_SHARED_LIBS meaning.
2018-08-17 07:40:53 +09:00
Takatoshi Kondo
b804e12dec
Fixed BUILD_SHARED_LIBS meaning.
...
There are three switches to build static/shared libraries.
Here is the logic.
If BUILD_SHARED_LIBS is defined
If BUILD_SHARED_LIBS is ON
build only shared-library
Else
build only static-library
Endif
Else
If MSGPACK_ENABLE_SHARED is ON (default)
build shared-library
Endif
If MSGPACK_ENABLE_STATIC is ON (default)
build static-library
Endif
Endif
Here is common settings:
If you want to build both static/shared libraries, don't set switches.
If you want to build only shared-library, set BUILD_SHARED_LIBS=ON.
If you want to build only static-library, set BUILD_SHARED_LIBS=OFF.
2018-08-15 16:39:21 +09:00
Dennis Klein
99c221ad01
Export an interface target for the C++ header-only library
2018-08-13 20:54:29 +02:00
Takatoshi Kondo
3a615bcf44
Merge pull request #720 from redboltz/fix_711
...
Removed warnings.
2018-08-12 22:54:28 +09:00
Takatoshi Kondo
87863c1696
Removed warnings.
2018-08-12 20:59:00 +09:00
Takatoshi Kondo
45defd565a
Merge pull request #719 from redboltz/add_byte
...
Add byte
2018-08-12 20:48:19 +09:00
Takatoshi Kondo
f1726cef0d
Updated travis-ci environment.
2018-08-12 18:31:44 +09:00
Takatoshi Kondo
8a788f3a48
Added C++17 std::byte
support.
...
`std::byte` is mapped to
https://github.com/msgpack/msgpack/blob/master/spec.md#int-format-family .
`std::vector<std::byte>` and `std::byte[]` are mapped to https://github.com/msgpack/msgpack/blob/master/spec.md#bin-format-family .
2018-08-12 16:23:39 +09:00
Takatoshi Kondo
7710868556
Merge pull request #718 from seratch/fix-typo
...
Fix misspelled words in comments
2018-08-11 17:23:35 +09:00
Kazuhiro Sera
0b53833856
Fix misspelled words in comments, detected by github.com/client9/misspell
2018-08-11 11:28:40 +09:00
Takatoshi Kondo
43c643bab6
Merge pull request #717 from redboltz/fix_lack_of_so_version
...
Added so version if shared object only build.
2018-08-11 09:41:31 +09:00
Takatoshi Kondo
ac64fcace8
Added so version if shared object only build.
...
Fixed MSGPACK_INSTALLTARGETS list manipulation.
2018-08-10 19:39:43 +09:00
Takatoshi Kondo
84ba0c7b4b
Merge pull request #704 from owent-contrib/master
...
Fix MSGPACK_DEPRECATED for MSVC 1914 with /Zc:__cplusplus
2018-08-09 17:48:26 +09:00
Takatoshi Kondo
f79606d9ff
Merge pull request #713 from redboltz/fix_703
...
Fixed #703 .
2018-08-08 21:50:37 +09:00
Takatoshi Kondo
3aaadb9b12
Fixed #703 .
...
Added no build static-library option.
2018-08-08 20:14:48 +09:00
Takatoshi Kondo
8a3a11f123
Merge pull request #710 from redboltz/fix_709
...
Fixed #709 .
2018-07-29 09:22:26 +09:00
Takatoshi Kondo
32f1f0edf2
Fixed #709 .
...
Renamed parameter name on macros. It minimizes conflict with
MSGPACK_DEFINE* user defined arguments.
2018-07-29 07:45:57 +09:00
Takatoshi Kondo
5bd75905cb
Merge pull request #707 from redboltz/ts_c
...
Added timestamp minimal support for C.
2018-07-22 22:06:58 +09:00
Takatoshi Kondo
eebdc007a9
Added timestamp minimal support for C.
2018-07-22 20:38:36 +09:00
Takatoshi Kondo
3aae588a6a
Merge pull request #706 from redboltz/fix_638_3
...
Implemented #638 .
2018-07-22 18:23:35 +09:00
Takatoshi Kondo
cb2dcb19b9
Implemented #638 .
...
Added Time Stamp support.
2018-07-22 16:25:23 +09:00
Takatoshi Kondo
c58a565366
Merge pull request #705 from redboltz/fix_697
...
Fixed #697 .
2018-07-22 10:27:39 +09:00
Takatoshi Kondo
93b944eec4
Fixed #697 .
...
Removed out of range array dereference.
2018-07-21 20:42:40 +09:00
owent
7340f1e9c8
Fix MSGPACK_DEPRECATED for MSVC 1914 with /Zc:__cplusplus, @see https://docs.microsoft.com/cpp/build/reference/zc-cplusplus
2018-07-17 21:25:20 +08:00
Takatoshi Kondo
0a65c443a2
Merge pull request #694 from oleksak/patch-1
...
Update object.hpp
2018-05-28 07:28:36 +09:00
Oleksandr Kravchenko
bae6a8db57
Update object.hpp
...
a little bug fix
2018-05-26 19:59:01 +03:00
Takatoshi Kondo
ddb320197a
Merge pull request #689 from derwolfe/san-2
...
Sanitizer build for fuzzers
2018-05-21 19:25:30 +09:00
Chris Wolfe
dc51f6493b
add/modify cmake and travis to get the regression tests built with sanitizers
2018-05-19 10:59:59 -05:00
Chris Wolfe
c027909acc
add a test file for regression tests, cmakelist.txt to get it build correctly
2018-05-19 10:58:45 -05:00
Chris Wolfe
2bd56533fa
add regression test cases
2018-05-19 10:57:50 -05:00
Takatoshi Kondo
c07452a7a2
Merge pull request #687 from jamessan/doxygen-paths
...
Strip the build path from generated documentation
2018-05-13 20:55:58 +09:00
James McCoy
8701aeec30
Strip the build path from generated documentation
...
Since FULL_PATH_NAMES = YES, Doxygen includes the full build path to the
file in the documentation. This is most prevalent in the <title>
attribute for a file.
Setting STRIP_FROM_PATH = ${CMAKE_CURRENT_SOURCE_DIR}/include means that
only the relevant portion of the path (that which the user would need to
use) is included.
--- a/msgpack_8h.html 2018-05-12 14:03:34.098715879 -0400
+++ b/msgpack_8h.html 2018-05-12 14:04:17.386349607 -0400
@@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
-<title>MessagePack for C: /home/jamessan/src/debian.org/pkg-vim/msgpack-c/include/msgpack.h File Reference</title>
+<title>MessagePack for C: msgpack.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
2018-05-12 14:04:48 -04:00
Takatoshi Kondo
2c4f2b890e
Merge pull request #686 from redboltz/fix_685
...
Fixed #685 .
2018-05-12 16:15:22 +09:00
Takatoshi Kondo
f1acd78e54
Fixed #685 .
...
Added fuzz directory to release tar ball.
2018-05-12 14:48:31 +09:00
Takatoshi Kondo
49d22b7d28
Merge pull request #683 from redboltz/fix_658
...
Fixed #658 .
2018-05-10 22:50:54 +09:00
Takatoshi Kondo
96133c8dd9
Fixed #658 .
...
Added include file checking.
2018-05-10 19:02:24 +09:00
Takatoshi Kondo
bd18a36dae
Merge pull request #681 from redboltz/update_doc_to_v3.0.0
...
Update the document for the version 3.0.0.
2018-05-09 21:40:30 +09:00
Takatoshi Kondo
3fe630769e
Update the document for the version 3.0.0.
2018-05-09 16:16:50 +09:00
Takatoshi Kondo
2f80758889
Merge pull request #677 from komainu8/add_dll_export
...
Add dll export for msvc
2018-04-30 18:15:59 +09:00
Takatoshi Kondo
9f3efe9e54
Merge pull request #678 from derwolfe/lower-test-limit-oom
...
Lower limits for the fuzzer inputs
2018-04-30 09:25:24 +09:00
Chris Wolfe
6e44edf290
lower the input limits, I might need to push a config change to oss-fuzz as well to lower the max input size
2018-04-29 10:49:56 -05:00
Yasuhiro Horimoto
d28cbf32b9
Add dll export for msvc
2018-04-27 18:24:17 +09:00
Takatoshi Kondo
48d226e97c
Merge pull request #676 from redboltz/remove_object_pack_recursion
...
Removed recursion from msgpack::object packing and stringize.
2018-04-27 06:33:51 +09:00
Takatoshi Kondo
64698e8e8c
Removed other recursions from msgpack::object.
...
Fixed start_map_item and start_array_item calling point.
Supported visitor aborting.
2018-04-27 00:54:55 +09:00
Takatoshi Kondo
e0d098641c
Merge pull request #674 from derwolfe/fix-fuzzer
...
Fix the fuzzer by setting limits for depth and ext.
2018-04-26 21:49:04 +09:00
Takatoshi Kondo
06f4b05487
Removed #if 0 codes.
2018-04-26 20:18:20 +09:00
Takatoshi Kondo
122fce5aee
Merge pull request #675 from derwolfe/add-fuzz-corpus
...
move the seed corpus in repo
2018-04-26 20:08:58 +09:00
Takatoshi Kondo
e3f5281903
Removed recursion from msgpack::object packing and stringize.
...
Changed json expected strings.
Before this commit, json output has redundant white space.
The commit remove it. Semantically no difference.
2018-04-26 19:36:48 +09:00
Chris Wolfe
88e94e3776
move the seed corpus in repo
2018-04-25 15:47:53 -05:00
Chris Wolfe
95275ff16e
Fix the fuzzer by setting limits for depth and ext.
...
This is a short lived bug in the fuzzer implementation in which the
limits were not set correctly.
Credit to OSS-Fuzz
2018-04-25 08:00:47 -05:00
Takatoshi Kondo
4cb938ed18
Merge pull request #673 from redboltz/fix_671
...
Fixed #671 .
2018-04-25 12:52:12 +09:00
Takatoshi Kondo
5f3e62461e
Merge pull request #672 from derwolfe/add-fuzzer-and-test
...
Add the fuzzer from oss-fuzz and a test that exercises it
2018-04-25 11:08:42 +09:00
Takatoshi Kondo
ec239933db
Fixed #671 .
...
Added STR type check to define_map.
2018-04-25 10:43:26 +09:00
Chris Wolfe
de59b393c7
conform to project norms and naming conventions
2018-04-24 20:04:54 -05:00
Chris Wolfe
b02371efe5
no reason to have this declaration
2018-04-24 18:09:15 -05:00
Chris Wolfe
f34289fdfd
remove newline that I accidentally added
2018-04-24 17:17:49 -05:00
Chris Wolfe
584478a4f1
fuzzers are cpp11 only at the moment
2018-04-24 15:22:20 -05:00
Chris Wolfe
700ec688f7
add the fuzzer from oss-fuzz and a test that exercises it
2018-04-24 15:05:09 -05:00
Takatoshi Kondo
a133c1d393
Merge pull request #670 from redboltz/fix_variadic_template
...
Added missing variadic template parameters.
2018-04-12 08:03:02 +09:00
Takatoshi Kondo
6ba9a58648
Added missing variadic template parameters.
2018-04-12 06:36:32 +09:00
Takatoshi Kondo
bb92d326c8
Merge pull request #668 from redboltz/fix_missing_install_files
...
Fixed #667 .
2018-04-11 11:26:12 +09:00
Takatoshi Kondo
1e13dadf1f
Added install file comparison script.
2018-04-11 09:49:47 +09:00
Takatoshi Kondo
7b271c2af2
Fixed #667 .
2018-04-11 08:52:16 +09:00
Takatoshi Kondo
c3f4e52bdb
Merge pull request #666 from redboltz/fix_663_and_update_to_v3
...
Fix 663 and update to v3
2018-04-09 06:20:42 +09:00
Takatoshi Kondo
458b4c0363
Removed redundant version namespace qualification.
2018-04-08 23:24:17 +09:00
Takatoshi Kondo
f8dc0f0d04
Fixed #663 .
2018-04-08 22:29:36 +09:00
Takatoshi Kondo
347658cdc1
Updated the version to 3.0.0.
...
See https://github.com/msgpack/msgpack-c/pull/639#issuecomment-353786498
So I updated the version to 3.0.0.
In the version 2.x, it keeps the original behavior.
2018-04-08 22:27:45 +09:00
Takatoshi Kondo
427a6e7313
Revert "Fixed #637."
...
This reverts commit 5ece2ef2c7
.
2018-04-06 07:38:58 +09:00
Takatoshi Kondo
7f76a3caf0
Merge pull request #661 from Leo3738/master
...
Small grammatical changes made to README.md
2018-04-04 22:55:39 +09:00
Takatoshi Kondo
40539727e6
Merge branch 'kraj-master'
2018-04-04 22:52:56 +09:00
Takatoshi Kondo
30e56d0a45
Merge branch 'master' of https://github.com/kraj/msgpack-c into kraj-master
2018-04-04 21:11:56 +09:00
Takatoshi Kondo
8eef2a245b
Merge branch 'cableramki-master'
2018-04-04 18:23:00 +09:00
Takatoshi Kondo
2bcfe2fdb0
Merge branch 'master' of https://github.com/cableramki/msgpack-c into cableramki-master
2018-04-04 15:55:35 +09:00
Takatoshi Kondo
2b49e62b3c
Merge branch 'utkarsh009-master'
2018-04-04 15:54:09 +09:00
Takatoshi Kondo
bf70a36a1d
Merge branch 'master' of https://github.com/utkarsh009/msgpack-c into utkarsh009-master
2018-04-04 14:04:00 +09:00
Takatoshi Kondo
eb92058cf4
Merge branch 'Elv13-master'
2018-04-04 14:00:48 +09:00
Takatoshi Kondo
423eaf25fb
Removed -O3 -g -Werror options from CmakeLists.txt.
...
Added -g -Werror options to .travis.yml.
2018-04-04 13:07:21 +09:00
Takatoshi Kondo
280abe852c
Merge pull request #662 from redboltz/update_boost_on_travis
...
Update boost on travis
2018-04-04 12:18:00 +09:00
Takatoshi Kondo
c91307aaa1
Merge branch 'master' of https://github.com/Elv13/msgpack-c into Elv13-master
2018-04-04 12:13:56 +09:00
Takatoshi Kondo
88ffd08087
Supported boost 1.66.0 or later on the examples.
2018-04-04 07:44:49 +09:00
Takatoshi Kondo
bd337129c6
Updated the boost version to 1.66.0 on travis-ci.
2018-04-04 07:20:08 +09:00
Ramki A
1f5cb86366
Update unpack_decl.hpp
2018-04-02 17:58:04 -07:00
Ramki A
0d39c577d8
Update unpack.hpp
2018-04-02 17:57:52 -07:00
Ramki A
7e66dc28f0
Update unpack_decl.hpp
2018-04-02 17:57:25 -07:00
Ramki A
bec47a59f0
Update unpack.hpp
2018-04-02 17:56:57 -07:00
Leo3738
064f854ddf
Small grammatical changes made to README.md
2018-04-02 15:08:52 -07:00
Khem Raj
a05d92ae85
Fix -Werror=class-memaccess
...
Casting to void* make gcc happy since its upset about
object types and rightly so
Fixes
'void* memcpy(void*, const void*, size_t)' copying an object of non-trivial type 'struct msgpack::v2::object' from an array of 'const msgpack_object' {aka 'const struct msgpack_object'} [-Werror=class-memaccess]
Signed-off-by: Khem Raj <raj.khem@gmail.com >
2018-04-01 19:55:38 -07:00
Ananthakrishnan
1fdfde5d5f
Fixed #elif syntax.
2018-03-30 15:30:49 -07:00
Ananthakrishnan
b1620f1f6a
Fixed Travis Mac OS build.
2018-03-30 15:14:59 -07:00
Ramki Ananthakrishnan
f789635ddc
Fixed Coverity error due to missing header.
2018-03-29 15:09:19 -07:00
Utkarsh Anand
f65c26e280
Include <sys/uio.h> in NetBSD too.
...
This was needed for neovim
2018-03-28 20:18:05 +05:30
Emmanuel Lepage Vallée
579212996f
build: Do not set -g, -O3 and -Werror CFLAGS
...
Hello, here are a few changes to the default CFLAGS
## Why Werror
With each new compiler version, your code "break" and fail to compile. It is true that it's a sometime a "bug" in the code and need visibility to get fixed. However, Werror should *always* be a local CFLAGS and not a project one, see Google for endless people arguing back and forth and removing Werror is now the prevalent winner of that argument. In the latest GCC, it fails to compile because the fwrite result in unchecked. Even if you fix this in new releases, you cannot fix the past and all existing releases used in stable products suddenly fail to compile, wasting everybody time.
## Why -g
This should be decided by the one who compiles the code. Some people want small and pre-stripped binaries and appending this to the CFLAGS breaks the standard way of achieving this. Prepend it if you wish, but please do not append it.
## Why -O3
On many systems with limited cache or higher memory latency, `O3` is slower than `O2`, so IMHO it should not be hardcoded. In my case I used `Os` and it's faster. The `O` value should be left to the system, not hardcoded.
2017-12-12 01:26:22 -05:00
Takatoshi Kondo
208595b262
Merge pull request #639 from redboltz/fix_637
...
Fixed #637 .
2017-11-28 08:05:43 +09:00
Takatoshi Kondo
83a4b89818
Merge pull request #645 from redboltz/fix_644
...
Fixed #644 .
2017-11-14 19:04:03 +09:00
Takatoshi Kondo
d46f220737
Removed unused code.
2017-11-12 12:31:17 +09:00
Takatoshi Kondo
b4db293181
Fixed #644 .
...
Added `as()` checking to MSGPACK_DEFINE family.
2017-11-11 15:44:31 +09:00
Takatoshi Kondo
d1eac600e9
Merge pull request #643 from redboltz/fix_642
...
Fixed #642 .
2017-11-10 12:15:05 +09:00
Takatoshi Kondo
7e758ca053
Fixed #642 .
...
Fixed documentation.
2017-11-09 10:40:43 +09:00
Takatoshi Kondo
db6d4f2003
Merge pull request #641 from redboltz/fix_640
...
Fixed #640 .
2017-11-04 15:43:02 +09:00
Takatoshi Kondo
1ba46a30ce
Fixed #640 .
...
Replaced comma with semi colon.
Unified cording style.
2017-11-04 12:55:22 +09:00
Takatoshi Kondo
5ece2ef2c7
Fixed #637 .
...
<<< Breaking change >>>
In the functions unpack() and parse(),
Old behavior: If any parse error is happend, offset is NOT updated.
New behavior: If any parse error is happend, offset is updated to the
position the error happened.
It helps MessagePack format error analysis.
If you want to old behavior, copy the original value of offset and then call unpack()
and/or parse().
2017-10-22 18:22:41 +09:00
Takatoshi Kondo
9513734040
Merge pull request #635 from sztomi/sztomi/objhandle_ops
...
Added * and -> operators to object_handle
2017-10-14 10:54:28 +09:00
sztomi
d452625ed1
Added * and -> operators to object_handle
2017-10-09 20:23:25 +02:00
Takatoshi Kondo
b02c6beb4d
Merge pull request #634 from redboltz/fix_trusty
...
Fix trusty
2017-10-09 18:39:39 +09:00
Takatoshi Kondo
06c2896def
Added symbolic link.
2017-10-09 15:20:29 +09:00
Takatoshi Kondo
724db8ed89
Added zlib1g-dev for 32bit build.
2017-10-09 14:29:47 +09:00
Takatoshi Kondo
fa48078a52
Merge pull request #631 from redboltz/fix_travis
...
Set `precise` explicitly to fix 32bit zlib missing problem.
2017-10-01 23:38:21 +09:00
Takatoshi Kondo
d8ad85fa8c
Set precise
explicitly to fix 32bit zlib missing problem.
2017-10-01 21:25:06 +09:00
Takatoshi Kondo
cc3b895449
Merge pull request #630 from samdoshi/patch-1
...
Don't sudo with brew in QUICKSTART-C.md
2017-10-01 17:45:36 +09:00
Sam Doshi
384242e5eb
Don't sudo with brew in QUICKSTART-C.md
2017-10-01 08:29:46 +01:00
Takatoshi Kondo
7a98138f27
Merge pull request #625 from redboltz/update_to_215
...
Updated the version to 2.1.5.
2017-08-05 00:02:07 +09:00
Takatoshi Kondo
cd4e0bda57
Updated the version to 2.1.5.
...
Version 2.1.4 will be removed.
See https://github.com/msgpack/msgpack-c/issues/623
2017-08-04 23:07:27 +09:00
Takatoshi Kondo
1ad2db0c42
Merge pull request #624 from mkaes/master
...
Add defines for QNX build
2017-08-04 22:37:44 +09:00
Michael Kaes
96a76a7a5c
Add defines for QNX build
2017-08-04 14:41:37 +02:00
Takatoshi Kondo
bc964bd847
Merge pull request #622 from redboltz/add_version_updater
...
Added version updating script.
2017-08-04 08:14:43 +09:00
Takatoshi Kondo
12604b5c8e
Added version updating script.
2017-08-04 08:13:48 +09:00
Takatoshi Kondo
7c67109396
Updated README.
2017-08-04 07:18:17 +09:00
Takatoshi Kondo
fd4e28f23d
Merge pull request #621 from redboltz/v2.1.4
...
Updated the version to 2.1.4.
2017-08-03 23:59:16 +09:00
Takatoshi Kondo
2098062613
Updated the version to 2.1.4.
2017-08-03 22:46:40 +09:00
Takatoshi Kondo
22bc707035
Merge pull request #619 from msgpack/fix_fusion_conflict
...
Fixed conflict between boost fusion sequence and std::tuple/std::pair.
2017-07-26 11:30:43 +09:00
Takatoshi Kondo
7ad743f2da
Fixed conflict between boost fusion sequence and std::tuple/std::pair.
2017-07-26 10:24:17 +09:00
Takatoshi Kondo
315bbd4b40
Merge branch 'chshaob1-alignment'
2017-07-24 08:13:43 +09:00
Takatoshi Kondo
288a6b2e31
Fixed zone expansion algorithm.
2017-07-23 19:12:17 +09:00
Takatoshi Kondo
a0e4294b5a
Set MSGPACK_ZONE_ALIGNOF(char) explicitly.
...
It makes efficient zone allocation.
If it was omitted, the default alignment was applied. It was inefficient.
2017-07-23 19:11:12 +09:00
Takatoshi Kondo
64baa15f8e
Fixed aligned size.
2017-07-22 15:35:02 +09:00
Takatoshi Kondo
354ee5b9a3
Merge branch 'alignment' of https://github.com/chshaob1/msgpack-c into chshaob1-alignment
2017-07-22 15:28:12 +09:00
Takatoshi Kondo
2ddd79499c
Merge pull request #617 from redboltz/partial_fix_460
...
Partially fixed #460 .
2017-07-20 14:16:07 +09:00
Takatoshi Kondo
7f0614e998
Merge branch 'clarkli86-master'
2017-07-20 11:24:50 +09:00
Takatoshi Kondo
150d74508e
Fixed msgpack_unpack_next(), C interface, return value.
2017-07-20 11:23:01 +09:00
Takatoshi Kondo
8674c821c4
Merge branch 'master' of https://github.com/clarkli86/msgpack-c into clarkli86-master
2017-07-20 11:18:38 +09:00
Takatoshi Kondo
10be66712d
Partially fixed #460 .
...
If msgpack-c compiles on "sparc" platform, then define
MSGPACK_ZONE_ALIGN=8 macro.
It allocates 8byte (64bit) alignment memory on zone allocating.
2017-07-20 11:00:16 +09:00
Clark Li
2698cfc254
Fix return type in C quickstart examples
2017-07-18 23:22:56 +09:30
Takatoshi Kondo
333ee98ab2
Merge pull request #613 from redboltz/fix_612
...
Fixed #612
2017-07-13 18:58:59 +09:00
Takatoshi Kondo
156e315394
Fixed #612
...
Removed visit_float() and added visit_float32() and visit_float64()
from/to unpack visitor.
2017-07-11 13:51:51 +09:00
Takatoshi Kondo
01fedf847b
Merge pull request #611 from redboltz/fix_msvc_warning
...
Fixed msvc2015.
2017-07-04 08:49:56 +09:00
Takatoshi Kondo
56db4475f2
Fixed msvc2015.
2017-07-04 07:44:03 +09:00
Takatoshi Kondo
f065c2a447
Merge pull request #610 from redboltz/add_asio_examples
...
Added boost asio examples.
2017-07-03 22:48:55 +09:00
Takatoshi Kondo
ba4d8df63e
Added boost asio examples.
2017-07-03 21:41:39 +09:00
Takatoshi Kondo
c00584281f
Merge pull request #609 from redboltz/updated_to_2.1.3
...
Updated to version 2.1.3.
2017-06-15 23:58:21 +09:00
Takatoshi Kondo
45a0124ede
Updated to version 2.1.3.
2017-06-15 22:37:33 +09:00
Takatoshi Kondo
ceb27348bd
Merge pull request #608 from redboltz/add_cpp17_files
...
Added C++17 files to build setting.
2017-06-15 20:42:40 +09:00
Takatoshi Kondo
1ad737ee08
Added C++17 files to build setting.
2017-06-15 20:41:52 +09:00
Takatoshi Kondo
7024a1ec2c
Merge pull request #607 from redboltz/fix_597
...
Solved #597 .
2017-06-15 20:38:22 +09:00
Takatoshi Kondo
ca4a425a52
Merge pull request #602 from redboltz/fix_600
...
Fixed #600 .
2017-06-15 16:08:24 +09:00
Takatoshi Kondo
a502097fd0
Solved #597 .
...
Added `std::optional` and `std::string_view` adaptors.
2017-06-13 18:22:48 +09:00
Takatoshi Kondo
6b99a0c8b7
Merge branch 'jasperla-openbsd'
2017-06-13 12:51:27 +09:00
Takatoshi Kondo
1a3fcc3a22
Prevent iovec redefinition on C++.
2017-06-13 12:50:53 +09:00
Takatoshi Kondo
111739f8ce
Merge branch 'openbsd' of https://github.com/jasperla/msgpack-c into jasperla-openbsd
2017-06-13 12:27:49 +09:00
Takatoshi Kondo
f638e2186b
Merge pull request #605 from redboltz/fix_nonnull_warning
...
Fixed nonnull warnings on gcc 7.1.
2017-06-12 23:38:34 +09:00
Takatoshi Kondo
002376c678
Merge pull request #604 from redboltz/fix_gcc71_warning
...
Suppressed gcc 7.1 `maybe-uninitialized` warning.
2017-06-12 23:38:21 +09:00
Takatoshi Kondo
09a2f81b5f
Merge pull request #603 from redboltz/add_missing_cmake_on_dist
...
Added a missing cmake file to makedist.sh.
2017-06-12 23:38:06 +09:00
Takatoshi Kondo
ffcaaeb482
Fixed #600 .
...
Added `maybe-uninitialized` warning suppression code.
2017-06-12 15:33:05 +09:00
Takatoshi Kondo
bd511a4bd1
Fixed nonnull warnings on gcc 7.1.
2017-06-12 15:14:37 +09:00
Takatoshi Kondo
684c5e0bb0
Suppressed gcc 7.1 maybe-uninitialized
warning.
...
When I execute cmake `-DMSGPACK_CXX11=OFF`, gcc 7.1 reports the warning.
I've already added the warning suppression pragma, but it doesn't work
in this case. So I added explicit initializing code even if it is redundant.
2017-06-12 14:11:21 +09:00
Takatoshi Kondo
8e74449181
Added a missing cmake file to makedist.sh.
2017-06-12 14:10:08 +09:00
Jasper Lievisse Adriaanse
f2b788e51f
Sprinkle __OpenBSD__: include missing headers and prevent iovec redefinition
2017-06-11 18:13:10 +02:00
Takatoshi Kondo
7214b4c73f
Merge pull request #599 from redboltz/fix_598
...
Fixed #598 .
2017-06-08 20:44:21 +09:00
Takatoshi Kondo
a7a78bde9b
Fixed #598 .
2017-06-08 09:26:05 +00:00
Takatoshi Kondo
c50fbe4ce9
Merge pull request #595 from redboltz/ver_2.1.2
...
Updated the version to 2.1.2.
2017-06-07 13:23:23 +09:00
Takatoshi Kondo
d7d28b6f24
Updated the version to 2.1.2.
2017-06-06 12:26:09 +09:00
Takatoshi Kondo
5ebed34376
Merge pull request #592 from leolchat/master
...
Do not convert file everytime it is configured
2017-05-29 00:53:19 +09:00
Léonard Gérard
6871a82af7
Do not convert file everytime it is configured
2017-05-22 21:57:21 -07:00
Takatoshi Kondo
3f79968910
Merge branch 'herbrechtsmeier-ci'
2017-05-18 20:25:14 +09:00
Takatoshi Kondo
2e10adabb1
Removed X3_PARSE from osx build.
2017-05-18 19:47:53 +09:00
Takatoshi Kondo
0411ef85e7
Added warning supression pragma.
2017-05-15 16:52:29 +09:00
Takatoshi Kondo
28b6ee0db0
Updated clang version.
2017-05-15 15:55:52 +09:00
Takatoshi Kondo
3d0fa6043c
Merge branch 'ci' of https://github.com/herbrechtsmeier/msgpack-c into herbrechtsmeier-ci
2017-05-15 13:57:06 +09:00
Stefan Herbrechtsmeier
ee169c4eb5
appveyor: Disable boost for non default compiler
...
The appveyor pre-installed software is only compiled with the default
compiler and couldn't be used with other compiler versions.
Signed-off-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net >
2017-05-13 00:58:10 +02:00
Stefan Herbrechtsmeier
0aaf95608f
cmake: Make boost mandatory if MSGPACK_BOOST is ON
...
Signed-off-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net >
2017-05-13 00:57:03 +02:00
Stefan Herbrechtsmeier
918e7edba4
cmake: Add Boost library link directory
...
Signed-off-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net >
2017-05-13 00:56:19 +02:00
Takatoshi Kondo
88338195c0
Merge branch 'kraj-devtool'
2017-04-26 17:46:27 +09:00
Takatoshi Kondo
e90231c865
Added 'fallthrough' comments to suppress gcc7 warnings.
2017-04-24 17:16:43 +09:00
Khem Raj
15d8bb6792
Comment intentional fallthrough in case statements
...
Fixes build with gcc7
Signed-off-by: Khem Raj <raj.khem@gmail.com >
2017-04-22 08:53:50 -07:00
Takatoshi Kondo
20ef1f925b
Merge pull request #586 from jamessan/gcc-7-fix
...
Comment the intentional fallthrough to default from _fixed_trail_again
2017-04-17 17:22:54 +09:00
Takatoshi Kondo
89b8f4ee13
Merge pull request #580 from herbrechtsmeier/config
...
Add cmake package config support
2017-04-17 16:38:29 +09:00
James McCoy
304ff96d04
Comment the intentional fallthrough to default from _fixed_trail_again
...
GCC 7 added a new diagnostic, -Wimplicit-fallthrough, which is enabled
with -Wextra that warns about implicitly falling through a case
statement.
[ 4%] Building C object CMakeFiles/msgpackc-static.dir/src/unpack.c.o
/usr/lib/gcc-snapshot/bin/gcc -I/home/jamessan/src/msgpack-c/. -I/home/jamessan/src/msgpack-c/include -I/home/jamessan/src/msgpack-c/build/include -g -O2 -fdebug-prefix-map=/home/jamessan/src/msgpack-c=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -g -O3 -o CMakeFiles/msgpackc-static.dir/src/unpack.c.o -c /home/jamessan/src/msgpack-c/src/unpack.c
In file included from /home/jamessan/src/msgpack-c/src/unpack.c:283:0:
/home/jamessan/src/msgpack-c/include/msgpack/unpack_template.h: In function 'template_execute':
/home/jamessan/src/msgpack-c/include/msgpack/unpack_template.h:238:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
++p;
^~~
/home/jamessan/src/msgpack-c/include/msgpack/unpack_template.h:240:13: note: here
default:
^~~~~~~
cc1: all warnings being treated as errors
Adding the comment makes it explicit that the fallthrough is
intentional, so gcc doesn't complain.
2017-04-13 11:43:27 -04:00
Takatoshi Kondo
10c1917f22
Merge pull request #582 from qehgt/fix-winsock-already-included
...
Fix 'WinSock.h has already been included' compiler error.
2017-04-12 20:44:56 +09:00
Takatoshi Kondo
d85e731ab4
Merge pull request #585 from redboltz/fix_584
...
Fixed #584 .
2017-04-12 19:02:24 +09:00
Takatoshi Kondo
d431e25257
Fixed #584 .
...
Reset m_cs to MSGPACK_CS_HEADER after visitor called.
2017-04-11 12:29:12 +09:00
Stefan Herbrechtsmeier
3d82c2d651
Add cmake package config support
...
Add support for CMake find_package command to msgpack. The package
exports the two targets msgpackc-static and msgpackc if shared is
enabled. The CMake find_package command works after installation
of msgpack and during build of another project which adds msgpack
as sub project via add_subdirectory command.
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com >
2017-04-04 08:33:18 +02:00
Vasily Titskiy
2cbaa3a7db
Fix 'WinSock.h has already been included' compiler error.
...
Fix compiler error if Boost.Asio & msgpack are used together on Windows
Platform
2017-03-29 11:48:29 -04:00
Takatoshi Kondo
bfc6e45a2f
Merge pull request #579 from herbrechtsmeier/boost
...
Add boost include directories only if MSGPACK_BOOST is enabled
2017-03-25 18:11:53 +09:00
Takatoshi Kondo
e8fa6c1aee
Merge pull request #578 from herbrechtsmeier/wildcard
...
Pass wildcard precision of snprintf as int
2017-03-25 18:10:49 +09:00
Takatoshi Kondo
d49bec4e11
Merge pull request #577 from herbrechtsmeier/posix
...
Detect POSIX compatiblity explicit
2017-03-25 18:10:01 +09:00
Stefan Herbrechtsmeier
004939e732
Pass wildcard precision of snprintf as int
...
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com >
2017-03-22 13:05:47 +01:00
Stefan Herbrechtsmeier
09e8833d53
Add boost include directories only if MSGPACK_BOOST is enabled
...
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com >
2017-03-22 13:04:03 +01:00
Stefan Herbrechtsmeier
9ed842c014
Detect POSIX compatiblity explicit
...
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com >
2017-03-22 13:03:33 +01:00
Takatoshi Kondo
99c4d37a39
Merge pull request #574 from redboltz/fix_536
...
Fixed #536 .
2017-03-16 08:21:49 +09:00
Takatoshi Kondo
4df2bdecda
Fixed #536 .
...
Replaced __GNUC_MINOR__ 6 with 7 for suppress maybe-uninitialized.
2017-03-15 21:30:07 +09:00
Takatoshi Kondo
597cd63121
Merge pull request #572 from speleo3/PATH-alias
...
CMake <= 2.8.11 compatibility
2017-03-12 11:14:42 +09:00
Thomas Holder
a51f33c02f
CMake <= 2.8.11 compatibility
...
Keep compatible with cmake <= 2.8.11 by using the legacy PATH alias for
DIRECTORY with get_filename_component.
2017-03-08 21:45:13 -05:00
Takatoshi Kondo
88032f37e1
Merge pull request #570 from lluixhi/boost
...
Enable building against dynamically-linked Boost
2017-03-05 13:02:14 +09:00
Takatoshi Kondo
a76911a72c
Merge pull request #569 from lluixhi/master
...
Make header install obey MSGPACK_ENABLE_CXX
2017-03-05 11:53:56 +09:00
Takatoshi Kondo
1bc27d72cc
Merge pull request #568 from dstahlke/fix
...
Fixed spurious start_map_key/start_array_item calls
2017-03-05 11:02:05 +09:00
Aric Belsito
a6599e5fb4
Enable building against dynamically-linked Boost
2017-03-03 12:31:56 -08:00
Aric Belsito
791f55da35
Make header install obey MSGPACK_ENABLE_CXX
2017-03-03 12:25:55 -08:00
Dan L. Stahlke
e58b00016b
Fixed spurious start_map_key/start_array_item calls
2017-03-03 09:00:15 -08:00
Takatoshi Kondo
b4fe698777
Merge pull request #565 from mongi3/patch-1
...
Minor fix to Quickstart (broke with 2.0)
2017-02-13 15:05:13 +09:00
mongi3
e89045cfcd
Minor fix to Quickstart (broke with 2.0)
...
non reference version won't compile with 2.0 release.
2017-02-11 15:06:42 -07:00
Takatoshi Kondo
c6e6dbc608
Added string view to file list.
2017-02-04 20:17:37 +09:00
Takatoshi Kondo
e271cf2aed
Merge pull request #563 from redboltz/ver2.1.1
...
Updated the version to 2.1.1.
2017-02-04 20:14:37 +09:00
Takatoshi Kondo
53e4bb92fe
Updated the version to 2.1.1.
2017-02-04 19:04:14 +09:00
Takatoshi Kondo
303c1000c2
Merge pull request #562 from redboltz/fix_561
...
Fixed #561
2017-02-04 12:45:51 +09:00
Takatoshi Kondo
088ce946b9
Fixed #561
...
Fixed unpacker's buffer expansion logic.
2017-02-03 17:11:51 +09:00
Takatoshi Kondo
dc86adbf8e
Merge pull request #558 from redboltz/add_boost_string_view
...
Added boost string_view adaptor.
2017-01-20 09:33:23 +09:00
Takatoshi Kondo
ad0cae30ad
Merge pull request #559 from raeraex2/fix_compilation_warning
...
Fix compilation warnings about possible loss of data
2017-01-19 09:43:32 +09:00
raeraex2
bf3e2abc9e
Update appveyor.yml
...
Updated zlib to 1.2.11
2017-01-17 23:22:18 +01:00
raeraex2
b7543e1386
Fix compilation warnings about possible loss of data
2017-01-17 22:16:05 +01:00
Takatoshi Kondo
1f515b3ae7
Added boost string_view adaptor.
2017-01-15 19:09:31 +09:00
Takatoshi Kondo
a933fa5892
Merge pull request #557 from obache/neatsrc/fix-char-subscripts-warnings
...
Make sure to pass `unsigned char` to `isprint()`
2017-01-13 14:15:15 +09:00
Takatoshi Kondo
a07622c276
Merge pull request #556 from obache/neatsrc/strip-cr
...
Strip unwanted CR before EOL
2017-01-12 20:47:35 +09:00
OBATA Akio
c955727d8c
Make sure to pass unsigned char
to isprint()
...
This change make safe for `char = signed char`.
As the spec, argment of `isprintf()` must be representabe as an
`unsigned char` (or equal to EOF, not expected here).
Additionally, some implementation define it as a macro using array,
then it cause warning "array subscript has type `char` [-Wchar-subscripts]"
with `char` argments.
2017-01-12 15:01:04 +09:00
OBATA Akio
094b70213a
Strip unwanted CR before EOL
2017-01-12 14:35:51 +09:00
Takatoshi Kondo
c0bf8b3aff
Merge pull request #555 from redboltz/ver2.1.0
...
Updated the version to 2.1.0.
2017-01-10 21:34:33 +09:00
Takatoshi Kondo
5be2757216
Updated the version to 2.1.0.
2017-01-10 17:17:24 +09:00
Takatoshi Kondo
c6c31dc5cd
Merge pull request #553 from redboltz/x3_parse
...
X3 parse
2017-01-09 17:59:29 +09:00
Takatoshi Kondo
c704d4bfab
Added new example.
2017-01-09 16:18:35 +09:00
Takatoshi Kondo
4466bda819
Updated travis-ci.
...
Use container based build `sudo: false`.
2017-01-07 01:20:22 +09:00
Takatoshi Kondo
4623654996
Updated include files list.
2017-01-07 01:20:22 +09:00
Takatoshi Kondo
84ad9a2634
Added Spirit.X3 based parse.
...
It uses iterator pair instead of data and size.
2017-01-05 21:24:25 +09:00
Takatoshi Kondo
9b141fa9b6
Separated parse
and unpack
on v2.
2017-01-04 11:45:51 +09:00
Takatoshi Kondo
6a1fa2e0fc
Merge pull request #552 from redboltz/fix_534
...
Fixed #534 .
2017-01-02 21:53:29 +09:00
Takatoshi Kondo
c55f778198
Fixed #534 .
...
Added conditional [[deprecated]] attribute.
Updated zlib version.
2017-01-02 20:40:34 +09:00
Takatoshi Kondo
b4f2acb945
Merge pull request #550 from redboltz/fix_cpp_array_of
...
Fixed array and map size overflow.
2016-12-29 13:23:13 +09:00
Takatoshi Kondo
7e139125e2
Fixed array and map size overflow.
2016-12-29 12:13:14 +09:00
Takatoshi Kondo
9d37316b44
Merge pull request #549 from redboltz/fix_redundant_calc
...
Fixed redundant caluclation.
2016-12-14 12:18:16 +09:00
Takatoshi Kondo
364fc0daf6
Fixed redundant caluclation.
2016-12-14 10:02:49 +09:00
Takatoshi Kondo
f24201f71f
Merge pull request #548 from redboltz/fix_c_error_code
...
Fixed C unpack return code.
2016-12-14 10:00:40 +09:00
Takatoshi Kondo
9a113bb0ca
Fixed C unpack return code.
2016-12-14 00:07:43 +09:00
Takatoshi Kondo
2674e34769
Merge pull request #547 from redboltz/fix_overflow
...
Fixed integer overflow and EXT size problem.
2016-12-13 23:03:19 +09:00
Takatoshi Kondo
c5c3de8f61
Fixed integer overflow and EXT size problem.
2016-12-13 15:47:20 +09:00
Takatoshi Kondo
0b7cabd322
Merge pull request #545 from redboltz/fix_544
...
Fix 544
2016-12-11 17:43:21 +09:00
Takatoshi Kondo
22780a6808
Suppressed maybe uninitialized
warnings.
2016-12-11 15:54:27 +09:00
Takatoshi Kondo
4ec0fdf207
Fixed #544 .
...
Replaced -std=c++03 with -std=c++98.
2016-12-11 15:53:59 +09:00
Takatoshi Kondo
85a0404d8c
Merge branch 'pmalhaire-socket_stream_example'
2016-12-11 15:40:33 +09:00
Takatoshi Kondo
ce67c8ed35
Removed valgrind install from osx.
...
Updated boost.
2016-12-11 14:53:24 +09:00
Takatoshi Kondo
1893a8e31e
Updated valgrind version.
2016-12-11 14:37:44 +09:00
pmalhaire
dc8c253577
fix msvc warning
2016-11-30 10:30:26 +01:00
pmalhaire
9c77a0f24a
Adding an example of sax like parser using buffered content (could be a socket)
2016-11-30 10:28:57 +01:00
Takatoshi Kondo
61c053d37e
Merge pull request #538 from heylouiz/gtest_1_8_0_gcc_5_4_1
...
Fix compilation with Gtest 1.8.0 and GCC 5.4.1
2016-11-16 23:00:19 +09:00
Luiz Silva
04b549a46b
Replace c-Style cast with static_cast
2016-11-16 11:00:28 -02:00
Luiz Silva
4a1db60af8
Fix compilation with Gtest 1.8.0 and GCC 5.4.1
2016-11-10 10:59:26 -02:00
Takatoshi Kondo
55b51c506f
Merge pull request #535 from redboltz/add_map_name
...
Supported any names for MSGPACK_DEFINE_MAP using MSGPACK_NVP.
2016-11-02 13:35:36 +09:00
Takatoshi Kondo
a97c00e463
Added msgpack::object cheking code before covert it.
2016-11-02 08:53:14 +09:00
Takatoshi Kondo
e61cd76310
Supported any names for MSGPACK_DEFINE_MAP using MSGPACK_NVP.
2016-10-30 16:25:19 +09:00
Takatoshi Kondo
c30962da25
Merge branch 'mika-fischer-fix_cmake_cxx_headers'
2016-10-30 14:10:08 +09:00
Takatoshi Kondo
6b7becdef0
Fix typo that caused the C++ headers not to be included in cmake file generating script.
2016-10-30 14:08:56 +09:00
Takatoshi Kondo
cfa1ab38cc
Merge branch 'fix_cmake_cxx_headers' of https://github.com/mika-fischer/msgpack-c into mika-fischer-fix_cmake_cxx_headers
2016-10-30 14:05:57 +09:00
Takatoshi Kondo
2f34d22bf5
Merge pull request #533 from Kronuz/patch-1
...
Save the flags of the stream
2016-10-29 13:28:10 +09:00
Takatoshi Kondo
401460b7d9
Merge pull request #531 from redboltz/fix_521
...
Fixed #521 .
2016-10-29 12:56:49 +09:00
Germán M. Bravo
03b770fdf2
Save the flags of the stream
...
Changing the stream to `std::hex` mode should only affect the current character; otherwise printing some msgpack with a list like this: `[123, "string\\u0003", 123]` (123 decimal) ends up printing `[123, "string\\u0003", 7b]`, as `std::hex` is sticky.
2016-10-28 15:27:03 -05:00
Mika Fischer
d3cd07987b
Fix typo that caused the C++ headers not to be included in CMake project
2016-10-17 17:05:07 +02:00
Beilu Shao
b4786711df
alignment: use proper alignment size
...
Pass proper alignment size when use allocate_align(). This will
fix alignment trap issues on ARM.
Signed-off-by: Beilu Shao <beilushao@gmail.com >
2016-10-16 23:59:13 +02:00
Takatoshi Kondo
ccc9ac5538
Fixed #521 .
...
Introduced new object type `FLOAT32` and `FLOAT64`.
`FLOAT64` is equivalent to `FLOAT`.
The both internal expressions are f64(double).
2016-10-11 23:23:06 +09:00
Takatoshi Kondo
1df97bc37b
Merge pull request #530 from mbodmer/master
...
Removed MSGPACK_ENABLE_GCC_CXX_ATOMIC macro
2016-10-11 20:52:51 +09:00
Marc Bodmer
8d09b7090d
Removed MSGPACK_ENABLE_GCC_CXX_ATOMIC macro since this does not exist in user code and this code would not be active then.
2016-10-11 10:33:08 +02:00
Takatoshi Kondo
2a7335ae90
Merge pull request #529 from mbodmer/master
...
Fixing building with gcc_atomic.hpp
2016-10-10 19:59:27 +09:00
Marc Bodmer
e7eae65ab7
Fixed path of gcc_atomic.h and gcc_atomic.hpp in definition of _msgpack_atomic_counter_header
2016-10-10 10:42:08 +02:00
Marc Bodmer
4e663609ca
Fixed name of define as evaluated in CMakeLists.txt
2016-10-10 10:40:45 +02:00
Takatoshi Kondo
98820ec6c7
Merge pull request #528 from redboltz/fix_519
...
Fixed #519 .
2016-10-09 13:34:07 +09:00
Takatoshi Kondo
baea172cc9
Fixed #519 .
...
Suppressed maybe unused warnings.
2016-10-09 12:06:35 +09:00
Takatoshi Kondo
e9e31a2899
Merge pull request #526 from redboltz/fix_525
...
Fixed #525 .
2016-10-09 11:42:14 +09:00
Takatoshi Kondo
8ffb619031
Fixed #525 .
...
Set osx version.
2016-10-09 10:17:50 +09:00
Takatoshi Kondo
a3ed6274c2
Merge pull request #524 from starthal/readme-remove-autotools
...
Remove autotools instructions from README
2016-10-08 20:29:50 +09:00
Stephen Albert
f795e5d568
Remove autotools instructions from README
2016-10-05 14:41:01 -04:00
Takatoshi Kondo
87ff7e4ccc
Merge pull request #515 from edsiper/unpacker_size
...
unpack: new msgpack_unpacker_next_with_size() function
2016-09-11 19:32:48 +09:00
Eduardo Silva
da46fb1ef7
test: c: add test for new msgpack_unpacker_next_with_size()
...
Signed-off-by: Eduardo Silva <eduardo@treasure-data.com >
2016-09-07 16:24:52 -06:00
Eduardo Silva
b90bcf3c11
unpack: unpacker_next_with_size() update parsed bytes on success or continue
...
This patch makes unpacker_next_with_size(...), update p_bytes when
unpacker_next() returns MSGPACK_UNPACK_SUCCESS or MSGPACK_UNPACK_CONTINUE.
Signed-off-by: Eduardo Silva <eduardo@treasure-data.com >
2016-09-06 10:46:30 -06:00
Takatoshi Kondo
c1f19c0e47
Merge pull request #504 from redboltz/fix_503
...
Fixed #503 .
2016-09-06 23:00:17 +09:00
Eduardo Silva
d9a77e220a
unpack: new msgpack_unpacker_next_with_size() function
...
This new function is an extension of the original msgpack_unpacker_next()
where it now adds third argument to store the number of parsed bytes for
the returned buffer upon a MSGPACK_UNPACK_SUCCESS case.
This is useful for cases where the caller needs to optimize memory usage
in the original buffer,s so upon success retrieval of the object, it can
later deprecate the already 'parsed' bytes.
For more details about the origins of this function please refer to the
following issue on github:
https://github.com/msgpack/msgpack-c/issues/514
Signed-off-by: Eduardo Silva <eduardo@treasure-data.com >
2016-08-31 16:49:14 -06:00
Takatoshi Kondo
894547582b
Merge branch 'pkrenz-VariadicC11Fix'
2016-08-30 08:47:21 +09:00
Takatoshi Kondo
3a87cc8826
Merge branch 'VariadicC11Fix' of https://github.com/pkrenz/msgpack-c-1 into pkrenz-VariadicC11Fix
2016-08-30 00:04:09 +09:00
Takatoshi Kondo
6177038fcf
Merge branch 'mdrohmann-master'
2016-08-29 23:59:08 +09:00
Takatoshi Kondo
25259dc705
Updated gtest location.
2016-08-29 22:49:12 +09:00
Takatoshi Kondo
5d69c22bf9
Use OR instead of AND for all classes that have multiple types.
...
Revert example. Combination of has_as and not has_as are move to tests.
2016-08-29 22:12:01 +09:00
Philipp
a9caff538e
Fix warning in versioning
2016-08-26 16:56:01 +02:00
Martin C Drohmann
9a2bb0c972
demonstrate the motivation behind the previous patch
2016-08-23 15:09:02 -07:00
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.
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
Takatoshi Kondo
cc02da0ccf
Fixed #465
...
Added C-Style array support.
Existing mapping:
convert:
pack:
char[N] => STR
const char[N] => STR
object:
char[N] => STR (v1 only)
const char[N] => STR (v1 only)
object_with_zone:
char[N] => STR
const char[N] => STR
Additional mapping:
convert:
STR => char[N]
ARRAY => T[N]
pack:
T[N] => ARRAY
const T[N] => ARRAY
object:
object_with_zone:
T[N] => ARRAY
const T[N] => ARRAY
2016-05-16 23:00:30 +09:00
Takatoshi Kondo
e6f82cf2bb
Fixed #463 .
...
Added lacked include files.
Added a test.
Added MSVC build settings on appveyor.
Added old MSVC workaround.
Fixed a variable definition point to meet ANSI-C.
2016-05-14 22:05:10 +09:00
Takatoshi Kondo
6593cba284
Fixed end_map_value() calling point.
...
Renamed names that related to a visitor.
Renamed test name from json to json_like because I omit escape.
Added end_map_value() and end_map() implementation.
2016-05-05 18:44:56 +09:00
Takatoshi Kondo
d5b515899c
Added a visitor version of unpack API,
...
The current unpacking APIs are constructed on the visitor mechanism.
(Fixed #418 )
Updated test condition.
2016-05-01 21:44:03 +09:00
Takatoshi Kondo
068041f05e
Merge pull request #458 from redboltz/fix_457
...
Fixed #457 .
2016-04-17 11:28:02 +09:00
Takatoshi Kondo
e21b4ef28d
Fixed #457 .
...
JSON doesn't have `nil` but has `null`.
msgpack::object JSON output uses `null` when the object is nil_t.
2016-04-14 14:48:42 +09:00
Takatoshi Kondo
4c9685977b
Merge branch 'proller-patch-2'
2016-04-14 14:45:31 +09:00
Takatoshi Kondo
c9814de513
Added -Wno-mismatched-tags to msgpackc-static.
2016-04-14 14:44:01 +09:00
proller
bf7bc19ccb
Fix compiling without shared
2016-04-06 21:42:22 +03:00
Takatoshi Kondo
07b5000824
Merge pull request #453 from redboltz/removed_obsolete_unpack
...
Removed obsolete `unpack()` API.
2016-03-27 17:38:58 +09:00
Takatoshi Kondo
d6ef2bc91d
Merge pull request #452 from redboltz/fix_pack_comment
...
Fixed pack comment.
2016-03-27 14:35:09 +09:00
Takatoshi Kondo
db90ee4283
Removed obsolete unpack()
API.
2016-03-26 11:46:45 +09:00
Takatoshi Kondo
a3e868acb8
Fixed pack comment.
2016-03-26 11:18:21 +09:00
Takatoshi Kondo
62048e1aa0
Merge pull request #451 from redboltz/removed_obsolete_apis_from_v2
...
Removed obsolete APIs form v2.
2016-03-25 20:51:14 +09:00
Takatoshi Kondo
31a06a0682
Removed obsolete APIs form v2.
...
Removed MSGPACK_DISABLE_LEGACY_CONVERT from v2. Those APIs are removed
from v2.
2016-03-25 09:16:27 +09:00
Takatoshi Kondo
72c7feb2c4
Merge pull request #449 from redboltz/update_version_2_0
...
Updated the version to 2.0.0.
2016-03-21 19:33:58 +09:00
Takatoshi Kondo
a83e43a52f
Merge pull request #448 from redboltz/replace_unpacked_with_object_handle
...
Replaced msgpack::unpacked with msgpack::object_handle.
2016-03-21 17:27:15 +09:00
Takatoshi Kondo
8b1632dc1d
Merge pull request #444 from redboltz/nil_for_v2
...
type::nil is defined only if MSGPACK_USE_LEGACY_NIL in v2.
2016-03-21 17:26:08 +09:00
Takatoshi Kondo
170d29a13c
Updated the version to 2.0.0.
...
It's not a release. Just inform that the master branch is for the
version 2.0.0.
2016-03-21 16:50:31 +09:00
Takatoshi Kondo
1bfcf55469
Replaced msgpack::unpacked with msgpack::object_handle.
...
msgpack::unpacked is a typedef of the msgpack::object_handle.
I recommend using msgpack::object_handle. It can be used not only
holding unpacked msgpack objects but also msgpack::objects that are
created by any types.
Replaced unpack() APIs in test codes and examples. They used to use old
APIs.
2016-03-21 15:22:50 +09:00
Takatoshi Kondo
85164687f3
Merge pull request #447 from redboltz/fix_446
...
Fixed #446 .
2016-03-21 15:19:58 +09:00
Takatoshi Kondo
f5f42782be
Fixed #446 .
...
Replaced passed by value with passed by rvalue reference on
msgpack::object_handle's constructor.
2016-03-21 00:51:18 +09:00
Takatoshi Kondo
60a4cba6d6
Merge pull request #443 from redboltz/fix_442
...
Fixed #442 .
2016-03-18 14:27:02 +09:00
Takatoshi Kondo
5ecb797d8a
type::nil is defined only if MSGPACK_USE_LEGACY_NIL in v2.
...
Note: In v1, type::nil is defined if NOT defined MSGPACK_DISABLE_LEGACY_NIL.
2016-03-18 09:40:34 +09:00
Takatoshi Kondo
455e0190d1
Fixed #442 .
...
Updated msgpack::v1::operator<< and >> implementation.
Those functions refer to current version of convert, pack, object, and object_with_zone.
2016-03-17 08:43:00 +09:00
Takatoshi Kondo
84932e62e9
Merge pull request #441 from redboltz/fix_440
...
Fixed #440 .
2016-03-15 11:33:52 +09:00
Takatoshi Kondo
fe229d1df0
Fixed #440 .
...
Fixed a pointer operation problem at msgpack::zone::chunk_list::clear().
It was only happened on C++03.
2016-03-12 11:39:38 +09:00
Takatoshi Kondo
b5b865a6ca
Merge pull request #436 from al11090/master
...
Fixed the broken float en/decoder on iOS
2016-03-02 09:58:03 +09:00
Takatoshi Kondo
d8e9941fa9
Merge pull request #434 from redboltz/fix_417
...
Fix 417
2016-03-02 09:56:53 +09:00
Mizuki Hirata
bab3eea3a8
fixed the broken float en/decoder, caused by dead detector 'TARGET_OS_IPHONE'.
2016-02-29 02:22:58 +09:00
Takatoshi Kondo
07e635f158
Merge pull request #435 from redboltz/fix_433
...
Fix 433
2016-02-27 08:06:06 +09:00
Takatoshi Kondo
b641065d1f
Added a pragma for avoiding maybe-uninitialized warning.
2016-02-26 15:51:35 +09:00
Takatoshi Kondo
60d4b2833d
Fixed #433 .
...
Added zero size check before calling std::vector<T>::front().
Added empty checking tests for all containers.
2016-02-26 15:08:18 +09:00
Takatoshi Kondo
1244edeaf1
Removed the test that uses msgpack::object with std::string on version 1.x.
2016-02-26 13:52:14 +09:00
Takatoshi Kondo
acf4ac01fc
Fixed #417 .
...
Removed object adaptor specialization for std::string from v2.
2016-02-22 10:06:15 +09:00
Takatoshi Kondo
549c28459e
Merge pull request #430 from redboltz/undo_constructor
...
Undo-ed overly removed constructors.
2016-02-22 09:42:04 +09:00
Takatoshi Kondo
86ac7c6eb7
Undo-ed overly removed constructors.
2016-02-20 23:50:53 +09:00
Takatoshi Kondo
0e53b350d3
Merge pull request #426 from redboltz/fix_422
...
Fixed #422 .
2016-02-20 18:47:42 +09:00
Takatoshi Kondo
db0726fa76
Merge pull request #423 from redboltz/fix_invalid_size_expansion
...
Fixed zone expansion algorithm.
2016-02-18 22:48:00 +09:00
Takatoshi Kondo
664ab708e4
Fixed #422 .
...
Replaced the inheriting constructor with a forwarding constructor.
Removed the template constructors that are covered by the forwarding constructor.
Added std::forward() to make_tuple.
Added conversion constructor.
Moved msgpack::type::tuple to
include/msgpack/v1/adaptor/detail/cpp11_msgpack_tuple_decl.hpp from
include/msgpack/v1/adaptor/detail/cpp11_msgpack_tuple.hpp.
msgpack::type::tuple_cat requires the class template tuple definition.
2016-02-18 16:44:02 +09:00
Takatoshi Kondo
f88e621dca
Fixed zone expansion algorithm.
...
See:
https://github.com/msgpack/msgpack-c/pull/160#commitcomment-16087596
2016-02-16 12:18:38 +09:00
Takatoshi Kondo
0e7345c282
Merge pull request #421 from ibell/patch-1
...
Replace stdint.h header in check_container_size_decl.hpp
2016-02-15 07:55:52 +09:00
Ian Bell
7b578cc065
Replace stdint.h header in check_container_size_decl.hpp
...
``#include <stdint.h>`` is invalid in MSVC 9 2008 . Using the system dependent header does work in my testing with MSVC9, and should be safe for other compilers I think.
2016-02-14 15:15:11 -07:00
Takatoshi Kondo
988f72d5eb
Merge pull request #420 from ibell/patch-1
...
Add signed flags to MSVC integer definitions
2016-02-14 13:27:47 +09:00
Ian Bell
c51e8ace48
Add signed flags to MSVC integer definitions
2016-02-13 19:19:03 -07:00
Takatoshi Kondo
43a86cf5b9
Merge pull request #415 from redboltz/prepare_for_version2
...
Re-organized tree to prepare for version 2.0.0.
2016-02-13 21:36:22 +09:00
Takatoshi Kondo
54cb4350b3
Re-organized tree to prepare for version 2.0.0.
...
See https://github.com/msgpack/msgpack-c/wiki/v1_1_cpp_versioning
2016-01-31 19:28:31 +09:00
Takatoshi Kondo
cabd8a8a03
Merge pull request #413 from redboltz/version-1.4.0
...
Release version 1.4.0.
2016-01-22 10:53:12 +09:00
Takatoshi Kondo
8640754417
Release version 1.4.0.
...
Fixed markdown layouts.
2016-01-22 10:02:59 +09:00
Takatoshi Kondo
7d1be40e10
Merge pull request #410 from redboltz/fix_399
...
Fixed #399
2016-01-22 00:10:26 +09:00
Takatoshi Kondo
3c271892e3
Fixed #399
...
If MSGPACK_DISABLE_LEGACY_CONVERT is defined, msgpack::object::convert(T*) is removed.
Added MSGPACK_DISABLE_LEGACY_CONVERT to build system and documents.
Please define MSGPACK_DISABLE_LEGACY_CONVERT and update your code as follows:
Replace
int i;
obj.convert(&i); // Removed pointer version
with
int i;
obj.convert(i); // Reference version
2016-01-21 22:28:53 +09:00
Takatoshi Kondo
83ab53ecd4
Merge pull request #412 from redboltz/add_disable_legacy_macros_for_build
...
Added MSGPACK_DISABLE_LEGACY_NIL to build system and documents.
2016-01-21 22:18:09 +09:00
Takatoshi Kondo
ba73841240
Added MSGPACK_DISABLE_LEGACY_NIL to build system and documents.
2016-01-21 20:47:16 +09:00
Takatoshi Kondo
13afc54ccc
Merge pull request #411 from redboltz/change_default_macro
...
Fixed existing code compile error problem.
2016-01-21 19:34:43 +09:00
Takatoshi Kondo
2865a96ba5
Fixed existing code compile error problem.
...
Changed macro name from MSGPACK_USE_LEGACY_NIL to
MSGPACK_DISABLE_LEGACY_NIL. msgpack-c shouldn't make compile error on
existing codes by default without major version up.
So if you want to disable msgpack::type::nil, you need to define
MSGPACK_DISABLE_LEGACY_NIL macro.
2016-01-21 17:29:22 +09:00
Takatoshi Kondo
79222b65a3
Merge pull request #409 from redboltz/fix_wshadow
...
Fixed -Wshadow warning.
2016-01-20 14:58:46 +09:00
Takatoshi Kondo
83f0429db8
Merge pull request #408 from redboltz/replace_nil_with_nil_t
...
Replaced nil with nil_t.
2016-01-20 14:04:56 +09:00
Takatoshi Kondo
6c035f7d2b
Merge pull request #407 from redboltz/add_doc
...
Added unpack, pack, object, and object_handle documentation.
2016-01-19 09:06:58 +09:00
Takatoshi Kondo
ed5a4123b5
Replaced nil with nil_t.
...
Added nil typedef for existing codes.
2016-01-18 22:12:38 +09:00
Takatoshi Kondo
b8530e30df
Fixed -Wshadow warning.
2016-01-18 21:52:50 +09:00
Takatoshi Kondo
8bf2f33782
Added unpack, pack, object, and object_handle documentation.
2016-01-18 21:49:28 +09:00
Takatoshi Kondo
356fbcf187
Merge pull request #400 from ryochack/fix_fbuffer_warning
...
Fixed an incompatible type warning
2016-01-15 12:53:15 +09:00
Takatoshi Kondo
1adf90e9df
Merge branch 'redboltz-fix_382'
2016-01-15 12:45:07 +09:00
Takatoshi Kondo
c2f523e463
Merge branch 'fix_382' of https://github.com/redboltz/msgpack-c into redboltz-fix_382
2016-01-15 12:44:40 +09:00
Takatoshi Kondo
1e8f5d0d67
Merge pull request #402 from redboltz/fix_395
...
Fixed #395
2016-01-15 11:11:55 +09:00
Takatoshi Kondo
0a8d25cd35
Merge pull request #404 from jamessan/fix-endian-condition
...
Check whether MSGPACK_ENDIAN_LITTLE_BYTE is true, not defined.
2016-01-15 11:05:19 +09:00
James McCoy
72e0d1a424
Check whether MSGPACK_ENDIAN_LITTLE_BYTE is true, not defined.
...
msgpack/predef/other/endian.h always defines both
MSGPACK_ENDIAN_LITTLE_BYTE and MSGPACK_ENDIAN_BIG_BYTE, but they're
defined to a true or false value depending on whether the system is
little/big endian.
Fix this condition to check the truthiness rather than whether it is
defined, like the other locations this macro is checked.
Closes #403
Signed-off-by: James McCoy <jamessan@jamessan.com >
2016-01-14 19:31:27 -05:00
Takatoshi Kondo
c06d4d70ef
Fixed #395
...
libmsgpack.[a|so] is the library file for C++.
libmsgpackc.[a|so] is the library file for C.
Since version 1.0.0, the C++ parts of msgpack-c is a header only
library. So libmsgpack.* shouldn't be generated.
On the autotools building environment, removed libmsgpack.*
generation. On the cmake building environment, replaced libmsgpack.*
with libmsgpackc.* and set so-version to 2.0.0.
2016-01-14 07:59:37 +09:00
Takatoshi Kondo
69f588dd36
Merge pull request #401 from redboltz/fix_392
...
Fixed #392
2016-01-14 07:57:05 +09:00
Takatoshi Kondo
65b47fa032
Merge pull request #397 from redboltz/fix_396
...
Fixed #396 .
2016-01-13 18:33:41 +09:00
Takatoshi Kondo
22fd249b12
Fixed #392
...
Avoided the warning when `char` does not have sign using template lazy instantiation.
Removed redundant `inline`.
2016-01-13 17:38:51 +09:00
Takatoshi Kondo
96831350b8
Merge pull request #398 from jamessan/unsigned-char-ci
...
Add CI testing of signed/unsigned char differences
2016-01-13 15:25:55 +09:00
ryochack
5da3c031fd
Fix warning of 'msgpack_fbuffer_write'
2016-01-13 12:18:33 +09:00
James McCoy
71eba2406d
Add CI testing of signed/unsigned char differences
...
This should help catch problems like #392 sooner.
Signed-off-by: James McCoy <jamessan@jamessan.com >
2016-01-12 20:17:43 -05:00
Takatoshi Kondo
892fa8c2bd
Fixed #396 .
...
Added Doxyfile to the distribution package.
Generated ChangeLog as a copy of CHANGELOG.md.
2016-01-11 08:57:00 +09:00
Takatoshi Kondo
42e332bb8c
Merge pull request #394 from jamessan/cmake-SOVERSION
...
Set SOVERSION to 4 for CMake builds
2016-01-11 07:45:02 +09:00
James McCoy
40604c3d40
Set SOVERSION to 4 for CMake builds
...
In aa79fc2f
, the SOVERSION was bumped to 4 for autoconf-based builds,
but was left at 3 for CMake builds. This shouldn't differ based on
which tool is used to build msgpack-c.
Signed-off-by: James McCoy <jamessan@jamessan.com >
2016-01-09 21:31:32 -05:00
Takatoshi Kondo
e183efcce2
Merge pull request #387 from kgrz/update-quick-start-docs-with-new-api
...
Update install instructions and QUICKSTART-C.md
2015-12-03 23:11:37 +09:00
Kashyap
772e4e01a3
Remove whitespace
2015-12-01 09:27:10 +05:30
Kashyap
3660b495c3
Use post 1.x APIs in Quickstart docs
2015-12-01 09:26:46 +05:30
Kashyap
7a02f03a82
Update install instructions with latest msgpack
2015-12-01 09:26:19 +05:30
Takatoshi Kondo
953077b73f
Merge pull request #386 from redboltz/update_license
...
Version 1.3.0.
2015-11-22 16:26:19 +09:00
Takatoshi Kondo
ba15089d86
Version 1.3.0.
...
Updated the license from the license from the Apache License Version 2.0
to the Boost Software License, Version 1.0.
Removed unused files.
2015-11-21 12:41:46 +09:00
Takatoshi Kondo
b8ee27c672
Replaced EXPECT_EQ with EXPECT_TRUE to avoid ostream requirement.
2015-11-19 09:22:40 +09:00
Takatoshi Kondo
ee65a319ba
Replaced EXPECT_EQ with EXPECT_TRUE to avoid ostream requirement.
2015-11-18 08:29:35 +09:00
Takatoshi Kondo
46502480e9
Replaced EXPECT_EQ with EXPECT_TRUE to avoid ostream requirement.
2015-11-15 12:40:37 +09:00
Takatoshi Kondo
50e1c23941
Removed gcc_atomic.cpp from CMakelist.txt.
2015-11-15 12:40:17 +09:00
Takatoshi Kondo
b76c8aeb83
Merge pull request #384 from jpetso/jpetso_refwrap
...
Support to-object conversions for std::reference_wrapper<const T>.
2015-11-13 10:23:44 +09:00
Jakob Petsovits
b5599ef3fc
Support to-object conversions for std::reference_wrapper<const T>.
...
Previously the conversion would fail because struct object is not
generally provided for the const version of the type, but because
the wrapper would pass down the type unchanged, it would look for
exactly that missing template specialization unsuccessfully.
This is specifically an issue for std::reference_wrapper because
std::cref() returns an std::reference_wrapper<const T>.
2015-11-11 19:40:22 -05:00
Takatoshi Kondo
39e7856c48
Fixed #382 .
...
Fixed warnings on gcc 4.1.2.
Added gcc version checking for adding -std=c++03 flag.
2015-11-12 00:20:21 +09:00
Takatoshi Kondo
1a7aa5e5ec
Merge pull request #383 from bpay/vs2015-cpp11
...
Fix VS2015 still using C++03 API
2015-11-10 22:33:46 +09:00
Ben Payne
aad5b96083
Fix VS2015 still using C++03 API
2015-11-08 15:58:55 -05:00
Takatoshi Kondo
dea3190d36
Merge pull request #381 from mogemimi/fix-minor-typo
...
Fix minor typos
2015-11-07 20:41:58 +09:00
mogemimi
c001a52582
Fix minor typos
2015-11-07 15:47:11 +09:00
Takatoshi Kondo
f58eb11fd5
Merge pull request #380 from whoshuu/expand-buffer-tests
...
Add tests for expanding an unpacker buffer
2015-11-01 12:02:01 +09:00
Takatoshi Kondo
134beee0cd
Merge pull request #379 from whoshuu/increase-unpack-coverage
...
Add coverage for all free unpack codepaths
2015-10-28 11:10:13 +09:00
Huu Nguyen
434dae8424
Add tests for expanding an unpacker buffer
2015-10-26 23:08:43 -04:00
Huu Nguyen
d8dd77884b
Add coverage for all free unpack codepaths
2015-10-26 21:27:11 -04:00
Takatoshi Kondo
ea991d5a01
Merge pull request #378 from whoshuu/add-nil-pack-test
...
Add test for packing/unpacking nil
2015-10-25 19:06:50 +09:00
Huu Nguyen
6a127eb24f
Add test for packing/unpacking nil
2015-10-23 08:49:06 -07:00
Takatoshi Kondo
5e57dc5da7
Merge pull request #376 from tbeu/patch-1
...
Only set MSGPACK_DLLEXPORT if not already defined
2015-10-20 12:50:51 +09:00
Takatoshi Kondo
d23a649427
Merge pull request #375 from whoshuu/test-parse-error
...
Write test case for parse error when unpacking unused 0xc1
2015-10-20 12:50:09 +09:00
tbeu
12ae60fd77
Only set MSGPACK_DLLEXPORT if not already defined
...
Allow applications that inlcude msgpack.h to predefine MSGPACK_DLLEXPORT, e.g., to not export any symbols in case of MSVC.
2015-10-18 22:55:32 +02:00
Huu Nguyen
282b0b5927
Write test case for parse error when unpacking unused 0xc1
2015-10-18 15:14:38 -04:00
Takatoshi Kondo
0a261fca42
Merge pull request #373 from redboltz/add_ref_wrapper
...
Added std::reference_wrapper packing and making object and object_wit…
2015-10-15 11:02:47 +09:00
Takatoshi Kondo
20104301f3
Added convert adaptor support.
2015-10-11 12:16:34 +09:00
Takatoshi Kondo
428780db53
Added std::reference_wrapper packing and making object and object_with_zone support.
...
Fixed #370 .
2015-10-09 15:45:29 +09:00
Takatoshi Kondo
6bf5160bf2
Merge branch 'spatz-patch-4'
2015-09-10 22:12:11 +09:00
Takatoshi Kondo
ef45359d81
Fix warning with -Wconversion at pack_v4raw().
2015-09-10 22:11:52 +09:00
Dror Levin
3202bb6a2e
Fix warning with -Wconversion
2015-09-06 13:07:40 +03:00
Nobuyuki Kubota
63971da5a4
Merge pull request #364 from redboltz/1_2_0_rel
...
Updated version. Appended CHANGELOG.
2015-09-04 19:34:00 +09:00
Takatoshi Kondo
8a17e7f647
Updated version in README.md
2015-09-04 19:36:46 +09:00
Takatoshi Kondo
69607f4117
Updated version. Appended CHANGELOG.
2015-09-04 19:32:01 +09:00
Takatoshi Kondo
e5948a3450
Merge pull request #363 from nobu-k/add-missing-files
...
Add missing files to Makefile.am
2015-09-04 19:27:04 +09:00
Nobuyuki Kubota
3fc061b5fd
Add unsigned adaptors to CMakeLists.txt
2015-09-04 19:26:08 +09:00
Nobuyuki Kubota
2b38389f68
Add missing files to Makefile.am
2015-09-04 19:18:23 +09:00
Takatoshi Kondo
9e4dfb2484
Merge pull request #362 from nobu-k/osx-warning-fix
...
Fix some warnings on OS X
2015-09-04 19:07:32 +09:00
Nobuyuki Kubota
356a5ea42d
Fix some warnings on OS X
2015-09-04 18:51:53 +09:00
Nobuyuki Kubota
93142323f0
Merge pull request #349 from redboltz/variant
...
Variant
2015-09-04 18:42:47 +09:00
Nobuyuki Kubota
3352b2f029
Merge pull request #359 from redboltz/fix_243
...
Fixed #243 .
2015-09-04 18:34:19 +09:00
Takatoshi Kondo
364658ea99
Merge pull request #360 from redboltz/fixed_warnings_on_release_build
...
Fixed warnings on build with CMAKE_BUILD_TYPE=Release.
2015-09-04 18:21:39 +09:00
Takatoshi Kondo
50088365df
Merge pull request #361 from redboltz/fix_make_dist
...
Fixed 'make dist'.
2015-09-04 17:21:12 +09:00
Takatoshi Kondo
d640395765
Fixed 'make dist'.
2015-09-04 15:42:13 +09:00
Takatoshi Kondo
be0f8c280a
Fixed warnings on build with CMAKE_BUILD_TYPE=Release.
...
Added stream outputs to suppress warnings and to help understanding.
2015-09-01 11:06:29 +09:00
Takatoshi Kondo
9b156823ff
Merge pull request #358 from redboltz/fix_357
...
Fixed #357 .
2015-09-01 08:35:11 +09:00
Takatoshi Kondo
dc2e1a4ead
Fixed indent style.
2015-08-31 16:45:01 +09:00
Takatoshi Kondo
96f145812f
Fixed #243 .
...
std::vector<unsigned char> and std::array<unsigned char> are mapped to BIN.
std::vector<uint8_t> and std::array<uint8_t> are mapped to BIN if uint8_t is the same type of unsigned char, otherwise mapped to ARRAY.
Added array_ref. When client wraps BIN mapped types above with array_ref as msgpack::type::array_ref<std::vector<char> >, the type is mapped to ARRAY.
2015-08-31 14:06:39 +09:00
Takatoshi Kondo
33de24239a
Fixed #357 .
...
Added a conversion member function to msgpack::object.
If msgpack::object is nil then returns false else returns true and sets a value.
2015-08-31 09:05:09 +09:00
Takatoshi Kondo
d17c70cbb0
Added whitespaces at inheritance.
2015-08-30 19:17:19 +09:00
Takatoshi Kondo
88ab7b6349
Unified variant and variant_ref to basic_variant.
...
Added is_* and as_* member functions to basic_variant.
Added tests.
2015-08-30 17:05:04 +09:00
Takatoshi Kondo
df5f84d49d
Added totally ordered.
2015-08-30 13:08:00 +09:00
Takatoshi Kondo
0609347d82
Fixed typo.
...
Removed function stype casts for strings.
2015-08-30 12:28:53 +09:00
Takatoshi Kondo
61eb4b1f6e
Replaced boost::variant typedef with a class inheriting boost::variant.
...
Added char const* to std::string conversion constructor.
Added integer familiy constructor. int64_t is only used when an actual value is negative.
Clients no longer need to use casts for std::string and ingeter family.
2015-08-30 12:28:30 +09:00
Takatoshi Kondo
9ee1168cc4
Merge pull request #354 from redboltz/fix_348
...
Fixed #348 .
2015-08-26 16:14:55 +09:00
Takatoshi Kondo
95e0fc5cef
Merge pull request #344 from n1tehawk/contrib
...
refactor example/c/lib_buffer_unpack.c
2015-08-26 16:14:23 +09:00
Takatoshi Kondo
a0b7e7cc27
Merge pull request #353 from jonitis/feature_sbuffer_move_semantics
...
Add move semantics to sbuffer in c++11 mode
2015-08-19 18:15:17 +09:00
Takatoshi Kondo
92822996e2
Fixed #348 .
...
The parameter 'offset' of unpack() function family, not unpacker family, updates only when the function successfully finished.
The parameter 'offset' used to update even if a caller passes insufficient bytes to the unpack() function family.
2015-08-19 10:52:08 +09:00
Dainis Jonitis
e9eac32238
Fix member initialization order
2015-08-18 17:32:45 +03:00
Dainis Jonitis
c61446b988
operator = should return reference to self
2015-08-18 16:56:35 +03:00
Takatoshi Kondo
294aa52c3a
Merge pull request #350 from redboltz/fix_compile_option
...
-std=c++11 and -std=c++03 flags shouldn't be given in indivitual CMak…
2015-08-18 21:41:42 +09:00
Dainis Jonitis
90f7b9c732
Add move semantics to sbuffer
2015-08-18 14:50:47 +03:00
NiteHawk
720c18bcf8
add missing msgpack_unpacker_free(), and a "clean" assertion avoiding side effects
2015-08-18 12:24:16 +02:00
Takatoshi Kondo
23a040f2e5
Fixed std::map::erase is ambiguous problem in osx, clang, libc++ combination.
2015-08-18 18:15:10 +09:00
Takatoshi Kondo
cd9d6c5940
Added msgpack::type::variant and msgpack::type::variant_ref that is based on boost::variant.
...
You can convert to those types from any msgpack objects.
2015-08-18 17:47:27 +09:00
Takatoshi Kondo
8cae20ffc4
-std=c++11 and -std=c++03 flags shouldn't be given in indivitual CMakeLists.txt.
...
cpp03 examples should be compiled both -std=c++03 and -std=c++11.
2015-08-18 13:52:02 +09:00
NiteHawk
1788d6ce01
amend pull request ( #344 ) following the related discussion
...
There's a small problem remaining if assertions are disabled (with -DNDEBUG).
2015-08-17 21:49:03 +02:00
Nobuyuki Kubota
722143c0de
Merge pull request #345 from redboltz/added_has_as_to_pair
...
Added has_as SFINAE.
2015-08-17 12:21:25 -07:00
Nobuyuki Kubota
57b030a6dd
Merge pull request #347 from redboltz/update_comment
...
Updated comments to describe #if !define(_MSC_VER) reason.
2015-08-17 12:11:04 -07:00
Nobuyuki Kubota
9c0f629c68
Merge pull request #346 from aberaud/master
...
Make example build optional with cmake
2015-08-17 12:08:31 -07:00
Takatoshi Kondo
018c6c819e
Updated comments to describe #if !define(_MSC_VER) reason.
2015-08-18 00:06:36 +09:00
Adrien Béraud
8d3673e7ee
Make example build optional with cmake
2015-08-17 10:55:30 -04:00
NiteHawk
871a796037
fix: remove unused variable introduced by previous commit
2015-08-17 16:23:11 +02:00
NiteHawk
4e65bc35ed
refactor example/c/lib_buffer_unpack.c
...
The example has some duplicated code that somewhat distracts from
the main processing loop. I think placing this into a separate
function improves readability of the code.
2015-08-17 15:59:19 +02:00
Takatoshi Kondo
062864a6b7
Added has_as SFINAE.
2015-08-17 22:33:15 +09:00
Takatoshi Kondo
767099a0eb
Merge branch 'jonitis-feature_vs2015_support'
2015-08-15 21:15:41 +09:00
Takatoshi Kondo
1c810bcb74
Removed the tests that contain std::tuple with non default constructible class on MSVC2015.
...
It seems that MSVC2015 requires tuple elements' default constructor during 'as' process.
I don't know why.
2015-08-15 21:01:12 +09:00
Takatoshi Kondo
0fafa7a4b3
Updated boost path.
2015-08-15 14:27:39 +09:00
Takatoshi Kondo
c75009d513
Added explicit MSGPACK_USE_CPP03 on MSVC2015 and leter.
2015-08-15 10:37:00 +09:00
Takatoshi Kondo
a1ca382b2d
Added msgpack:: qualifier.
2015-08-14 23:31:51 +09:00
Takatoshi Kondo
8eadc04d37
Merge remote-tracking branch 'boltz/msvc2015_cpp11' into jonitis-feature_vs2015_support
2015-08-14 21:29:31 +09:00
Takatoshi Kondo
849ba867d6
Merge branch 'feature_vs2015_support' of https://github.com/jonitis/msgpack-c into jonitis-feature_vs2015_support
2015-08-14 20:43:50 +09:00
Takatoshi Kondo
11f2f333c6
Supported C++11 mode on MSVC2015.
2015-08-14 17:02:43 +09:00
Takatoshi Kondo
94ddf1ac5d
Merge pull request #342 from redboltz/fix_examles
...
Fix examles
2015-08-13 15:52:45 +09:00
Takatoshi Kondo
5da1abb1ce
Added byte stream dump.
2015-08-13 13:23:23 +09:00
Takatoshi Kondo
efc27e8eb4
Fixed the bug that map examples don't use MSGPACK_DEFINE_MAP.
...
Removed MSGPACK_USE_BOOST requirement from map based serialization.
2015-08-13 13:23:09 +09:00
Takatoshi Kondo
51dd7cbf22
Merge branch 'jen20-cmake-enable-shared'
2015-08-13 12:07:38 +09:00
Takatoshi Kondo
866e73acc3
Merge branch 'cmake-enable-shared' of https://github.com/jen20/msgpack-c into jen20-cmake-enable-shared
2015-08-13 11:13:10 +09:00
Takatoshi Kondo
a1fc7863e9
Merge pull request #341 from redboltz/refine_examples
...
Refine examples
2015-08-13 10:27:56 +09:00
Takatoshi Kondo
12b5a6235a
Added examples to cmake building process.
...
Set /WX flas that is warnings as errors on MSVC build.
Updated linux, osx, msvc build to refer to appropriate boost libraries.
2015-08-12 17:49:33 +09:00
Takatoshi Kondo
e50cc5d79f
Fixed warnings on MSVC.
2015-08-12 13:55:51 +09:00
Takatoshi Kondo
4501551267
Merge pull request #340 from redboltz/add_boost_preprocessor
...
Added Boost.Preprocessor as a submodule.
2015-08-12 13:50:55 +09:00
Takatoshi Kondo
e719cbbb7a
Removed 7zip installation from appveyor. It is pre-installed now.
2015-08-11 20:00:48 +09:00
Takatoshi Kondo
5adea26044
Added install files.
2015-08-11 19:58:54 +09:00
Takatoshi Kondo
4b2b3a18df
Added Boost.Preprocessor as a submodule.
...
Replaced boost/ with msgpack/ and BOOST with MSGPACK in Boost.Preprocessor files.
Renamed existing macron in versioning.hpp to avoid confict with MSGPACK_PP_*.
Removed MSGPACK_USE_BOOST requirement from MSGPACK_DEFINE_MAP.
2015-08-11 16:32:24 +09:00
Dainis Jonitis
8f8d1800bd
Add Visual Studio 2015 support
2015-08-11 09:46:17 +03:00
Dainis Jonitis
091715671c
Use version from HEAD
2015-08-11 09:39:41 +03:00
Nobuyuki Kubota
41bff7b96d
Merge branch 'add_boost_predef'
2015-08-10 11:30:29 -07:00
Nobuyuki Kubota
b13cb13efc
Fix compile errors on OS X due to signed-unsigned comparison in tests
2015-08-10 11:29:57 -07:00
Takatoshi Kondo
38f946d2cf
Merge pull request #338 from redboltz/fix_travis
...
Fixed typo.
2015-08-10 12:16:44 +09:00
Takatoshi Kondo
6007f4ea05
Fixed typo.
2015-08-10 10:32:43 +09:00
Takatoshi Kondo
078eb3a436
Merge pull request #335 from redboltz/fix_266
...
Fixed #266 .
2015-08-08 09:32:45 +09:00
Takatoshi Kondo
22b6bb9f78
Fixed #266 .
2015-08-06 14:46:41 +09:00
Takatoshi Kondo
4dcd162879
Merge branch 'makiolo-master'
2015-08-05 18:51:07 +09:00
Takatoshi Kondo
cd54ba99fc
Removed SET_SOURCE_FILES_PROPERTIES because msgpack-c source files compile as C now.
...
Added missing header files for installation.
2015-08-05 18:38:25 +09:00
Ricardo Marmolejo García
d437961546
* Changes for compile msgpack with Visual Studio 2012
2015-08-05 17:34:03 +09:00
Takatoshi Kondo
f1679a17a2
Merge pull request #334 from redboltz/add_travis_osx
...
Add travis osx
2015-08-05 15:45:27 +09:00
Takatoshi Kondo
afc9666760
Remove test cases to reduce travis-ci time using orthgonal table approach.
2015-08-05 14:25:55 +09:00
Takatoshi Kondo
d4199b59f9
Added osx support on travis-ci.
2015-08-05 13:49:15 +09:00
Takatoshi Kondo
7e2076b799
Merge pull request #333 from redboltz/fix_osx_build
...
Fixed osx compile error.
2015-08-04 22:12:29 +09:00
Takatoshi Kondo
41f27b5d62
Fixed osx compile error.
2015-08-04 15:44:06 +09:00
Takatoshi Kondo
d91c510d8c
Merge pull request #328 from redboltz/add_missing_iterator
...
Added iterator.hpp to the installing files list.
2015-08-04 09:59:08 +09:00
Takatoshi Kondo
ebb7c05bdc
Merge pull request #332 from redboltz/add_as_support_for_deque
...
Added 'as' support for std::deque.
2015-08-04 09:58:56 +09:00
Takatoshi Kondo
78b3e8adad
Added 'as' support for std::deque.
2015-08-03 17:57:46 +09:00
Takatoshi Kondo
3dc0e83513
Merge branch 'salford-systems-fixed_cpp11_adaptors_templates'
2015-08-03 17:36:31 +09:00
Takatoshi Kondo
298c97ec08
Added all template parameters support for containers.
...
e.g.) allocator.
Added tests.
Replaced variadic template parameters with individual template parameters on C++11 unordered containers.
2015-08-03 16:54:05 +09:00
Takatoshi Kondo
0f0598a6b9
Merge branch 'fixed_cpp11_adaptors_templates' of https://github.com/salford-systems/msgpack-c into salford-systems-fixed_cpp11_adaptors_templates
2015-08-03 09:54:06 +09:00
Takatoshi Kondo
fee4faa82f
Merge pull request #331 from redboltz/add_as_support_for_boost
...
Added 'as' support for boost containers.
2015-08-03 09:32:13 +09:00
Takatoshi Kondo
e182b06816
Merge pull request #322 from redboltz/fix_320
...
Fixed #320 . Added gcc version checking.
2015-08-03 09:31:56 +09:00
Takatoshi Kondo
f9a16ad690
Merge pull request #329 from redboltz/add_smart_pointers_support
...
Added std::shared_ptr and std::unique_ptr adaptors.
2015-08-03 09:31:26 +09:00
Takatoshi Kondo
2034427cfd
Added 'as' support for boost containers.
2015-08-02 16:01:55 +09:00
Vladyslav Frolov
f986370634
Improved templates for std::unordered_map and std::unordered_set so they handle all sorts of those
2015-07-31 04:16:14 -07:00
Takatoshi Kondo
db588909b9
Added std::shared_ptr and std::unique_ptr adaptors.
2015-07-31 12:39:11 +09:00
Takatoshi Kondo
7e6a498c14
Merge pull request #323 from jonitis/fix_compilation_warning
...
Fix compilation warnings about possible loss of data
2015-07-31 12:15:11 +09:00
Takatoshi Kondo
9650def29a
Added iterator.hpp to the installing files list.
...
Makefile.am has it but CMakeLists.txt didn't have it.
2015-07-31 10:30:37 +09:00
Takatoshi Kondo
2a7d9977b1
Merge pull request #327 from redboltz/jonitis-vector_of_non_default_constructible_values_2
...
Add 'as' support for containers.
2015-07-31 10:20:58 +09:00
Takatoshi Kondo
a746afa7cc
Added 'as' support for containers.
2015-07-30 16:18:20 +09:00
Dainis Jonitis
87f0da1ff1
Support vectors of non-default-constructible values in c++11 mode
2015-07-27 12:48:23 +03:00
Dainis Jonitis
14ec30038b
Fix compilation warnings about possible loss of data
2015-07-27 12:32:48 +03:00
Jonitis
09722fe540
Merge pull request #1 from jonitis/feature_fix_compilation_warning
...
Fix compilation warnings about possible loss of data
2015-07-27 11:34:47 +03:00
Jonitis
85b01d28da
Merge pull request #2 from jonitis/feature_vector_of_non_default_constructible_values
...
Support vectors of non-default-constructible values in c++11 mode
2015-07-27 11:34:36 +03:00
Dainis Jonitis
763c2613df
Support vectors of non-default-constructible values in c++11 mode
2015-07-27 11:06:20 +03:00
Dainis Jonitis
98c285c679
Fix compilation warnings about possible loss of data
2015-07-27 11:00:43 +03:00
Dainis Jonitis
2164723c86
Allow vectors of non-default-constructible values in c++11 mode
2015-07-27 10:38:46 +03:00
Dainis Jonitis
5cc712ceeb
Fix warning about possible loss of value
2015-07-27 10:37:12 +03:00
James Nugent
840101640b
Extend CMake CI to build static libs only
2015-07-23 22:15:35 -04:00
James Nugent
60e737f622
Link against msgpack-static when shared disabled
...
This commit causes the tests to be linked against the msgpack-static
target if MSGPACK_ENABLE_SHARED is set to OFF.
2015-07-23 22:10:41 -04:00
Takatoshi Kondo
4cc1087124
Fixed #320 . Added gcc version checking.
2015-07-23 08:38:32 +09:00
Dainis Jonitis
b750b17598
Fix endianness detection on OpenWrt
2015-07-21 14:45:19 +03:00
James Nugent
5f1d5e8722
Add MSGPACK_ENABLE_SHARED option, defaulting to ON
...
This allows building just static libraries using the CMake build, which
is useful if your product is entirely statically linked. By default
there is no change to the output - MSGPACK_ENABLE_SHARED must be
explicitly set to false to disable building the shared library.
2015-07-15 18:06:59 -05:00
Takatoshi Kondo
1b13523c7f
Merge pull request #315 from redboltz/fix_boost_pp_variadics
...
Added BOOST_PP_VARIADICS checking to avoid multiple definition.
2015-07-15 16:38:01 +09:00
Takatoshi Kondo
a35fe57737
Added BOOST_PP_VARIADICS checking to avoid multiple definition.
2015-07-15 13:54:55 +09:00
Takatoshi Kondo
b8d357c2ad
Merge pull request #313 from jonitis/master
...
c++11 code should use nothrow instead of throw()
2015-07-12 09:53:04 +09:00
Dainis Jonitis
4f1e47aa78
No need for MSGPACK_USE_CPP03 checks in c++11 specific file
2015-07-09 16:13:04 +03:00
Dainis Jonitis
7a131db2a0
c++11 code should use nothrow instead of throw()
2015-07-09 15:37:17 +03:00
Takatoshi Kondo
756d02f8c0
Added Boost.Predef to check environment such as endian.
...
https://github.com/boostorg/predef.git has been added as a submodule on
external/boost/predef.
In order to avoid macro name conflicts, replaced "BOOST_" with "MSGPACK_"
and "boost/" with "msgpack/" then copy replaced files to include/msgpack.
This process is described in CMakeLists.txt.
Replaced files are included as a part of msgpack-c. So you don't need to
do the converting process each time.
Fixed endian checking logic.
2015-07-08 16:38:12 +09:00
Takatoshi Kondo
d3450c1fce
Merge pull request #311 from redboltz/add_map_based_example
...
Added map based packing and converting example.
2015-07-07 13:35:31 +09:00
Takatoshi Kondo
fa7f840427
Added map based packing and converting example.
2015-07-07 09:55:45 +09:00
Takatoshi Kondo
e25ecc5287
Merge pull request #310 from redboltz/add_examples
...
Added an example of the non default constructible class.
2015-07-07 09:47:37 +09:00
Takatoshi Kondo
f1504d851a
Added an example of the non default constructible class.
...
Refined an intrusive example. It includes base class serialization. We can switch map based and array based serialization.
2015-07-06 16:01:36 +09:00
Takatoshi Kondo
1a97e761fb
Fixed merge mistake.
2015-07-06 16:00:06 +09:00
Takatoshi Kondo
6771302f62
Merge branch 'redboltz-add_define_map'
2015-07-06 14:20:19 +09:00
Takatoshi Kondo
188c0a9a6b
Merge branch 'add_define_map' of https://github.com/redboltz/msgpack-c into redboltz-add_define_map
2015-07-06 14:18:21 +09:00
Takatoshi Kondo
62537967fe
Merge pull request #308 from redboltz/fix_issue_307
...
Fix issue 307
2015-07-06 14:10:56 +09:00
Takatoshi Kondo
42df06dd3d
Fixed #307 .
...
Added 'inline' keyword to ext's constructor that defined at outside of the class definition.
2015-07-06 12:33:00 +09:00
Takatoshi Kondo
ab438ac9b9
Added multi files that includes msgpack.hpp linking test.
...
It detects a lack of inline keyword in a function definition.
2015-07-06 12:33:00 +09:00
Takatoshi Kondo
2216fda5ce
Merge branch 'redboltz-add_ext_ref'
2015-07-05 21:28:51 +09:00
Takatoshi Kondo
9b655faa64
Merge branch 'add_ext_ref' of https://github.com/redboltz/msgpack-c into redboltz-add_ext_ref
2015-07-05 20:04:30 +09:00
Takatoshi Kondo
a37e7232c7
Merge pull request #305 from redboltz/add_boost_fusion
...
Added Boost.Fusion support.
2015-07-05 10:34:06 +09:00
Takatoshi Kondo
b559187a7e
Merge pull request #302 from redboltz/add_no_defcon_support
...
Added no default constructible classes support.
2015-07-05 10:32:54 +09:00
Takatoshi Kondo
9e7564c9d7
Merge pull request #304 from redboltz/add_old_raw_pack_support
...
Added v4(old) raw packing support.
2015-07-05 10:22:08 +09:00
Takatoshi Kondo
584bd8575f
Added the comment for BOOST_PP_VARIADICS define.
2015-07-05 09:23:43 +09:00
Takatoshi Kondo
777e5f13f3
Added map-based class pack/convert support.
2015-07-05 09:23:43 +09:00
Takatoshi Kondo
6131e3d747
Fixed double comparison in tests.
2015-07-04 22:49:47 +09:00
Takatoshi Kondo
e0a2c2a4bf
Merge pull request #301 from redboltz/json_escape
...
Added JSON escape for values between 0x00 and 0x1f, and 0x7f.
2015-07-04 17:55:51 +09:00
Takatoshi Kondo
d26e68e3bb
Merge pull request #299 from redboltz/add_missing_inline
...
Added 'inline' to make_define().
2015-07-04 17:55:29 +09:00
Takatoshi Kondo
57ba93a2b2
Added Boost.Fusion support.
...
Fusion sequences can be serialized.
2015-07-01 15:07:45 +09:00
Takatoshi Kondo
34a42415be
Added v4(old) raw packing support.
2015-06-30 15:11:51 +09:00
Takatoshi Kondo
1a6f826f0f
Merge pull request #303 from llchan/master
...
Fix zbuffer empty string writes
2015-06-23 21:16:31 +09:00
Lawrence Chan
22e428b104
Add static inline to zbuffer.h function definitions
2015-06-22 17:17:34 -05:00
Lawrence Chan
89f117fcd9
Destroy zbuffer in C unit test
2015-06-22 15:36:37 -05:00
Lawrence Chan
9a50cc4345
Add zbuffer empty string write tests
2015-06-22 13:00:19 -05:00
Lawrence Chan
addf52e9f0
Fix zbuffer write of empty string
...
When a zlib stream has avail_in == 0, it will deflate with a Z_BUF_ERROR
to indicate that "no progress is possible". A zbuffer write with an
empty string will trigger this condition, and the write call
returns/raises an error/exception. The fix is simple: change the
do/while to a while loop, so that it only tries to deflate if there is
actually data to deflate.
2015-06-22 12:58:35 -05:00
Takatoshi Kondo
45b57c292c
Added no default constructible classes support.
2015-06-18 16:15:20 +09:00
Takatoshi Kondo
860a5ae06e
Added JSON escape for values between 0x00 and 0x1f, and 0x7f.
2015-06-18 14:01:51 +09:00
Takatoshi Kondo
55d09e6c30
Added 'inline' to make_define().
2015-06-18 12:55:19 +09:00
Takatoshi Kondo
32c42d2f4c
Merge branch 'proller-patch-1'
2015-06-02 09:48:32 +09:00
Takatoshi Kondo
1cfee8c347
Added an additional include path for DEBUG build.
2015-06-02 09:46:15 +09:00
Takatoshi Kondo
2893c799bf
Removed the post build settings and file.
2015-06-02 09:38:08 +09:00
Takatoshi Kondo
b4e50d54a0
Merge branch 'patch-1' of https://github.com/proller/msgpack-c into proller-patch-1
2015-06-02 09:36:15 +09:00
Takatoshi Kondo
d6c5682ef5
Merge pull request #288 from redboltz/work/add_deep_copy
...
Added a clone function for msgpack::object.
2015-06-01 17:45:46 +09:00
Takatoshi Kondo
de721af166
Updated: msgpack::unpacked is the typedef of the msgpack::object_handle now.
...
See the following discussion:
https://github.com/msgpack/msgpack-c/pull/288
2015-05-31 20:40:05 +09:00
Takatoshi Kondo
5f73d3f19f
Merge branch 'davidchappelle-master'
2015-05-27 21:21:59 +09:00
Takatoshi Kondo
846016b8b7
Tests added.
2015-05-27 21:19:39 +09:00
Takatoshi Kondo
b225f15f29
Merge branch 'master' of https://github.com/davidchappelle/msgpack-c into davidchappelle-master
2015-05-27 21:18:33 +09:00
proller
b1481b33f8
Update msgpack_vc.postbuild.bat
2015-05-27 13:41:27 +03:00
proller
c230ff7ab8
Update msgpack_vc8.vcproj
2015-05-27 13:39:52 +03:00
Takatoshi Kondo
6edf10cecd
Merge pull request #294 from redboltz/support_appveyor
...
Supported appveyor.
2015-05-27 17:39:26 +09:00
Takatoshi Kondo
d88d6c34b9
Supported appveyor.
2015-05-27 15:35:36 +09:00
Takatoshi Kondo
ff14be8fdb
Added EXT type supporting classes.
2015-05-27 13:12:26 +09:00
Takatoshi Kondo
f75da23e1d
Separated unpacked from object_handle to preserve the original ABI.
2015-05-26 09:53:55 +09:00
Nobuyuki Kubota
17900625d0
Merge pull request #290 from redboltz/fix_raw_ref_not_equal
...
Fixed raw_ref::operator!= implementation.
2015-05-25 12:25:56 -07:00
Nobuyuki Kubota
5722ab6b51
Merge pull request #285 from redboltz/add_const_ref
...
Replaced const msgpack::object with const msgpack::object&.
2015-05-25 12:24:35 -07:00
Nobuyuki Kubota
072f0cd183
Merge pull request #284 from redboltz/fixed_unused_parameter
...
Fixed unused parameter
2015-05-25 11:59:40 -07:00
Nobuyuki Kubota
4af6d4ddc8
Merge pull request #283 from redboltz/add_l_suffix
...
Replaced 201103 with 201103L.
2015-05-25 11:32:28 -07:00
Takatoshi Kondo
7359720403
Fixed raw_ref::operator!= implementation.
2015-05-22 14:04:44 +09:00
Takatoshi Kondo
9cb2c91d58
Fixed the lack of msgpack::move() on the self substituion test codes.
2015-05-22 09:36:21 +09:00
Takatoshi Kondo
9e18ac5d2d
Reverted msgpack::move() on the C++03. Const-correntness isn't broken now.
...
Implemented msgpack::object_handle using the same design pattern as std::auto_ptr and std::auto_ptr_ref.
Minimized the uses of #if defined(MSGPACK_USE_CPP03) conditional macro.
2015-05-22 09:21:58 +09:00
Takatoshi Kondo
e18f5b2d52
Added a clone function for msgpack::object.
...
The function prepares zone's chunk that has minimal size to deep copy.
2015-05-21 14:44:40 +09:00
Takatoshi Kondo
e979f04d75
Replaced const msgpack::object with const msgpack::object&.
2015-05-20 12:49:56 +09:00
Takatoshi Kondo
5002f2cf6a
Suppressed 'maybe uninitialized' warnings on g++.
2015-05-20 12:38:56 +09:00
Takatoshi Kondo
b6018f3d57
Fixed an unused parameter warning.
2015-05-20 12:38:10 +09:00
Takatoshi Kondo
aee537099d
Added -Wextra and -Werror option for gcc and clang.
...
Reformatted and untabified configure.in.
2015-05-19 16:03:58 +09:00
Takatoshi Kondo
e37f14fd6a
Replaced 201103 with 201103L.
2015-05-19 15:44:47 +09:00
Takatoshi Kondo
432c9cc542
Merge pull request #279 from jpetso/master
...
Use std::move (C++11) in map and set adaptors where possible.
2015-05-19 08:53:35 +09:00
David Chappelle
9d4da1ad2e
Object conversions return the specific type that was converted.
...
This allows us to easily make function calls that have parameters that are dependent
upon converting from msgpack objects to concrete types. For example:
void process_args(std::tuple<int,std::string>& args)
{
...
}
process_args(obj.convert(std::make_tuple(100,"hello")))
You can get similar behavior by using obj.as<...>() but its performance is highly
dependent upon the specific compiler and whether or not r-value references are
supported.
2015-05-15 16:21:54 -04:00
Jakob Petsovits
9725bac5c4
Use std::move (C++11) in map and set adaptors where possible.
...
In the std::map adaptor, remove the complicated iterator/insert
code and go with the cpp11/unordered_map.hpp approach instead.
Makes the code more consistent, avoids an extra copy, and the
previous complexity was unnecessary since std::map only maps to
a single element per key, unlike std::multimap.
2015-05-12 23:51:33 -04:00
Nobuyuki Kubota
68e270b029
Merge pull request #278 from redboltz/add_string_ref
...
Added Boost.StringRef support.
2015-05-08 15:29:41 -07:00
Nobuyuki Kubota
bf859f234e
Merge pull request #277 from redboltz/refine_base_class_support
...
Refined base class pack/unpack support.
2015-05-08 14:13:34 -07:00
Takatoshi Kondo
70fbae3c5f
Added Boost.StringRef support.
2015-05-02 11:02:57 +09:00
Takatoshi Kondo
7cd77292fc
Refined base class pack/unpack support.
...
Not only C++11 but also C++03 supported.
2015-05-01 22:05:23 +09:00
Takatoshi Kondo
e8e3052d1a
Merge pull request #276 from redboltz/fix_issue_275
...
Added valgrind version 3.10.1 from source.
2015-04-30 07:32:54 +09:00
Takatoshi Kondo
eb96312b41
Added valgrind version 3.10.1 from source.
...
Fixed MEMORYCHECK_COMMAND_OPTIONS location and value.
2015-04-29 22:26:30 +09:00
Takatoshi Kondo
ab359b259f
Merge pull request #269 from redboltz/add_dot_support
...
When a target system has 'dot', 'make doxygen' uses 'dot' on cmake.
2015-04-28 15:49:53 +09:00
Nobuyuki Kubota
83ee2c82df
Merge pull request #274 from redboltz/fix_issue_273
...
Fixed #273
2015-04-27 23:47:43 -07:00
Nobuyuki Kubota
0bfbd8dcbd
Merge pull request #264 from redboltz/add_protocol_new_example
...
Added the new protocol example.
2015-04-27 23:11:41 -07:00
Nobuyuki Kubota
a112ebb4df
Merge pull request #265 from redboltz/add_base_class_support
...
Base classes packing/converting/creating object::with_zone support in C+...
2015-04-27 23:06:53 -07:00
Takatoshi Kondo
993d007c4b
Changed the type of msgpack::object str index from int to uint32_t.
2015-04-23 08:33:08 +09:00
Takatoshi Kondo
92a7f3f794
Fixed #273
...
msgpack::object stream outputs became JSON format.
2015-04-22 14:59:02 +09:00
Takatoshi Kondo
2919033f3c
Merge pull request #270 from makeroo/master
...
Inhibited wrong occurrence of ad-hoc encoding of 64bit doubles on iOS
2015-04-20 16:58:15 +09:00
Nobuyuki Kubota
cb9114e31c
Merge pull request #268 from redboltz/support_boost
...
Added the Boost.Optional adaptor.
2015-04-19 18:45:08 -07:00
Simone Pierazzini
2f9912a012
Inhibited wrong occurrence of ad-hoc encoding of 64bit doubles on iOS
2015-04-16 16:02:17 +02:00
Takatoshi Kondo
fc10a3e486
When a target system has 'dot', 'make doxygen' uses 'dot' on cmake.
2015-04-09 15:10:58 +09:00
Takatoshi Kondo
dcdc51ce30
Merge pull request #267 from tbeu/Patch-inttypes-on-MSVC
...
Make use of MSVC specific macros for format specifiers
2015-04-09 15:07:46 +09:00
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
d3e6f017be
Base classes packing/converting/creating object::with_zone support in C++11.
2015-04-06 17:14:17 +09:00
Takatoshi Kondo
721700bfe5
Added the new protocol example.
2015-04-06 10:30:43 +09:00
Takatoshi Kondo
a277ea7c64
Updated version to 1.1.0. Updated CHANGELOG.md.
2015-04-03 15:28:05 +09:00
Takatoshi Kondo
285ccfeeea
Merge pull request #263 from redboltz/update_wiki_url
...
Updated the wiki URL.
2015-04-03 15:05:12 +09:00
Takatoshi Kondo
232b8039a0
Merge branch 'redboltz-fix_doxygen_support'
2015-04-03 15:00:09 +09:00
Takatoshi Kondo
10a315e00e
Added @cond - @endcond to adaptor_base.hpp.
2015-04-03 14:58:41 +09: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
dff7af2075
Merge branch 'redboltz-added_vector_bool_size_check'
2015-04-03 14:28:13 +09:00
Takatoshi Kondo
ed91c18af8
Merge branch 'added_vector_bool_size_check' of https://github.com/redboltz/msgpack-c into redboltz-added_vector_bool_size_check
...
# Conflicts:
# include/msgpack/adaptor/vector_bool.hpp
2015-04-03 14:28:00 +09:00
Takatoshi Kondo
616b1d8fb0
Updated the wiki URL.
2015-04-03 14:18:27 +09:00
Takatoshi Kondo
ce98964348
Merge pull request #262 from redboltz/fix_issue_249
...
Fix issue 249
2015-04-03 13:59:50 +09:00
Takatoshi Kondo
07a509a53a
Added const char array class template specialization.
2015-04-02 19:29:27 +09:00
Takatoshi Kondo
35483b95ae
Refined examples.
2015-04-02 18:24:19 +09:00
Takatoshi Kondo
a2c8154960
Updated examples to support new packing/converting mechanism.
2015-04-02 18:24:10 +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
6ec09053b1
Merge pull request #257 from redboltz/fix_issue_255
...
Fixed #255 . MSVC2012(_MSC_VER=1700) doesn't have inttypes.h.
2015-03-30 10:37:30 +09:00
Takatoshi Kondo
5401660b07
Fixed #255 . MSVC2012(_MSC_VER=1700) doesn't have inttypes.h.
2015-03-30 09:07:06 +09:00
Takatoshi Kondo
f3caa8e160
Merge pull request #253 from tbeu/Avoid-C99-style-declarations
...
Do not interleave code and declarations in C files
2015-03-28 10:16:55 +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
Takatoshi Kondo
1911513acb
Added a container size checking to vector<bool>.
...
All other containers have already been added it.
2015-03-26 11:35:47 +09:00
Nobuyuki Kubota
7bee573a72
Merge branch 'release-1.0.1'
2015-03-22 11:57:27 -07:00
Nobuyuki Kubota
5568abb6ab
verion 1.0.1
2015-03-22 11:49:09 -07:00
Nobuyuki Kubota
67486480ac
Merge pull request #245 from redboltz/fix_issue_244
...
Fixed #244
2015-03-23 03:18:01 +09:00
Nobuyuki Kubota
0e3bb789b8
Merge pull request #240 from tumdum/master
...
Small typos in quickstarts.
2015-03-23 03:15:55 +09:00
Nobuyuki Kubota
e1eabbfebf
Merge pull request #242 from redboltz/add_1_0_0_changelog
...
Updated for version 1.0.0 release.
2015-03-23 03:13:07 +09:00
Takatoshi Kondo
e416b534b8
Fixed #244
...
Fixed an inheriting constructor.
2015-03-21 16:34:35 +09:00
Takatoshi Kondo
212ef8eb2b
Updated for version 1.0.0 release.
2015-03-17 11:08:38 +09:00
Tomasz Kłak
7bf06a5885
Update QUICKSTART-CPP.md
...
Proper english.
2015-03-13 17:17:23 +01:00
Tomasz Kłak
1822523289
Update QUICKSTART-C.md
...
Fixed typo regarding missing rpc implementation.
2015-03-13 17:15:56 +01:00
Nobuyuki Kubota
156a4403ab
Merge pull request #239 from redboltz/add_msgpack_prefix_to_erb
...
Added msgpack prefix to erb template files.
2015-03-11 11:53:31 +09:00
Takatoshi Kondo
ad5da7f131
Added msgpack prefix to erb template files.
...
The files that are generated by preprocess have already have the prefix.
2015-03-11 10:35:23 +09:00
Nobuyuki Kubota
62be3f1212
version 1.0.0
2015-03-10 21:42:47 +09:00
Nobuyuki Kubota
8dbe25a51d
Add missing headers and files for make dist
2015-03-10 21:35:55 +09:00
Takatoshi Kondo
7cfd4bb1d8
Updated version to 1.0.0
2015-03-10 21:25:34 +09:00
Nobuyuki Kubota
037a108c49
Merge pull request #238 from redboltz/move_serialize_operator
...
Moved serialize operator.
2015-03-10 21:14:24 +09:00
Takatoshi Kondo
79a127a8b6
Moved serialize operator.
2015-03-10 21:14:20 +09:00
Nobuyuki Kubota
ace27f6238
Merge pull request #237 from redboltz/add_version_revision
...
Added version revision prototype declaration.
2015-03-10 21:08:37 +09:00
Nobuyuki Kubota
cc2ded6338
Merge pull request #236 from redboltz/add_depth_limit2
...
Added depth limit on unpack.
2015-03-10 21:08:01 +09:00
Takatoshi Kondo
13a746f6fa
Added msgpack prefix.
2015-03-10 21:08:22 +09:00
Nobuyuki Kubota
b0ff2802d2
Add msgpack prefix to type_errors
2015-03-10 20:59:34 +09:00
Nobuyuki Kubota
4b0c90fc90
Merge branch 'add_msgpack_prefix'
...
Conflicts:
include/msgpack/adaptor/char_ptr.hpp
include/msgpack/adaptor/cpp11/array.hpp
include/msgpack/adaptor/cpp11/array_char.hpp
include/msgpack/adaptor/cpp11/tuple.hpp
include/msgpack/adaptor/cpp11/unordered_map.hpp
include/msgpack/adaptor/cpp11/unordered_set.hpp
include/msgpack/adaptor/deque.hpp
include/msgpack/adaptor/list.hpp
include/msgpack/adaptor/map.hpp
include/msgpack/adaptor/set.hpp
include/msgpack/adaptor/string.hpp
include/msgpack/adaptor/tr1/unordered_map.hpp
include/msgpack/adaptor/tr1/unordered_set.hpp
include/msgpack/adaptor/vector.hpp
include/msgpack/adaptor/vector_char.hpp
include/msgpack/object.hpp
include/msgpack/unpack.hpp
2015-03-10 20:57:55 +09:00
Takatoshi Kondo
4b11fb32cd
Added version revision prototype declaration.
2015-03-10 20:41:59 +09:00
Nobuyuki Kubota
f707c6b47c
Add missing msgpack prefix
2015-03-10 20:38:58 +09:00
Takatoshi Kondo
081ee0e99a
Added depth limit on unpack.
2015-03-10 20:30:22 +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
ac1eb6e1d3
Merge branch 'reference-args'
2015-03-10 19:16:37 +09:00
Nobuyuki Kubota
343ceabe9a
Fix msgpack_object to be passed by reference
2015-03-10 19:12:25 +09:00
Takatoshi Kondo
eb765d21f2
Fixed MSVC++ warning about int to bool conversion.
2015-03-10 19:04:51 +09:00
Takatoshi Kondo
2d5c68055c
Added explicit cast to vector<bool> internal type.
2015-03-10 19:04:23 +09:00
Nobuyuki Kubota
de68fbd6d0
Merge branch 'support_cpp11_atomic'
2015-03-10 18:53:14 +09:00
Takatoshi Kondo
118cf7270c
Fixed a compile error on clang++ 3.4.1 on FreeBSD and Yosemite.
2015-03-10 18:37:36 +09:00
Nobuyuki Kubota
cf1487f8ba
Merge branch 'fix_decrement_typo'
...
Conflicts:
include/msgpack/unpack.hpp
2015-03-10 18:25:38 +09:00
Nobuyuki Kubota
e4cd479bf3
Merge branch 'master' of github.com:msgpack/msgpack-c
2015-03-10 17:35:39 +09:00
Nobuyuki Kubota
8dae63e4c1
Merge branch 'add_std_prefix'
...
Conflicts:
include/msgpack/adaptor/char_ptr.hpp
include/msgpack/adaptor/string.hpp
2015-03-10 17:34:36 +09:00
Nobuyuki Kubota
a3f350842c
Merge pull request #231 from redboltz/remove_double_underscore
...
Removed double underscore.
2015-03-10 17:23:15 +09:00
Nobuyuki Kubota
c1e9f92d7f
Merge branch 'fix_issue_226_author_fixed'
...
Conflicts:
include/msgpack/unpack.hpp
2015-03-10 17:21:58 +09:00
Nobuyuki Kubota
582fe38e78
Merge branch 'fix_issue_167'
2015-03-10 16:55:46 +09:00
Nobuyuki Kubota
6443738f66
Add serialization test of non-const char*
2015-03-10 16:54:45 +09:00
Nobuyuki Kubota
45eb2ad0c7
Merge branch 'redboltz_fix_issue_220'
...
Conflicts:
include/msgpack/unpack.hpp
2015-03-10 00:48:32 -07:00
Nobuyuki Kubota
37593400c3
Replace a MACRO with const size_t and undef some MACROs
2015-03-10 00:39:56 -07:00
Nobuyuki Kubota
60648fc3a8
Merge pull request #218 from redboltz/replace_embed_stack_with_vector
...
Replaced m_stack legacy array with std::vector.
2015-03-10 16:03:59 +09:00
Takatoshi Kondo
0482e4fcd1
Supported the C++11 atomic.
2015-03-09 16:02:03 +09:00
Takatoshi Kondo
82a10cba5c
Fixed typo.
...
Replaced 'decl' with 'decr'.
2015-03-09 14:49:18 +09:00
Takatoshi Kondo
0d9a21ea08
Added msgpack prefix to packer.
2015-03-08 20:49:40 +09:00
Takatoshi Kondo
f399ec8c30
Added msgpack prefix to support API versioning.
2015-03-07 22:58:45 +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
Takatoshi Kondo
a4aa14d1e2
Added std prefix.
2015-03-04 22:50:47 +09:00
Takatoshi Kondo
f7f2d4b990
Removed double underscore.
2015-03-04 22:44:11 +09:00
Takatoshi Kondo
c675881f3b
Fixed #220 .
...
Added MSGPACK_ prefix to unpack macros.
2015-02-19 17:44:42 +09:00
Takatoshi Kondo
f6d0cd9a4b
Merge pull request #222 from jszakmeister/fix-byteswap-freebsd-and-openbsd
...
Don't include byteswap.h and FreeBSD and OpenBSD.
2015-02-19 16:53:20 +09:00
John Szakmeister
4ef5894856
Don't include byteswap.h and FreeBSD and OpenBSD.
2015-02-17 17:33:49 -05:00
Nobuyuki Kubota
07ddfa1430
Add a list of contributors in README.md and remove AUTHORS file
...
This commit also adds AUTHORS and ChangeLog to .gitignore.
ChangeLog is only used by autoconf/automake and it has a quite
strict format. Since msgpack-c's change log is now written in
Markdown, it's difficult to follow the ChangeLog format.
So, unlike README.md, bootstrap doesn't copy CHANGELOG.md
to ChangeLog.
2015-02-15 16:52:27 -08:00
Nobuyuki Kubota
252d66a4b2
Merge branch 'master' of https://github.com/haneefmubarak/msgpack-c into general-repo-clean-up
2015-02-15 16:08:38 -08:00
Takatoshi Kondo
b4eba4ba09
Merge pull request #219 from redboltz/fix_issue_209
...
Fixed #209
2015-02-07 21:56:00 +09:00
Takatoshi Kondo
2266505eed
Fixed #209
...
Added conditional include stdbool.h based on @equalsraf comment.
2015-02-07 21:25:49 +09:00
Takatoshi Kondo
46e2398e02
Replaced m_stack legacy array with std::vector.
2015-02-04 23:15:32 +09:00
Takatoshi Kondo
3662a17e81
Merge pull request #212 from redboltz/add_zone_reuse_example
...
Added an unpacking msgpack::object on an existing zone example.
2015-02-03 21:52:09 +09:00
Takatoshi Kondo
66f221d088
Merge pull request #211 from redboltz/add_cpp11_container_example
...
Added a C++11 container example.
2015-02-03 21:51:56 +09:00
Takatoshi Kondo
9ed4e443fb
Added an unpacking msgpack::object on an existing zone example.
2015-02-03 21:20:34 +09:00
Takatoshi Kondo
15aec0493d
Added a C++11 container example.
2015-02-03 20:40:44 +09:00
Takatoshi Kondo
d6a7bd1995
Merge pull request #207 from redboltz/refine_examples
...
Refine examples
2015-02-02 21:56:41 +09:00
Takatoshi Kondo
ff86d61799
Replaced auto& with auto const& for msgpack::object.
...
Replaced auto with auto const& for msgpack::object.
Avoided msgpack::object conversion in EXPECT_EQ.
2015-02-02 15:27:15 +09:00
Mizuki Hirata
97886c50e7
Fixed iterator test case.
2015-02-02 15:27:15 +09:00
Mizuki Hirata
327b0db626
Added versioning namespace and test case to iterator.
2015-02-02 15:27:15 +09:00
Mizuki Hirata
994144dac2
Add range-based for loop support.
2015-02-02 15:27:15 +09:00
Takatoshi Kondo
023f81ae9c
Added char* support.
2015-02-01 22:30:21 +09:00
Takatoshi Kondo
83fac26762
Added enum examples.
...
Added converting to zone with or without zone.
2015-02-01 22:10:13 +09:00
Takatoshi Kondo
213ba44b65
Added copylight text.
...
Refined examples.
2015-02-01 21:35:48 +09:00
Takatoshi Kondo
fa231139d7
Merge pull request #205 from redboltz/fix_issue_204
...
Fixed #204 , #202 .
2015-02-01 21:20:31 +09:00
Takatoshi Kondo
5cd1c6bfa1
Merge pull request #201 from redboltz/fix_issue_184
...
Added unpack function using existing zone.
2015-02-01 21:18:05 +09:00
Takatoshi Kondo
c4fb47c00d
Fixed #204 , #202 .
...
enum support had been incomplete.
This fix made enum support complete.
Replaced int with auto on c++11 scoped enum.
Replaced template specializations with function overloads on operator<< and operator>> for enum.
enum can convert to object with and without zone.
When you want to adapt enum, you need to write as follows:
// NOT msgpack.hpp
enum yourenum {
elem
};
MSGPACK_ADD_ENUM(yourenum);
// msgpack.hpp should be included after MSGPACK_ADD_ENUM(...)
int main() {
msgpack::object obj(yourenum::elem);
}
2015-01-31 22:19:31 +09:00
Takatoshi Kondo
70e50d9679
Added unpack function using existing zone.
...
Removed redundant inline keyword form declarations.
2015-01-30 22:57:27 +09:00
Takatoshi Kondo
978e6b9057
Merge pull request #200 from anton-sergeev/master
...
Fix cmake for subproject usage
2015-01-30 21:58:32 +09:00
Anton Sergeev
571f1a27a2
Fix cmake for subproject usage
...
Signed-off-by: Anton Sergeev <Anton.Sergeev@elecard.ru >
2015-01-26 20:32:31 +06:00
Takatoshi Kondo
c3518c0666
Included vector header.
2015-01-25 22:25:35 +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
414da4e8c6
Merge pull request #195 from nobu-k/configure-version-fix
...
Support OS X's sed in configure.in
2015-01-17 23:43:20 +09:00
Nobuyuki Kubota
3eadb124fc
Support OS X's sed in configure.in
2015-01-16 22:15:05 +09:00
Nobuyuki Kubota
fd9eb26688
Add static inline to msgpack_zone_malloc_no_align
2015-01-16 21:47:49 +09:00
Nobuyuki Kubota
6c59e5195a
Merge branch 'fix_issue_191'
...
Conflicts:
test/streaming_c.cpp
2015-01-16 21:47:13 +09:00
Nobuyuki Kubota
3bdf646cc6
Merge pull request #192 from redboltz/fix_issue_190
...
Fixed #190 .
2015-01-16 20:05:39 +09:00
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
Takatoshi Kondo
a84f444ce2
Merge pull request #185 from bajamircea/master
...
Fix one more memory size calculation.
2015-01-06 10:20:07 +09:00
Mircea Baja
7e597779e4
Fix one more memory size calculation.
...
See https://github.com/msgpack/msgpack-c/issues/149
and the commit d6cc5494a9
2015-01-05 21:55:57 +00:00
Takatoshi Kondo
bf8c830eef
Merge pull request #183 from spatz/patch-3
...
Comment unused variable name
2015-01-05 09:55:37 +09: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
Haneef Mubarak
c71ce9eb49
minor markdown error
2015-01-02 23:14:16 -08:00
Haneef Mubarak
f105b4bbb0
misc top level directory cleanup
2015-01-02 23:09:44 -08:00
Haneef Mubarak
f64be3b2d0
add all contributors to AUTHORS file
2015-01-02 23:05:25 -08:00
Haneef Mubarak
abac9fe90a
add links to QUICKSTART
2015-01-02 22:31:59 -08:00
Haneef Mubarak
5798fa0e47
rewrite and cleanup README
2015-01-02 22:27:55 -08: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
Takatoshi Kondo
f79fd82953
Merge pull request #179 from spatz/patch-1
...
Move constructors and operator= should be noexcept
2015-01-02 17:53:47 +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
7ab7eaf61b
Merge pull request #177 from redboltz/fix_issue_176
...
Fixed https://github.com/msgpack/msgpack-c/issues/176
2014-12-22 11:27:25 +09: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
Takatoshi Kondo
2d61fdf865
Merge pull request #172 from bajamircea/master
...
Added check for already defined NOMINMAX
2014-12-09 22:40:36 +09:00
Mircea Baja
6e560e345a
Added check for already defined NOMINMAX
2014-12-08 21:36:26 +00:00
Takatoshi Kondo
8b796dc788
Added zone alignment tests.
2014-12-05 22:08:31 +09: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
Nobuyuki Kubota
1a615af437
Merge pull request #169 from redboltz/fix_issue_168
...
Added adaptors for the C++11 version of unordered containers.
2014-12-05 17:13:51 +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
Nobuyuki Kubota
ac3433f5dd
Merge pull request #165 from redboltz/implement_non_copyable
...
Made copy constructors and copy assignment operators private for classes...
2014-11-26 14:10:10 -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
0de0b434b3
Merge branch 'refine_non_intrusive_example'
2014-11-15 17:43:23 -08:00
Nobuyuki Kubota
7eb3d2aa59
Change the type of the return value to a const reference
2014-11-15 17:41:43 -08: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
Nobuyuki Kubota
3d20ec6f21
Merge pull request #160 from redboltz/fix_memory_allocation
...
Fixed memory size caluclation problem.
2014-11-15 17:12:23 -08:00
Takatoshi Kondo
bcdbf78542
Updated infinity test better way.
...
Added NaN tests.
2014-11-03 10:03:05 +09:00
Takatoshi Kondo
a4af97b32c
Supported dll export for msvc.
...
Supported tests for msvc.
2014-11-02 20:16:20 +09:00
Takatoshi Kondo
e00b299fe0
Refined the non-intrusive example. The target class no longer needs public data members.
2014-11-01 22:42:36 +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
96c688708c
Merge pull request #158 from redboltz/update_examples
...
Moved examples.
2014-11-01 18:28:15 +09:00
Takatoshi Kondo
79e7a9810c
Moved examples.
...
Added intrusive and non-intrusive versions of packing and unpacking examples.
2014-11-01 18:13:52 +09:00
Takatoshi Kondo
a0ae0289dc
Merge pull request #157 from redboltz/fix_vc2008_warnings
...
Added warnings suppress option.
2014-11-01 17:04:51 +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
1c54d804f5
Merge pull request #156 from redboltz/fix_example_issue_155
...
Fixed return type.
2014-11-01 13:40:14 +09:00
Takatoshi Kondo
111efdf50f
Fixed return type.
2014-11-01 13:18:17 +09:00
Takatoshi Kondo
dac8f6290d
Merge pull request #154 from redboltz/fix_issue_153
...
Fixed https://github.com/msgpack/msgpack-c/issues/153
2014-10-31 16:23:23 +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
8e24d9206a
Merge pull request #152 from redboltz/fix_inttypes_on_vc2010
...
https://github.com/msgpack/msgpack-c/issues/147
Fixed MSVC2010 doesn't have inttypes.h problem.
2014-10-31 11:31:17 +09:00
Takatoshi Kondo
b78b49a7bd
Fixed MSVC2010 doesn't have inttypes.h problem.
2014-10-31 10:50:19 +09:00
Takatoshi Kondo
561e9ba105
Merge pull request #150 from redboltz/fix_fprintf_macro
...
Fixed https://github.com/msgpack/msgpack-c/issues/148
2014-10-31 10:17:24 +09:00
Takatoshi Kondo
6e84266043
Merge pull request #151 from redboltz/fix_build_vc2010
...
Fixed https://github.com/msgpack/msgpack-c/issues/147
2014-10-31 10:17:13 +09:00
Takatoshi Kondo
151c92d08d
Fixed https://github.com/msgpack/msgpack-c/issues/147
...
On VC9 (Visual Studio 2008) and VC10 (Visual Studio 2010), .c files are compiled as C++. Otherwise the files are compiled as C.
2014-10-31 00:04:44 +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
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
04aa309f24
Merge pull request #145 from redboltz/add_help_comments_for_compile_error
...
Added help comments for compile error.
2014-10-27 20:12:44 +09:00
Takatoshi Kondo
69b2ea4002
Added help comments for compile error.
2014-10-27 17:41:06 +09:00
Takatoshi Kondo
8ddc219365
Merge pull request #143 from redboltz/solve_conflicts_on_readme
...
Solved conflicts on README.md.
2014-10-27 13:00:40 +09:00
Takatoshi Kondo
a9cf916b82
Solved conflicts on README.md.
2014-10-27 11:09:49 +09:00
Takatoshi Kondo
8455a2eb70
Merge branch 'redboltz-poc/0.6'
2014-10-26 15:40:41 +09:00
Takatoshi Kondo
5c0f1db25c
Merge branch 'poc/0.6' of https://github.com/redboltz/msgpack-c into redboltz-poc/0.6
...
Conflicts:
.travis.yml
CMakeLists.txt
README.md
ci/build_autotools.sh
ci/build_cmake.sh
src/msgpack/object.hpp
src/msgpack/type/fixint.hpp
src/msgpack/type/int.hpp
src/msgpack/type/tr1/unordered_map.hpp
src/msgpack/type/tr1/unordered_set.hpp
test/msgpack_test.cpp
test/object.cc
2014-10-26 15:40:22 +09:00
Takatoshi Kondo
466986b519
Merge branch 'redboltz-api_versioning' into poc/0.6
2014-10-26 13:28:03 +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
bb984d3445
Merge pull request #141 from redboltz/add_32bit_test_for_travisci
...
Added a 32bit environment tests for travis-ci.
2014-10-26 09:33:05 +09:00
Takatoshi Kondo
f8e2766d28
Added a 32bit environment tests for travis-ci.
2014-10-26 09:06:01 +09:00
Takatoshi Kondo
2d5d12f9a6
Merge pull request #140 from redboltz/fix_issue95_on_poc0.6
...
Fixed https://github.com/msgpack/msgpack-c/pull/95 on poc/0.6 branch.
2014-10-24 22:37:37 +09:00
Takatoshi Kondo
11a2a1b8ec
Fixed https://github.com/msgpack/msgpack-c/pull/95 on poc/0.6 branch.
2014-10-21 22:13:53 +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
07e7ad6b7e
Merge pull request #137 from redboltz/remove_tr1_from_test
...
Removed wrong tr1:: from unordered containers.
2014-10-19 19:37:10 +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
1e7fbc0349
Removed wrong tr1:: from unordered containers.
2014-10-12 00:20:54 +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
Nobuyuki Kubota
bf4a57da34
Merge branch 'object-with-zone-copy'
2014-10-06 14:07:06 -07:00
Nobuyuki Kubota
2fcbe6116d
Replace C-style casts with C++-style ones
2014-10-06 14:06:21 -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
Takatoshi Kondo
0176dd760a
Merge pull request #131 from shafik/master
...
Fixing undefined behavior introduced by the incorrect use of comma
2014-09-20 17:39:44 +09:00
Jakob Petsovits
d30548af3f
Add support for copying an object to an object::with_zone.
...
With test.
2014-09-20 00:13:40 -04:00
Jakob Petsovits
ab12b2b2b9
Specialize operator<<(packer, T) also for object::with_zone.
...
It already existed for T = object, but if trying to pass an
object::with_zone it would match the generic operator<<() instead.
That operator calls o.msgpack_pack(), which doesn't exist and
causes a compile error.
(Re-)Using the overload for object is a better way to handle this.
2014-09-19 22:48:24 -04:00
Takatoshi Kondo
7ce69a362f
Merge pull request #130 from jpetso/master
...
Support std::unordered_map/set even if using libstdc++ from GCC.
2014-09-20 00:06:51 +09:00
Takatoshi Kondo
cc08146b1c
Merge pull request #132 from redboltz/support_travis_ci
...
Added travis-ci support.
2014-09-19 23:57:40 +09:00
Takatoshi Kondo
6896cc602f
Added travis-ci support.
2014-09-19 23:42:07 +09:00
Shafik Yaghmour
d8f366daf2
Fixing undefined behavior introduced by the incorrect use of comma operator with the conditional operator. The middle expression in a conditional operator between the ? and : is implicitly parenthesized but the end expression is not. Since the comma operator as he lowest precendence( http://en.cppreference.com/w/cpp/language/operator_precedence ) this means the conditional operator will be evaluated first and then the expression on the right hand side of the comma operator will be evaluated. This leads to undefined behavior because the last member of the union being updated will not be the member that will be used next which is strictly undefined in C++ although gcc and clang aloow this type punning as an extension but is clearly not portable behavior nor was this the intended behavior. instead of parenthesising the end expression I choose to use an if/else which is not subject to such easy to miss precdence issues. This Coliru live code demonstrates the bug with simple example: http://coliru.stacked-crooked.com/a/1041aaa8380feeaa the code also demonstrates the using the right warning flags gcc will generate a warning for this code.
2014-09-18 14:29:11 -04:00
Jakob Petsovits
ef649009e4
Support std::unordered_map/set even if using libstdc++ from GCC.
...
When passing the appropriate compiler flags, libstdc++ has
supported std::unordered_map and std::unordered_set for a
long time, even without the tr1 namespace. There's no reason to
limit support of non-tr1 containers to libc++ (clang) and MSVC.
2014-09-17 16:52:33 -04: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
Takatoshi Kondo
ecf4b09acd
Merge pull request #129 from tarruda/fix-ext-8-16-32
...
Fix size packing/unpacking for EXT 8/16/32
2014-09-16 08:52:48 +09: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
Takatoshi Kondo
847a7852e5
Merge branch 'jpetso-master'
2014-09-10 10:59:49 +09:00
Jakob Petsovits
e265beef91
Install version.h even if doing an out-of-source build.
2014-09-09 16:21:38 -04:00
Takatoshi Kondo
0335df55e1
Merge pull request #123 from redboltz/add_memory_check
...
Add memory check
2014-09-09 14:53:23 +09:00
Takatoshi Kondo
dd4043a616
Removed unused variables.
2014-09-09 14:29:10 +09:00
Takatoshi Kondo
6a8412d6de
Separated msgpack_test.cpp.
...
Renamed test files.
Decreased test's loop counter to avoid travis-ci no output timeout.
The number of loops is not so meaningful.
2014-09-09 14:15:21 +09:00
Takatoshi Kondo
7491c1996a
Added memory checking for travis-ci cmake build.
2014-09-09 13:38:07 +09:00
Takatoshi Kondo
0ab14b4138
Merge pull request #121 from redboltz/fix_cmake_binary_dir
...
Fixed the path of the msgpack.pc to support structured build.
2014-09-09 10:27:52 +09:00
Takatoshi Kondo
6e77c6df11
Merge pull request #122 from redboltz/add_install_test
...
Added 'make install' as a test target.
2014-09-09 10:14:24 +09:00
Takatoshi Kondo
bcc91d78e9
Merge branch 'tarruda-ext-support-for-c' into poc/0.6
2014-09-09 10:09:02 +09:00
Takatoshi Kondo
32b65dba47
Added 'make install' as a test target.
2014-09-09 07:37:29 +09:00
Takatoshi Kondo
aa75e6ecd3
Fixed the path of the msgpack.pc to support structured build.
2014-09-09 06:28:52 +09:00
Takatoshi Kondo
dc679a2572
Merge pull request #119 from davidchappelle/master
...
Amendment to cmake changes for out of source builds
2014-09-09 06:21:38 +09:00
David Chappelle
b6bc7f7ecb
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
CMakeLists.txt
2014-09-08 15:57:43 -04:00
Thiago de Arruda
896dead7cc
Adapt msgpack_test.cpp EXT cases to msgpackc_test.cpp
2014-09-08 12:11:39 -03:00
Thiago de Arruda
dfa277a9e0
Add EXT support to C library
2014-09-08 12:11:38 -03:00
Jason Newton
501260eb54
correct paths for x86_64/generic installations
2014-09-08 22:27:38 +09:00
Takatoshi Kondo
370a9251f5
Merge pull request #117 from redboltz/removed_unused_member_variable
...
Removed unused member variable.
2014-09-08 17:27:16 +09:00
Takatoshi Kondo
7737f1cb77
Removed unused member variable.
2014-09-08 17:14:56 +09:00
Takatoshi Kondo
f72022037c
Merge pull request #116 from redboltz/limited_travis_target
...
Limited branches for travis-ci.
2014-09-08 17:08:16 +09:00
Takatoshi Kondo
865528f778
Limited branches for travis-ci.
2014-09-08 17:01:04 +09:00
Takatoshi Kondo
d54048eabe
Merge pull request #114 from redboltz/poc/0.6
...
Added travis-ci support.
2014-09-08 16:36:12 +09:00
Takatoshi Kondo
103a6c56e4
Added travis-ci support.
2014-09-08 16:38:44 +09: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
Takatoshi Kondo
7ebdb63131
Merge pull request #113 from tarruda/fix-memory-leak
...
Fix memory leak in msgpack_unpacker_next
2014-09-07 12:45:23 +09:00
Thiago de Arruda
a186725213
Fix memory leak in msgpack_unpacker_next
2014-09-06 20:01:52 -03:00
David Chappelle
8615358515
Fixed out of source cmake builds to work correctly.
...
The out of source cmake build was not working correctly. In particular,
the main CMakeLists.txt was not installing from the correct location.
In the case of msgpack.pc, it was trying to install from the top repo
directory instead of from the cmake build directory. So you can now
build as follows:
$ cd msgpack-c
$ mkdir build
$ cd build
$ cmake ../
$ make
$ make install
2014-09-05 19:22:04 +00: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
Jason Newton
93d0f0bd00
inline default_reference_func to avoid multiple definition errors
2014-09-03 10:26:09 +09:00
Jason Newton
a0f5392876
correct paths for x86_64/generic installations
2014-09-03 10:26:09 +09:00
Takatoshi Kondo
5896ff3746
Fixed -Wextra warnings on gcc.
2014-09-02 18:15:58 +09:00
Takatoshi Kondo
d15e49cb73
Updated version getting mechanism.
...
Versions are gotten from version_master.h
2014-09-02 16:42:05 +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
f0a12a23a1
Merge branch 'tarruda-poc/0.6' into poc/0.6
2014-09-01 13:20:01 +09:00
Thiago de Arruda
30b946ee85
Support out-of-tree builds with cmake
...
This changes the location of msgpack.pc to support out-of-tree builds.
2014-08-31 10:42:27 -03:00
Takatoshi Kondo
a388000d47
Fixed autotools AC_INIT with external information implemantation.
...
See:
http://stackoverflow.com/questions/22871340/using-a-variable-in-ac-init
2014-08-31 20:38:52 +09:00
Takatoshi Kondo
4c888294b5
Merge pull request #107 from redboltz/fix_105_for_poc0.6
...
Fixed operator>>(object const& o, various types& v) return type and valu...
2014-08-31 17:23:18 +09:00
Takatoshi Kondo
68bf4acb4b
Fixed operator>>(object const& o, various types& v) return type and value problem.
...
https://github.com/msgpack/msgpack-c/issues/105
2014-08-29 00:43:18 +09:00
Takatoshi Kondo
2c2df64427
Fixed C++03 and C++11 conditional tests building problem on cmake.
2014-08-29 00:38:44 +09:00
Takatoshi Kondo
4d6e9d6c05
Removed referenced member from msgpack::unpacked.
...
Added a referenced parameter to msgpack::unpack() and msgpack::unpacker::next().
msgpack::unpacked is a kind of handler that holds msgpack::object and msgpack::zone, so the size of msgpack::unpacked should be small. There is no reason to have referenced in msgpack::unpacked. msgpack user can get the same information using msgpack::unpack() and msgpack::unpacker::next().
2014-08-11 15:50:51 +09:00
Takatoshi Kondo
f969f6f39c
Replaced zone* member variable in object with zone&.
...
Added msgpack::object::with_zone tests.
Added tuples operator<<'s parameter to const.
Fixed array object::with_zone pointer and size unset problem.
Fixed forward_list object::with_zone pointer and size unset problem.
2014-08-11 13:23:27 +09:00
Takatoshi Kondo
8920c49597
Unified test files extension as cpp.
2014-08-11 09:01:17 +09:00
Takatoshi Kondo
e18102d16f
Replaced size() with std::distance.
2014-08-11 07:48:30 +09:00
Takatoshi Kondo
ea23bf843e
Added std::forward_list support.
...
Fixed cmake filename typo.
2014-08-10 23:45:50 +09:00
Takatoshi Kondo
e217e72c22
Fixed msgpack::object type EXT comparison problem.
...
Added msgpack::object type EXT ostream minimal output.
2014-08-10 23:23:52 +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
b2f5893669
Added reference to return value.
2014-08-10 22:04:31 +09:00
Takatoshi Kondo
9a1ccaf155
Merge pull request #100 from redboltz/add_vector_char_as_bin
...
vector<char> is mapped to BIN
2014-08-10 21:52:02 +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
dee68403df
Replaced obsolete interface with recommended one on the example code.
2014-08-08 12:13:34 +09:00
Takatoshi Kondo
0a99b9f933
Fixed the problem that reference function doesn't pass correctly.
...
Fixed referenced flag writing timing on next(). It should place before flush.
Added msgpack_tuple test for CMakeLists.txt
Untabified CMakeLists.txt
Added reference function test.
2014-08-07 23:26:09 +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
b5b459cfca
Reordered unpack selector sequence.
2014-08-07 10:40:21 +09:00
Takatoshi Kondo
7822bc787d
Replaced switch-case and bit calculation with a table.
2014-08-07 10:28:18 +09:00
Takatoshi Kondo
1f5d6b9cac
Added EXT support.
...
Removed obsolete unpack functions.
Updated examples that no longer use obsolete functions.
Added reference checking function to unpacked. ( unpacked::referenced() )
Added std:: namespace.
Added reference or copy choice function and default behavior:
When you use unpacker, default behavior is:
STR, BIN, EXT types are always held by reference.
When you don't use unpacker, default behavior is:
STR, BIN, EXT types are always held by copy.
The memory is allocated from zone.
You can customize the behavior passing your custom judging function to unpack() or unpacker's constructor.
2014-08-06 16:18:37 +09:00
Takatoshi Kondo
ce21ab0ebf
Fixed zone allocating functions always throw std::bad_alloc() if allocation is failed.
2014-08-06 12:16:28 +09:00
Takatoshi Kondo
5af6d36341
Added a link to wiki.
2014-08-04 16:39:17 +09:00
Takatoshi Kondo
15a0d61a64
Added the new mapping:
...
std::vector<char> is mapped to BIN.
So, currently BIN, STR, and ARRAY mappings are as follows:
std::vector<char> is mapped to BIN
std::string is mapped to STR
std::vector<T> is mapped to ARRAY // T is not char
2014-08-04 15:14:39 +09:00
Takatoshi Kondo
66014eebc0
Updated test codes using recommended interface.
...
They used to use obsolete interfaces.
2014-08-04 01:08:05 +09:00
Takatoshi Kondo
fd566afeb4
Added reference version of unpacker::next().
2014-08-04 00:52:04 +09:00
Takatoshi Kondo
e4d32b176e
Use const char* version of msgpack::unpack_error to avoid std::string memory allocation when usr C++11 compiler.
...
See http://www.cplusplus.com/reference/stdexcept/runtime_error/?kw=runtime_error
2014-08-03 17:04:46 +09:00
Takatoshi Kondo
b27c87c9ed
Replaced C-Style cast with static_cast.
2014-08-03 16:38:58 +09:00
Takatoshi Kondo
3729f334a1
Replaced size_t with std::size_t.
2014-08-03 16:34:47 +09:00
Takatoshi Kondo
55bf279a7c
Removed obsolete unpack interface from test codes.
2014-08-03 08:08:08 +09:00
Takatoshi Kondo
78e8cbdfb5
Cleaned up pointer and reference versions of unpack().
2014-08-03 07:09:03 +09:00
Nobuyuki Kubota
dd083ca933
Merge pull request #95 from ueno/int-float-test
...
Fix test failure regarding int->float conversion
2014-07-30 21:25:42 -07:00
Takatoshi Kondo
23d670f3bd
Merge pull request #97 from splinterofchaos/ostream
...
Add inline for ODR compliance.
2014-07-25 09:19:55 +09:00
Scott Prager
6fab3594a2
Add inline for ODR compliance.
2014-07-24 15:04:33 -04: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
09325ed846
Re-implemented msgpack::unpacker's move operations.
...
I refered to the following article and comments.
http://scottmeyers.blogspot.jp/2014/06/the-drawbacks-of-implementing-move.html
msgpack::detail::context back to copiable.
msgpack::detail::context doen't have any resource ownership, so there is
no strong reason to avoid copy.
2014-07-24 10:38:24 +09:00
Takatoshi Kondo
bfa428ab13
Added cpp_config.hpp to install files.
2014-07-24 07:52:20 +09:00
Takatoshi Kondo
ecdeec9948
Fixed the move assign operator implementation.
2014-07-24 07:41:23 +09:00
Takatoshi Kondo
f11a811114
Added a move constructor and a move assign operator for unpacker and context.
...
https://github.com/msgpack/msgpack-c/issues/96
2014-07-23 21:32:45 +09:00
Daiki Ueno
c203928fae
Fix test failure regarding int->float conversion
...
Supply only small integers (< 1^23) to int->float conversion tests,
so they can roundtrip without error.
2014-07-17 18:51:59 +09:00
Takatoshi Kondo
59b111e026
Removed the contents in 'install from package' section. It is not supported for this branch.
...
Updated the description of the cmake.
2014-07-16 08:49:27 +09:00
Takatoshi Kondo
2a694f8c20
Fixed markdown format.
2014-07-16 08:26:36 +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
0e48f65a4b
Fixed https://github.com/msgpack/msgpack-c/issues/94
...
Added a private copy assign operator to unpacker.
2014-07-12 00:41:33 +09:00
Takatoshi Kondo
aa79fc2ff4
Updated versions.
2014-07-12 00:33:06 +09:00
Takatoshi Kondo
cc571b8bb1
Replaced std::auto_ptr with msgpack::unique_ptr.
2014-07-12 00:21:35 +09:00
Takatoshi Kondo
b0df21295c
Untabified.
...
Adjust line break positions.
2014-07-12 00:17:31 +09:00
Takatoshi Kondo
0889e6117e
Renamed member variables name.
2014-07-11 23:37:43 +09:00
Takatoshi Kondo
212f025f00
Supported the C++11's enum class.
2014-07-08 19:31:02 +09:00
Takatoshi Kondo
f6a5402194
Supported the C++11 tuple.
2014-07-08 19:18:43 +09:00
Takatoshi Kondo
6a349d0b28
Fixed zero size string in the array problem.
2014-07-07 16:31:29 +09:00
Takatoshi Kondo
dac5c60608
Replaced bit shift with memcpy on load.
2014-07-07 16:31:29 +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
a951ea90b8
Fixed delete free mismatch problem in C++11 version.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
3b7a2f8f32
Updated test codes using reference version of unpack functions.
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
ed51d23335
Refined tuple implementation.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
2be892bfda
Removed a redundant null pointer check.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
723d900098
Added 'template' keyword.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
13404a7444
Supported placement new.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
a20594dfdc
Added line breaks.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
bff4cadeff
Added C++ separate version and C++11 description.
2014-07-07 16:19:31 +09:00
Takatoshi Kondo
6515577dc3
Added null pointer check for C++ separated code.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
beebccd323
Renamed zone::malloc familiy functions.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
d70c44b723
Added bin and str families support.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
33d3192ca2
Added static_cast to char.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
0d13931844
Fixed freed memory accessing bug in the C++ code.
...
(Issue #32 )
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
293c839a22
Supported 'plain' char.
...
msgpack used to only support signed char and unsigned char.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
f187ae35d9
Added a nested array example.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
74013e7e7d
Added array of array example.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
e2026c0507
Renamed the classes named template_*.
...
Removed template_ from them because they are no longer template.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
c375e14705
Renamed a member function name from setObj to set_obj.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
fade0644c7
Added comments that how to compile and run it.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
5fedaf285b
Removed C-style casts.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
fe82444db1
Replaced NULL with nullptr.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
f7692691ca
Removed local variables top, cs, and user and access directly member variables top_, cs_, and user_.
...
The local variable trail is preserved to suppourt register optimization.
Other variables don't contribute increasing speed even though they are on registers.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
7fba3484c5
Renamed template callback functions.
...
Moved aggregate unpacking and pushing procedure to the function push_aggregate.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
561b6b583d
Modified data members initialize sequence to fix a warning.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
7675c15fa9
Added a comment.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
99971abc9b
Cleaned up template_context::execute().
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
b7a1ba9ba0
Modified the offset parameter of template_context::execute() from pointer to reference.
2014-07-07 16:17:59 +09:00
Takatoshi Kondo
63c26cd58b
Modified return type from bool to void in functions that always return true.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
f8fc03b482
Modified template functions' return value from int to bool.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
b0b1a0e9a7
Removed template_callback_root.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
4d2a9c23af
Added inline keyword.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
c41154989a
Used the reference version of convert instead of pointer version.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
541ece13c0
Added inline for constructors and a destructor.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
b6b2ef5e57
Removed the last comma at enum definitions to support C++03 strictly.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
4ef69da25d
Restored the test cases using pointer based interfaces.
...
It assures that we can use the same interfaces as the original version(0.5.6).
To support both C++03 and C++11, I introduced msgpack::unique_ptr and msgpack::move() in test codes.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
9bd339baf8
Restored pointer based interfaces to maintain compatibility.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
616be1aa60
Modified type classes' interfaces parameters 'object' from passed by value to passed by reference.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
415b14335f
Modified the parameter of object::convert() from pointer to reference.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
1fb707f93f
Renamed functions from pack_real_* to pack_imp_*.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
aa4ed82b66
Replaced TAKE8_* macros with inline function named take8_*.
...
Modified byte stream using char instead of unsigned char.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
7ce8abe5d6
Tabified.
...
Indent adjusted.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
27629a8dd6
Modified 'unpacked' interface using references instead of pointers.
...
Added speed test for 'unpacked' based unpack() function.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
521a4f4190
Modified unpack_user* to unpack_user&.
...
Removed redundant 'static'.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
bad3801eae
Modified zone* to zone&.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
72b3064a67
Removed redundant try-catch, zone's constructor never throw.
...
In the C++11 version, added noexcept.
In the C++03 version, added throw() as comments because actual throw() introduces some overhead.
Untabified.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
7593e5ce0e
Removed object copy in implicit conversion class.
...
Removed redundant function prototype declaration.
Adjusted tab position.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
8a08548f36
Modified passed by value of object to const reference of object.
...
Removed C function call in operator==.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
56b0ad6809
Modified passed by value of object to const reference of object.
...
Modified object pointers to object references.
This modification has increased unpack speed.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
f8561fbfd5
Added map packing speed test.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
e80cbd4437
Tests for msgpack::type::tuple C++11 expansion moved to __cplusplus >= 201103.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
da601e4589
Added member fucntion version of msgpack::type::tuple::get().
...
Added support functions for msgpack::type::tuple as same as std::tuple.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
36a87b6968
Replaced C-style casts with C++ stype casts in C++ codes.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
e0b42939ba
Cleaned up include guards.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
7d731f83a4
Moved the codes in pack_template.h to pack.hpp.
...
pack_template.h is still needed for the C version of msgpack.
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
40ad7da455
Moved gcc atomic functions from source file to header file.
...
Moved ostream operator << from object.cpp to object.hpp
Removed object.cpp
Modernize configure.in
2014-07-07 16:17:58 +09:00
Takatoshi Kondo
e0d1e5c722
Modified tuple's get calling from member function to free function.
2014-07-07 16:16:29 +09:00
Takatoshi Kondo
5b3a168b86
Supported C++03.
2014-07-07 16:16:29 +09:00
Takatoshi Kondo
11afd4820f
Modified unpack functions to class member functions.
2014-07-07 16:16:29 +09:00
Takatoshi Kondo
ec5c1194fc
Removed redundant namespace scope resolutions.
2014-07-07 16:16:29 +09:00
Takatoshi Kondo
7eccd1029a
Modified from ::msgpack to msgpack
2014-07-07 16:16:29 +09:00
Takatoshi Kondo
c2ca709d68
Added header files that use c++11 variadic templates instead of ruby code generation.
...
When the compiler configured to support C++11 (e.g. CXXFLAG contains -std=c++11 is given),
those files are used.
Decoupled unpacker and msgpack_unpacker.
This modification introduced C++11 dependency such as nullptr and unique_ptr.
I will support C++11 and C++03, finally.
Decoupled msgpack.hpp and msgpack.h.
Decoupled sbuffer from msgpack_sbuffer.
Decoupled vrefbuffer from msgpack_vrefbuffer.
Decoupled zbuffer from msgpack_zbuffer.
Added some z_stream initialization.
Removed unpack macros.
Removed CTX_CAST and CTX_REFERENCED.
Embed ctx_ as a member variable (not a pointer).
Modified zone free using C++ way.
2014-07-07 16:16:29 +09:00
Nobuyuki Kubota
197ed8c983
Merge pull request #92 from nobu-k/version0.5.9
...
version 0.5.9
2014-07-03 11:45:20 +09:00
Nobuyuki Kubota
990860fe65
Change CMAKE_MINIMUM_REQUIRED to 2.8.6 for SET_PROPERTY APPEND_STRING
2014-07-03 11:39:43 +09:00
Nobuyuki Kubota
dbeb6e61c6
version 0.5.9
2014-07-02 18:44:07 +09:00
Nobuyuki Kubota
2b3f37f9e0
Add fbuffer.h and fbuffer.hpp to CMakeLists.txt and msgpack_vc.postbuild.bat
2014-07-02 18:07:07 +09:00
Nobuyuki Kubota
f50148a9cc
Merge branch 'fbuffer'
2014-07-02 17:53:18 +09:00
Takatoshi Kondo
9fc8ec5b61
Merge branch 'tbeu-fix-bool-and-inline-for-C-compilation-with-MSVC'
2014-07-02 17:44:18 +09:00
Takatoshi Kondo
751a6f98fe
Moved bool and inline definition from msgpack.h to sysdep.h.
...
Set compile settiong on MSVC. ".c" files are compliled as C, not C++. (msgpack_vc8.vcproj, CMakeLists.txt)
Fixed msgpack root object initialization problem on MSVC. {} initialization is not supported on MSVC.
2014-07-02 17:43:07 +09:00
Nobuyuki Kubota
9d8e6b92fc
Add fclose to fbuffer's tests
2014-07-02 17:35:15 +09:00
Nobuyuki Kubota
c868da2879
Fix Makefile.am to install fbuffer.h and fbuffer.hpp
2014-07-02 17:32:41 +09:00
tbeu
e0c40c1c59
fix type bool and inline specifier
...
For a pure C compilation with MSVC type bool is not available. Not tested with other targets (Mingw, cygwin). Thats why only active of ```_MSC_VER``` is defined. So not sure if the bool fix should be also applied to other targets.
For MSVC the inline specifier is not valid and must be named __inline (or _inline).
2014-07-02 17:13:31 +09:00
Nobuyuki Kubota
f185284776
Merge branch 'mpapierski-cmake'
2014-07-02 16:22:33 +09:00
Takatoshi Kondo
1656ef0111
Merge pull request #90 from tbeu/fix-c-compilation
...
Fix pure C compilation
2014-06-23 21:43:56 +09:00
tbeu
3cb2e4f7c6
Fix pure C compilation
2014-06-23 13:55:25 +02:00
Takatoshi Kondo
3104f7e451
Added -O3 -g option for gcc and clang. Improved compiler checking method.
2014-06-21 19:00:59 +09:00
Takatoshi Kondo
ab8e7ea822
Added -DPIC option on shared library.
2014-06-21 11:27:33 +09:00
Takatoshi Kondo
6daef66ea7
Added warning flags.
2014-06-21 11:11:32 +09:00
Takatoshi Kondo
04286eb9dc
Modified the way to install msgpack headers.
2014-06-12 11:18:06 +09:00
Takatoshi Kondo
d15e30bf4a
Fixed major_version and minor_version.
...
Fixed relase_version.
Added msgpack.pc creating proccess.
2014-06-08 15:25:24 +00:00
Takatoshi Kondo
fb1d480faf
Added the SOVERSION same as autotools.
...
Set CMAKE_MINIMUM_REQUIRED to 2.6.4.
2014-06-08 14:05:33 +00:00
Takatoshi Kondo
c8fa0be345
Supported make install.
...
Removed vc2008 files from make dist.
2014-06-07 14:39:59 +00:00
Takatoshi Kondo
643b0c9523
Supported shared library on cmake.
...
Updated the documentation.
2014-06-07 00:13:23 +09:00
Takatoshi Kondo
06930616b2
Added cmake files.
...
https://github.com/msgpack/msgpack-c/pull/20
Removed 'preprocess' from original CMakeLists.txt.
Removed file copy from original CMakeLists.txt.
Removed 'preprocess' from bootstrap.
Removed file copy from bootstrap.
Added erb generated files. Ruby is no longer required.
Moved cases.mpac, cases_compact.mpa, pack_define.h,
pack_template.h, unpack_define.h, unpack_template.h,
and sysdep.h to apropriate location.
If you want to re-generate zone.hpp, define.hpp, and tuple.hpp,
then you execute preprocess.
2014-06-05 20:49:15 +00:00
Nobuyuki Kubota
6e5fc6d396
Merge pull request #83 from redboltz/fixed_readme
...
Fixed https://github.com/msgpack/msgpack-c/issues/82
2014-06-01 19:16:10 +09:00
Takatoshi Kondo
17b0753023
Fixed linking order.
2014-06-01 19:03:51 +00:00
Nobuyuki Kubota
7491348d40
Merge branch 'philix-Wconversion'
2014-06-01 19:09:02 +09:00
Nobuyuki Kubota
eef2036c36
Remove implicit type conversions from (un)pack_template.h
2014-06-01 19:06:40 +09:00
Nobuyuki Kubota
fbec8f4470
Merge pull request #80 from redboltz/fix_enum_member_test
...
Fixed dereferencing type-punned pointer will break strict-aliasing rules warning
2014-06-01 18:22:46 +09:00
Felipe Oliveira Carvalho
8e0137e1d2
Fix to allow projects to compile with -Wconversion
...
Projects that use -Wconversion don't compile due to errors in msgpack header
files. This commit fixes all the errors in msgpack-c for when -Wconversion is
enabled.
Now I can even compile msgpack-c itself with -Wconversion and all my projects:
CFLAGS=-Wconversion ./configure
make
2014-05-19 15:30:14 -03:00
Takatoshi Kondo
1dac3f890a
Fixed https://github.com/msgpack/msgpack-c/issues/82
2014-04-24 22:39:01 +00:00
Nobuyuki Kubota
9f33266f23
Merge pull request #81 from watsonsong/master
...
fix compile error on Linux by gcc 4.7
2014-04-07 10:37:54 +09:00
Frank Watson Song
d8c7fd5161
fix compile error on Linux by gcc 4.7
2014-04-01 17:34:28 +08:00
Nobuyuki Kubota
731bc643d0
Merge pull request #79 from redboltz/add_inline
...
Fixed https://github.com/msgpack/msgpack-c/issues/77
2014-03-31 17:36:06 +09:00
Takatoshi Kondo
12e8615ac5
Fixed dereferencing type-punned pointer will break strict-aliasing rules warning.
2014-03-31 16:37:29 +09:00
Takatoshi Kondo
22703d2cdb
Fixed https://github.com/msgpack/msgpack-c/issues/77
2014-03-30 18:42:15 +00:00
Takatoshi Kondo
cb518f472a
Merge pull request #73 from ovz/master
...
Fixed failing test zone_allocate_constructor.
2014-03-30 18:46:15 +09:00
Takatoshi Kondo
271f1fa319
Merge pull request #75 from mogemimi/fix/typo
...
Fix typo in QUICKSTART-CPP
2014-03-30 18:21:34 +09:00
mogemimi
9ecc4f0a1e
Fix typo in QUICKSTART-CPP
2014-03-24 23:07:10 +09:00
ovz
977eab7c4a
Fixed failing test zone_allocate_constructor.
...
Corrected a typo in definition of myclass constructor with parameters.
2014-03-18 14:25:55 -07:00
Vladimir Volodko
c9f342f4b2
Make fbuffer's constructor explicit.
2014-03-03 10:21:03 +07:00
Nobuyuki Kubota
126e4d8414
Merge pull request #70 from redboltz/remove_cxx11_features
...
Removed C++11 features
2014-03-02 16:58:16 +09:00
Takatoshi Kondo
14ee1e5827
Removed C++11 features
2014-03-02 14:14:04 +00:00
Nobuyuki Kubota
ecbb9055a2
Merge branch 'vvolodko/improve-define'
2014-02-28 16:15:20 +09:00
Nobuyuki Kubota
862f04104d
Changed the format a little
2014-02-28 16:14:49 +09:00
Vladimir Volodko
d47f72be0c
Refactor define::msgpack_unpack() to use 'switch' instead of several if's.
...
convert.benchmark test show some improvement.
2014-02-28 16:14:33 +09:00
Nobuyuki Kubota
98c5767372
Merge branch 'redboltz/add_integer_to_float_conv'
2014-02-28 15:53:11 +09:00
Nobuyuki Kubota
97a7b7545a
Refactored test cases with type parameterized test
2014-02-28 15:52:36 +09:00
Nobuyuki Kubota
caf5616573
Merge pull request #69 from redboltz/support_libcpp_and_vcxx_unordered
...
Support libcpp and vcxx unordered
2014-02-28 15:22:27 +09:00
Takatoshi Kondo
b8076fa71f
Supported VC++. Fixed testing macro for tr1 containers.
2014-02-27 23:54:48 +00:00
Takatoshi Kondo
2360466aa9
Added unordered containers support for libc++.
2014-02-22 20:43:18 +00:00
Nobuyuki Kubota
28370b36aa
Replaced deprecated functions in example/stream.cc
2014-02-07 20:16:51 +09:00
Nobuyuki Kubota
9d82356ea9
Merge pull request #62 from redboltz/remove_redundant_null_check
...
Removed a redundant null check.
2014-02-07 20:05:49 +09:00
Nobuyuki Kubota
ca24e040c4
Merge pull request #61 from redboltz/fix_delete_free_mismatch
...
Fixed the free and delete mismatch problem.
2014-02-07 20:04:57 +09:00
Takatoshi Kondo
0fd629857d
Removed a redundant null check.
2014-02-03 09:34:48 +00:00
Takatoshi Kondo
8eff14db11
Removed redundant null check.
2014-02-02 16:22:07 +00:00
Takatoshi Kondo
81e26fe9b9
Fixed the free and delete mismatch problem.
...
https://github.com/msgpack/msgpack-c/issues/52
2014-02-02 00:07:45 +00:00
Takatoshi Kondo
9eb4583dd5
Merge pull request #59 from redboltz/add_null_check
...
Added null pointer check.
2014-01-27 17:53:19 -08:00
Takatoshi Kondo
5a23c86dc1
Added null pointer check.
2014-01-28 10:54:57 +09:00
Takatoshi Kondo
ffd0525607
Replaced types of length from unsigned int to size_t.
2014-01-26 11:29:19 +00:00
Drew Crawford
3dc636bf3e
This patch fixes a type conversion warning in clang 5 when compiling for arm64 targets.
...
```
$ clang --version
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
In file included from /Users/drew/Dropbox/Code/caffeine-ios/ext/msgpack/src/msgpack/pack.h:120:
/Users/drew/Dropbox/Code/caffeine-ios/ext/msgpack/src/msgpack/pack_template.h:773:57: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
msgpack_pack_append_buffer(x, (const unsigned char*)b, l);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /Users/drew/Dropbox/Code/caffeine-ios/ext/msgpack/src/objectc.c:19:
/Users/drew/Dropbox/Code/caffeine-ios/ext/msgpack/src/msgpack/pack.h:118:61: note: expanded from macro 'msgpack_pack_append_buffer'
return (*(user)->callback)((user)->data, (const char*)buf, len)
^
1 warning generated.
```
This patch is provided under the Apache License version 2.
2014-01-24 12:41:13 -06:00
Takatoshi Kondo
260ce4aa1d
Added object that has integer to float and double converter.
2014-01-21 21:12:13 +00:00
Takatoshi Kondo
8bc827ebf5
Merge pull request #51 from xunzhang/master
...
update type.hpp
2014-01-13 18:10:49 -08:00
xunzhang
a97f764088
update type.hpp, support std::tr1::unordered_map and std::tr1::unordered_set
2014-01-13 14:12:17 +08:00
Nobuyuki Kubota
143b90af3e
Merge branch 'claws/readme_overhaul'
2013-12-22 21:12:04 -08:00
Nobuyuki Kubota
4e0a6ae624
Fixed some URL syntaxes
2013-12-22 21:04:53 -08:00
Chris Laws
17aa517e41
Fix up README, include accurate instructions
2013-12-17 08:53:15 +10:30
Vladimir Volodko
2c1a1fd4f8
Add C/C++ FILE* buffer adaptor.
...
* add function msgpack_fbuffer_write();
* add class msgpack::fbuffer;
* add tests buffer.fbuffer and buffer.fbuffer_c .
2013-11-22 12:57:30 +07:00