Commit Graph

  • 11a2a1b8ec Fixed https://github.com/msgpack/msgpack-c/pull/95 on poc/0.6 branch. Takatoshi Kondo 2014-10-21 22:13:53 +09:00
  • b5e66150e9 Minimized header files dependency. Added help comments for typical compile error. Takatoshi Kondo 2014-10-19 21:18:30 +09:00
  • e21e3245db Merge pull request #138 from redboltz/move_byteswap Takatoshi Kondo 2014-10-19 19:42:38 +09:00
  • 07e7ad6b7e Merge pull request #137 from redboltz/remove_tr1_from_test Takatoshi Kondo 2014-10-19 19:37:10 +09:00
  • 44b524529d Merge pull request #136 from redboltz/replace_uint64_t_with_apropriate_types Takatoshi Kondo 2014-10-19 19:26:42 +09:00
  • fc65bc0682 Replaced tuple with std::tuple. Added include file int_fwd.hpp for MSGPACK_ADD_ENUM. Takatoshi Kondo 2014-10-16 14:07:53 +09:00
  • ca12e6d39d Added packer_serializer class template declaration to object_fwd.hpp Takatoshi Kondo 2014-10-16 14:06:57 +09:00
  • db8578a62b Separated adaptor functions' definitions and declarations. Takatoshi Kondo 2014-10-15 17:32:15 +09:00
  • 4a292193f2 Moved include byteswap.h to sysdep.h. When compiling on Mac, byteswap.h is not included. Takatoshi Kondo 2014-10-12 01:22:10 +09:00
  • 1e7fbc0349 Removed wrong tr1:: from unordered containers. Takatoshi Kondo 2014-10-12 00:20:54 +09:00
  • 479d50bd93 Replaced uint64_t with apropriate types. Takatoshi Kondo 2014-10-11 23:45:21 +09:00
  • 982787865f Merge pull request #127 from redboltz/clear_set_map Nobuyuki Kubota 2014-10-06 15:12:20 -07:00
  • bf4a57da34 Merge branch 'object-with-zone-copy' Nobuyuki Kubota 2014-10-06 14:07:06 -07:00
  • 2fcbe6116d Replace C-style casts with C++-style ones Nobuyuki Kubota 2014-10-06 14:06:21 -07:00
  • 4c00f448aa Added a minimal forward declaration header file for pack/unpack overloading. Takatoshi Kondo 2014-10-13 00:04:10 +09:00
  • 3ddeb08e6e Added API versioning. Takatoshi Kondo 2014-10-12 22:48:15 +09:00
  • 0176dd760a Merge pull request #131 from shafik/master Takatoshi Kondo 2014-09-20 17:39:44 +09:00
  • d30548af3f Add support for copying an object to an object::with_zone. Jakob Petsovits 2014-09-19 21:10:22 -04:00
  • ab12b2b2b9 Specialize operator<<(packer, T) also for object::with_zone. Jakob Petsovits 2014-09-19 22:08:59 -04:00
  • 7ce69a362f Merge pull request #130 from jpetso/master Takatoshi Kondo 2014-09-20 00:06:51 +09:00
  • cc08146b1c Merge pull request #132 from redboltz/support_travis_ci Takatoshi Kondo 2014-09-19 23:57:40 +09:00
  • 6896cc602f Added travis-ci support. Takatoshi Kondo 2014-09-19 23:42:07 +09:00
  • 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. Shafik Yaghmour 2014-09-18 14:29:11 -04:00
  • ef649009e4 Support std::unordered_map/set even if using libstdc++ from GCC. Jakob Petsovits 2014-09-17 16:52:33 -04:00
  • cd03ab62f8 Merge pull request #128 from redboltz/cpp11_unpacked_return Nobuyuki Kubota 2014-09-16 10:06:31 -07:00
  • 44e41efa0c Merge pull request #126 from redboltz/add_zero_size_tuple_support Nobuyuki Kubota 2014-09-16 09:23:31 -07:00
  • ecf4b09acd Merge pull request #129 from tarruda/fix-ext-8-16-32 Takatoshi Kondo 2014-09-16 08:52:48 +09:00
  • d6122b4a18 Fix size packing/unpacking for EXT 8/16/32 Thiago de Arruda 2014-09-15 15:26:42 -03:00
  • 4fcb4777f3 Added additional unpack() APIs to support C++11 style programming. Takatoshi Kondo 2014-09-15 22:33:23 +09:00
  • 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. Takatoshi Kondo 2014-09-15 18:16:37 +09:00
  • 6e810df2a4 Added zero size tuple support. Takatoshi Kondo 2014-09-14 20:50:57 +09:00
  • 847a7852e5 Merge branch 'jpetso-master' Takatoshi Kondo 2014-09-10 10:59:49 +09:00
  • e265beef91 Install version.h even if doing an out-of-source build. Jakob Petsovits 2014-09-09 16:14:26 -04:00
  • 0335df55e1 Merge pull request #123 from redboltz/add_memory_check Takatoshi Kondo 2014-09-09 14:53:23 +09:00
  • dd4043a616 Removed unused variables. Takatoshi Kondo 2014-09-09 14:29:10 +09:00
  • 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. Takatoshi Kondo 2014-09-09 14:15:21 +09:00
  • 7491c1996a Added memory checking for travis-ci cmake build. Takatoshi Kondo 2014-09-09 13:38:07 +09:00
  • 0ab14b4138 Merge pull request #121 from redboltz/fix_cmake_binary_dir Takatoshi Kondo 2014-09-09 10:27:52 +09:00
  • 6e77c6df11 Merge pull request #122 from redboltz/add_install_test Takatoshi Kondo 2014-09-09 10:14:24 +09:00
  • bcc91d78e9 Merge branch 'tarruda-ext-support-for-c' into poc/0.6 Takatoshi Kondo 2014-09-09 10:09:02 +09:00
  • 32b65dba47 Added 'make install' as a test target. Takatoshi Kondo 2014-09-09 07:37:29 +09:00
  • aa75e6ecd3 Fixed the path of the msgpack.pc to support structured build. Takatoshi Kondo 2014-09-09 06:28:52 +09:00
  • dc679a2572 Merge pull request #119 from davidchappelle/master Takatoshi Kondo 2014-09-09 06:21:38 +09:00
  • b6bc7f7ecb Merge remote-tracking branch 'upstream/master' David Chappelle 2014-09-08 15:57:43 -04:00
  • 896dead7cc Adapt msgpack_test.cpp EXT cases to msgpackc_test.cpp Thiago de Arruda 2014-09-08 12:01:03 -03:00
  • dfa277a9e0 Add EXT support to C library Thiago de Arruda 2014-09-08 09:34:09 -03:00
  • 501260eb54 correct paths for x86_64/generic installations Jason Newton 2014-09-01 21:42:44 -07:00
  • 370a9251f5 Merge pull request #117 from redboltz/removed_unused_member_variable Takatoshi Kondo 2014-09-08 17:27:16 +09:00
  • 7737f1cb77 Removed unused member variable. Takatoshi Kondo 2014-09-08 17:14:56 +09:00
  • f72022037c Merge pull request #116 from redboltz/limited_travis_target Takatoshi Kondo 2014-09-08 17:08:16 +09:00
  • 865528f778 Limited branches for travis-ci. Takatoshi Kondo 2014-09-08 17:01:04 +09:00
  • d54048eabe Merge pull request #114 from redboltz/poc/0.6 Takatoshi Kondo 2014-09-08 16:36:12 +09:00
  • 103a6c56e4 Added travis-ci support. Takatoshi Kondo 2014-09-08 16:38:44 +09:00
  • 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. Takatoshi Kondo 2014-09-07 13:56:07 +09:00
  • 7ebdb63131 Merge pull request #113 from tarruda/fix-memory-leak Takatoshi Kondo 2014-09-07 12:45:23 +09:00
  • a186725213 Fix memory leak in msgpack_unpacker_next Thiago de Arruda 2014-09-06 20:01:52 -03:00
  • 8615358515 Fixed out of source cmake builds to work correctly. David Chappelle 2014-09-05 19:11:24 +00:00
  • 86ad026f11 Renamed the last digit of version string from RELEASE to REVISION. Added REVISION macro and getting API. Takatoshi Kondo 2014-09-03 13:26:34 +09:00
  • 93d0f0bd00 inline default_reference_func to avoid multiple definition errors Jason Newton 2014-09-01 23:03:55 -07:00
  • a0f5392876 correct paths for x86_64/generic installations Jason Newton 2014-09-01 21:42:44 -07:00
  • 5896ff3746 Fixed -Wextra warnings on gcc. Takatoshi Kondo 2014-09-02 18:15:58 +09:00
  • d15e49cb73 Updated version getting mechanism. Versions are gotten from version_master.h Takatoshi Kondo 2014-09-02 16:42:05 +09:00
  • 2103c12e05 Added char* packing support. char* is packed to STR similar as std::string. See https://github.com/msgpack/msgpack-c/issues/110 Takatoshi Kondo 2014-09-01 22:42:08 +09:00
  • f0a12a23a1 Merge branch 'tarruda-poc/0.6' into poc/0.6 Takatoshi Kondo 2014-09-01 13:20:01 +09:00
  • 30b946ee85 Support out-of-tree builds with cmake Thiago de Arruda 2014-08-31 10:32:25 -03:00
  • a388000d47 Fixed autotools AC_INIT with external information implemantation. See: http://stackoverflow.com/questions/22871340/using-a-variable-in-ac-init Takatoshi Kondo 2014-08-31 20:38:52 +09:00
  • 4c888294b5 Merge pull request #107 from redboltz/fix_105_for_poc0.6 Takatoshi Kondo 2014-08-31 17:23:18 +09:00
  • 68bf4acb4b Fixed operator>>(object const& o, various types& v) return type and value problem. https://github.com/msgpack/msgpack-c/issues/105 Takatoshi Kondo 2014-08-29 00:43:18 +09:00
  • 2c2df64427 Fixed C++03 and C++11 conditional tests building problem on cmake. Takatoshi Kondo 2014-08-29 00:38:44 +09:00
  • 4d6e9d6c05 Removed referenced member from msgpack::unpacked. Added a referenced parameter to msgpack::unpack() and msgpack::unpacker::next(). Takatoshi Kondo 2014-08-11 15:50:51 +09:00
  • 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. Takatoshi Kondo 2014-08-11 13:23:27 +09:00
  • 8920c49597 Unified test files extension as cpp. Takatoshi Kondo 2014-08-11 09:01:17 +09:00
  • e18102d16f Replaced size() with std::distance. Takatoshi Kondo 2014-08-11 07:48:30 +09:00
  • ea23bf843e Added std::forward_list support. Fixed cmake filename typo. Takatoshi Kondo 2014-08-10 23:45:50 +09:00
  • e217e72c22 Fixed msgpack::object type EXT comparison problem. Added msgpack::object type EXT ostream minimal output. Takatoshi Kondo 2014-08-10 23:23:52 +09:00
  • 0bc4b3f599 Added the C++11 std::array support. std::array<char, N> is mapped to BIN. That is the same mannar as std::vector. Takatoshi Kondo 2014-08-10 23:06:30 +09:00
  • b2f5893669 Added reference to return value. Takatoshi Kondo 2014-08-10 22:04:31 +09:00
  • 9a1ccaf155 Merge pull request #100 from redboltz/add_vector_char_as_bin Takatoshi Kondo 2014-08-10 21:52:02 +09:00
  • 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. Takatoshi Kondo 2014-08-08 14:28:03 +09:00
  • dee68403df Replaced obsolete interface with recommended one on the example code. Takatoshi Kondo 2014-08-08 12:13:34 +09:00
  • 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. Takatoshi Kondo 2014-08-07 23:26:09 +09:00
  • 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 Takatoshi Kondo 2014-08-07 15:23:34 +09:00
  • b5b459cfca Reordered unpack selector sequence. Takatoshi Kondo 2014-08-07 10:40:21 +09:00
  • 7822bc787d Replaced switch-case and bit calculation with a table. Takatoshi Kondo 2014-08-07 10:28:18 +09:00
  • 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. Takatoshi Kondo 2014-08-06 16:18:37 +09:00
  • ce21ab0ebf Fixed zone allocating functions always throw std::bad_alloc() if allocation is failed. Takatoshi Kondo 2014-08-06 12:16:28 +09:00
  • 5af6d36341 Added a link to wiki. Takatoshi Kondo 2014-08-04 16:38:40 +09:00
  • 15a0d61a64 Added the new mapping: std::vector<char> is mapped to BIN. Takatoshi Kondo 2014-08-04 15:14:39 +09:00
  • 66014eebc0 Updated test codes using recommended interface. They used to use obsolete interfaces. Takatoshi Kondo 2014-08-04 01:08:05 +09:00
  • fd566afeb4 Added reference version of unpacker::next(). Takatoshi Kondo 2014-08-04 00:52:04 +09:00
  • 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 Takatoshi Kondo 2014-08-03 17:04:46 +09:00
  • b27c87c9ed Replaced C-Style cast with static_cast. Takatoshi Kondo 2014-08-03 16:38:58 +09:00
  • 3729f334a1 Replaced size_t with std::size_t. Takatoshi Kondo 2014-08-03 16:34:47 +09:00
  • 55bf279a7c Removed obsolete unpack interface from test codes. Takatoshi Kondo 2014-08-03 08:08:08 +09:00
  • 78e8cbdfb5 Cleaned up pointer and reference versions of unpack(). Takatoshi Kondo 2014-08-03 07:09:03 +09:00
  • dd083ca933 Merge pull request #95 from ueno/int-float-test Nobuyuki Kubota 2014-07-30 21:25:42 -07:00
  • 23d670f3bd Merge pull request #97 from splinterofchaos/ostream Takatoshi Kondo 2014-07-25 09:19:55 +09:00
  • 6fab3594a2 Add inline for ODR compliance. Scott Prager 2014-07-24 15:04:33 -04:00
  • 421aeb5021 Fixed missing copy operation for zone.hpp Takatoshi Kondo 2014-07-24 23:49:35 +09:00
  • 47f4ffe9f3 Added cpp11 include files to install files. Sorted C++ install files to avoid overlooking. Takatoshi Kondo 2014-07-24 10:54:54 +09:00