Takatoshi Kondo
af9ce1b627
Fixed test warning.
2021-10-23 12:17:34 +09:00
Takatoshi Kondo
c0708dbcba
Merge pull request #972 from kovdan01/fix_fuzz_running
...
Fix #969
2021-08-31 09:24:20 +09:00
Daniil Kovalev
4ed6b45abd
Add MSGPACK_USE_STATIC_BOOST
cmake option
2021-08-30 23:01:49 +03:00
Daniil Kovalev
4ea4d69123
Fix #969
2021-08-30 21:45:50 +03: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
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
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
Daniil Kovalev
a66da75bd4
Fix iovec-related tests
2021-05-08 17:10:47 +03:00
Takatoshi Kondo
c8a053557c
Propagated CXXFLAGS.
...
Fixed warnings.
2020-07-02 16:15:08 +09:00
Takatoshi Kondo
6eaf7fd38d
Added steady_clock and high_resolution_clock support.
2020-06-12 22:16:19 +09:00
Takatoshi Kondo
3b80c45725
Added complex type support.
2020-06-10 13:26:40 +09:00
yuangongji
2f5b137997
remove C part in source code
2020-06-05 18:12:03 +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
yuangongji
b1725d4007
vrefbuffer: set default ref_size and chunk_size
2020-04-30 19:26:07 +08:00
Igor Sadchenko
9a3cd0c951
Fixed many warnings/errors with macro __GNUC__(issue #850 )
2020-03-26 02:03:25 +03:00
yuangongji
d9c5978958
add MSGPACK_CXX_ONLY option to build c++ libraries only
2020-02-19 09:07:16 +08: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
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
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
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
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
de99222801
Fixed warnings.
2019-05-27 17:35:22 +09:00
Takatoshi Kondo
d3fecce359
Added timespec support for C++11 or later.
2019-05-09 14:46:45 +09:00
Takatoshi Kondo
17267ed475
Added -Wconversion support for C++.
2019-03-25 19:48:39 +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
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
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
1155babda8
Added wstring adaptor.
2018-09-12 16:17:14 +09: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
tbeu
92d34cbd79
Fix VS2010 warning C4309: 'static_cast' : truncation of constant value
2018-09-02 20:36:48 +02: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
Kazuhiro Sera
0b53833856
Fix misspelled words in comments, detected by github.com/client9/misspell
2018-08-11 11:28:40 +09:00
Takatoshi Kondo
eebdc007a9
Added timestamp minimal support for C.
2018-07-22 20:38:36 +09:00
Takatoshi Kondo
cb2dcb19b9
Implemented #638 .
...
Added Time Stamp support.
2018-07-22 16:25:23 +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
Takatoshi Kondo
4cb938ed18
Merge pull request #673 from redboltz/fix_671
...
Fixed #671 .
2018-04-25 12:52:12 +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