mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-04-23 08:52:32 +02:00

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.
18 lines
495 B
Bash
Executable File
18 lines
495 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ "$1" = "clean" ];then
|
|
rm -f src/msgpack/type/tuple.hpp
|
|
rm -f src/msgpack/type/define.hpp
|
|
rm -f src/msgpack/zone.hpp
|
|
else
|
|
cp -f cpp11/zone.hpp src/msgpack/
|
|
cp -f cpp11/tuple.hpp src/msgpack/type/
|
|
cp -f cpp11/define.hpp src/msgpack/type/
|
|
fi
|
|
cp -f cases.mpac test/
|
|
cp -f cases_compact.mpac test/
|
|
|
|
sed -e 's/8\.00/9.00/' < msgpack_vc8.vcproj > msgpack_vc2008.vcproj
|
|
sed -e 's/9\.00/10.00/' -e 's/msgpack_vc8/msgpack_vc2008/' < msgpack_vc8.sln > msgpack_vc2008.sln
|
|
|