diff --git a/a.out b/a.out new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/msgpackc/2.1.5/include.tar b/msgpackc/2.1.5/include.tar index 8c3db86068b5d0946490bd9a9845f4062f33b88b..d3a54bae8251da200b001ddd5e66945ca6fb45b1 100644 Binary files a/msgpackc/2.1.5/include.tar and b/msgpackc/2.1.5/include.tar differ diff --git a/msgpackc/2.1.5/include/msgpack/fbuffer.h b/msgpackc/2.1.5/include/msgpack/fbuffer.h new file mode 100755 index 0000000000000000000000000000000000000000..d766c839e62da7dc11437c357ffce2acfa7e663e --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/fbuffer.h @@ -0,0 +1,38 @@ +/* + * MessagePack for C FILE* buffer adaptor + * + * Copyright (C) 2013 Vladimir Volodko + * + * Distributed under the Boost Software License, Version 1.0. + * (See accompanying file LICENSE_1_0.txt or copy at + * http://www.boost.org/LICENSE_1_0.txt) + */ +#ifndef MSGPACK_FBUFFER_H +#define MSGPACK_FBUFFER_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + + +/** + * @defgroup msgpack_fbuffer FILE* buffer + * @ingroup msgpack_buffer + * @{ + */ + +static inline int msgpack_fbuffer_write(void* data, const char* buf, size_t len) +{ + return (len == fwrite(buf, len, 1, (FILE *)data)) ? 0 : -1; +} + +/** @} */ + + +#ifdef __cplusplus +} +#endif + +#endif /* msgpack/fbuffer.h */ diff --git a/msgpackc/2.1.5/include/msgpack/gcc_atomic.h b/msgpackc/2.1.5/include/msgpack/gcc_atomic.h new file mode 100755 index 0000000000000000000000000000000000000000..6b1b1a799654fd4ecc975617bac56ff51488b60e --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/gcc_atomic.h @@ -0,0 +1,25 @@ +/* + * Distributed under the Boost Software License, Version 1.0. + * (See accompanying file LICENSE_1_0.txt or copy at + * http://www.boost.org/LICENSE_1_0.txt) + */ + +#ifndef MSGPACK_GCC_ATOMIC_H +#define MSGPACK_GCC_ATOMIC_H + +#if defined(__cplusplus) +extern "C" { +#endif + +typedef int _msgpack_atomic_counter_t; + +int _msgpack_sync_decr_and_fetch(volatile _msgpack_atomic_counter_t* ptr); +int _msgpack_sync_incr_and_fetch(volatile _msgpack_atomic_counter_t* ptr); + + +#if defined(__cplusplus) +} +#endif + + +#endif // MSGPACK_GCC_ATOMIC_H diff --git a/msgpackc/2.1.5/include/msgpack/pack_define.h b/msgpackc/2.1.5/include/msgpack/pack_define.h new file mode 100755 index 0000000000000000000000000000000000000000..ce98b67558a3bb053d7ec5ca1098e16b255b75cc --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/pack_define.h @@ -0,0 +1,18 @@ +/* + * MessagePack unpacking routine template + * + * Copyright (C) 2008-2010 FURUHASHI Sadayuki + * + * Distributed under the Boost Software License, Version 1.0. + * (See accompanying file LICENSE_1_0.txt or copy at + * http://www.boost.org/LICENSE_1_0.txt) + */ +#ifndef MSGPACK_PACK_DEFINE_H +#define MSGPACK_PACK_DEFINE_H + +#include "msgpack/sysdep.h" +#include +#include + +#endif /* msgpack/pack_define.h */ + diff --git a/msgpackc/2.1.5/include/msgpack/pack_template.h b/msgpackc/2.1.5/include/msgpack/pack_template.h new file mode 100755 index 0000000000000000000000000000000000000000..17abb521eca6aabd06867175b78de1e9c36c5a67 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/pack_template.h @@ -0,0 +1,909 @@ +/* + * MessagePack packing routine template + * + * Copyright (C) 2008-2010 FURUHASHI Sadayuki + * + * Distributed under the Boost Software License, Version 1.0. + * (See accompanying file LICENSE_1_0.txt or copy at + * http://www.boost.org/LICENSE_1_0.txt) + */ + +#if MSGPACK_ENDIAN_LITTLE_BYTE +#define TAKE8_8(d) ((uint8_t*)&d)[0] +#define TAKE8_16(d) ((uint8_t*)&d)[0] +#define TAKE8_32(d) ((uint8_t*)&d)[0] +#define TAKE8_64(d) ((uint8_t*)&d)[0] +#elif MSGPACK_ENDIAN_BIG_BYTE +#define TAKE8_8(d) ((uint8_t*)&d)[0] +#define TAKE8_16(d) ((uint8_t*)&d)[1] +#define TAKE8_32(d) ((uint8_t*)&d)[3] +#define TAKE8_64(d) ((uint8_t*)&d)[7] +#else +#error msgpack-c supports only big endian and little endian +#endif + +#ifndef msgpack_pack_inline_func +#error msgpack_pack_inline_func template is not defined +#endif + +#ifndef msgpack_pack_user +#error msgpack_pack_user type is not defined +#endif + +#ifndef msgpack_pack_append_buffer +#error msgpack_pack_append_buffer callback is not defined +#endif + + +/* + * Integer + */ + +#define msgpack_pack_real_uint8(x, d) \ +do { \ + if(d < (1<<7)) { \ + /* fixnum */ \ + msgpack_pack_append_buffer(x, &TAKE8_8(d), 1); \ + } else { \ + /* unsigned 8 */ \ + unsigned char buf[2] = {0xcc, TAKE8_8(d)}; \ + msgpack_pack_append_buffer(x, buf, 2); \ + } \ +} while(0) + +#define msgpack_pack_real_uint16(x, d) \ +do { \ + if(d < (1<<7)) { \ + /* fixnum */ \ + msgpack_pack_append_buffer(x, &TAKE8_16(d), 1); \ + } else if(d < (1<<8)) { \ + /* unsigned 8 */ \ + unsigned char buf[2] = {0xcc, TAKE8_16(d)}; \ + msgpack_pack_append_buffer(x, buf, 2); \ + } else { \ + /* unsigned 16 */ \ + unsigned char buf[3]; \ + buf[0] = 0xcd; _msgpack_store16(&buf[1], (uint16_t)d); \ + msgpack_pack_append_buffer(x, buf, 3); \ + } \ +} while(0) + +#define msgpack_pack_real_uint32(x, d) \ +do { \ + if(d < (1<<8)) { \ + if(d < (1<<7)) { \ + /* fixnum */ \ + msgpack_pack_append_buffer(x, &TAKE8_32(d), 1); \ + } else { \ + /* unsigned 8 */ \ + unsigned char buf[2] = {0xcc, TAKE8_32(d)}; \ + msgpack_pack_append_buffer(x, buf, 2); \ + } \ + } else { \ + if(d < (1<<16)) { \ + /* unsigned 16 */ \ + unsigned char buf[3]; \ + buf[0] = 0xcd; _msgpack_store16(&buf[1], (uint16_t)d); \ + msgpack_pack_append_buffer(x, buf, 3); \ + } else { \ + /* unsigned 32 */ \ + unsigned char buf[5]; \ + buf[0] = 0xce; _msgpack_store32(&buf[1], (uint32_t)d); \ + msgpack_pack_append_buffer(x, buf, 5); \ + } \ + } \ +} while(0) + +#define msgpack_pack_real_uint64(x, d) \ +do { \ + if(d < (1ULL<<8)) { \ + if(d < (1ULL<<7)) { \ + /* fixnum */ \ + msgpack_pack_append_buffer(x, &TAKE8_64(d), 1); \ + } else { \ + /* unsigned 8 */ \ + unsigned char buf[2] = {0xcc, TAKE8_64(d)}; \ + msgpack_pack_append_buffer(x, buf, 2); \ + } \ + } else { \ + if(d < (1ULL<<16)) { \ + /* unsigned 16 */ \ + unsigned char buf[3]; \ + buf[0] = 0xcd; _msgpack_store16(&buf[1], (uint16_t)d); \ + msgpack_pack_append_buffer(x, buf, 3); \ + } else if(d < (1ULL<<32)) { \ + /* unsigned 32 */ \ + unsigned char buf[5]; \ + buf[0] = 0xce; _msgpack_store32(&buf[1], (uint32_t)d); \ + msgpack_pack_append_buffer(x, buf, 5); \ + } else { \ + /* unsigned 64 */ \ + unsigned char buf[9]; \ + buf[0] = 0xcf; _msgpack_store64(&buf[1], d); \ + msgpack_pack_append_buffer(x, buf, 9); \ + } \ + } \ +} while(0) + +#define msgpack_pack_real_int8(x, d) \ +do { \ + if(d < -(1<<5)) { \ + /* signed 8 */ \ + unsigned char buf[2] = {0xd0, TAKE8_8(d)}; \ + msgpack_pack_append_buffer(x, buf, 2); \ + } else { \ + /* fixnum */ \ + msgpack_pack_append_buffer(x, &TAKE8_8(d), 1); \ + } \ +} while(0) + +#define msgpack_pack_real_int16(x, d) \ +do { \ + if(d < -(1<<5)) { \ + if(d < -(1<<7)) { \ + /* signed 16 */ \ + unsigned char buf[3]; \ + buf[0] = 0xd1; _msgpack_store16(&buf[1], (int16_t)d); \ + msgpack_pack_append_buffer(x, buf, 3); \ + } else { \ + /* signed 8 */ \ + unsigned char buf[2] = {0xd0, TAKE8_16(d)}; \ + msgpack_pack_append_buffer(x, buf, 2); \ + } \ + } else if(d < (1<<7)) { \ + /* fixnum */ \ + msgpack_pack_append_buffer(x, &TAKE8_16(d), 1); \ + } else { \ + if(d < (1<<8)) { \ + /* unsigned 8 */ \ + unsigned char buf[2] = {0xcc, TAKE8_16(d)}; \ + msgpack_pack_append_buffer(x, buf, 2); \ + } else { \ + /* unsigned 16 */ \ + unsigned char buf[3]; \ + buf[0] = 0xcd; _msgpack_store16(&buf[1], (uint16_t)d); \ + msgpack_pack_append_buffer(x, buf, 3); \ + } \ + } \ +} while(0) + +#define msgpack_pack_real_int32(x, d) \ +do { \ + if(d < -(1<<5)) { \ + if(d < -(1<<15)) { \ + /* signed 32 */ \ + unsigned char buf[5]; \ + buf[0] = 0xd2; _msgpack_store32(&buf[1], (int32_t)d); \ + msgpack_pack_append_buffer(x, buf, 5); \ + } else if(d < -(1<<7)) { \ + /* signed 16 */ \ + unsigned char buf[3]; \ + buf[0] = 0xd1; _msgpack_store16(&buf[1], (int16_t)d); \ + msgpack_pack_append_buffer(x, buf, 3); \ + } else { \ + /* signed 8 */ \ + unsigned char buf[2] = {0xd0, TAKE8_32(d)}; \ + msgpack_pack_append_buffer(x, buf, 2); \ + } \ + } else if(d < (1<<7)) { \ + /* fixnum */ \ + msgpack_pack_append_buffer(x, &TAKE8_32(d), 1); \ + } else { \ + if(d < (1<<8)) { \ + /* unsigned 8 */ \ + unsigned char buf[2] = {0xcc, TAKE8_32(d)}; \ + msgpack_pack_append_buffer(x, buf, 2); \ + } else if(d < (1<<16)) { \ + /* unsigned 16 */ \ + unsigned char buf[3]; \ + buf[0] = 0xcd; _msgpack_store16(&buf[1], (uint16_t)d); \ + msgpack_pack_append_buffer(x, buf, 3); \ + } else { \ + /* unsigned 32 */ \ + unsigned char buf[5]; \ + buf[0] = 0xce; _msgpack_store32(&buf[1], (uint32_t)d); \ + msgpack_pack_append_buffer(x, buf, 5); \ + } \ + } \ +} while(0) + +#define msgpack_pack_real_int64(x, d) \ +do { \ + if(d < -(1LL<<5)) { \ + if(d < -(1LL<<15)) { \ + if(d < -(1LL<<31)) { \ + /* signed 64 */ \ + unsigned char buf[9]; \ + buf[0] = 0xd3; _msgpack_store64(&buf[1], d); \ + msgpack_pack_append_buffer(x, buf, 9); \ + } else { \ + /* signed 32 */ \ + unsigned char buf[5]; \ + buf[0] = 0xd2; _msgpack_store32(&buf[1], (int32_t)d); \ + msgpack_pack_append_buffer(x, buf, 5); \ + } \ + } else { \ + if(d < -(1<<7)) { \ + /* signed 16 */ \ + unsigned char buf[3]; \ + buf[0] = 0xd1; _msgpack_store16(&buf[1], (int16_t)d); \ + msgpack_pack_append_buffer(x, buf, 3); \ + } else { \ + /* signed 8 */ \ + unsigned char buf[2] = {0xd0, TAKE8_64(d)}; \ + msgpack_pack_append_buffer(x, buf, 2); \ + } \ + } \ + } else if(d < (1<<7)) { \ + /* fixnum */ \ + msgpack_pack_append_buffer(x, &TAKE8_64(d), 1); \ + } else { \ + if(d < (1LL<<16)) { \ + if(d < (1<<8)) { \ + /* unsigned 8 */ \ + unsigned char buf[2] = {0xcc, TAKE8_64(d)}; \ + msgpack_pack_append_buffer(x, buf, 2); \ + } else { \ + /* unsigned 16 */ \ + unsigned char buf[3]; \ + buf[0] = 0xcd; _msgpack_store16(&buf[1], (uint16_t)d); \ + msgpack_pack_append_buffer(x, buf, 3); \ + } \ + } else { \ + if(d < (1LL<<32)) { \ + /* unsigned 32 */ \ + unsigned char buf[5]; \ + buf[0] = 0xce; _msgpack_store32(&buf[1], (uint32_t)d); \ + msgpack_pack_append_buffer(x, buf, 5); \ + } else { \ + /* unsigned 64 */ \ + unsigned char buf[9]; \ + buf[0] = 0xcf; _msgpack_store64(&buf[1], d); \ + msgpack_pack_append_buffer(x, buf, 9); \ + } \ + } \ + } \ +} while(0) + + +#ifdef msgpack_pack_inline_func_fixint + +msgpack_pack_inline_func_fixint(_uint8)(msgpack_pack_user x, uint8_t d) +{ + unsigned char buf[2] = {0xcc, TAKE8_8(d)}; + msgpack_pack_append_buffer(x, buf, 2); +} + +msgpack_pack_inline_func_fixint(_uint16)(msgpack_pack_user x, uint16_t d) +{ + unsigned char buf[3]; + buf[0] = 0xcd; _msgpack_store16(&buf[1], d); + msgpack_pack_append_buffer(x, buf, 3); +} + +msgpack_pack_inline_func_fixint(_uint32)(msgpack_pack_user x, uint32_t d) +{ + unsigned char buf[5]; + buf[0] = 0xce; _msgpack_store32(&buf[1], d); + msgpack_pack_append_buffer(x, buf, 5); +} + +msgpack_pack_inline_func_fixint(_uint64)(msgpack_pack_user x, uint64_t d) +{ + unsigned char buf[9]; + buf[0] = 0xcf; _msgpack_store64(&buf[1], d); + msgpack_pack_append_buffer(x, buf, 9); +} + +msgpack_pack_inline_func_fixint(_int8)(msgpack_pack_user x, int8_t d) +{ + unsigned char buf[2] = {0xd0, TAKE8_8(d)}; + msgpack_pack_append_buffer(x, buf, 2); +} + +msgpack_pack_inline_func_fixint(_int16)(msgpack_pack_user x, int16_t d) +{ + unsigned char buf[3]; + buf[0] = 0xd1; _msgpack_store16(&buf[1], d); + msgpack_pack_append_buffer(x, buf, 3); +} + +msgpack_pack_inline_func_fixint(_int32)(msgpack_pack_user x, int32_t d) +{ + unsigned char buf[5]; + buf[0] = 0xd2; _msgpack_store32(&buf[1], d); + msgpack_pack_append_buffer(x, buf, 5); +} + +msgpack_pack_inline_func_fixint(_int64)(msgpack_pack_user x, int64_t d) +{ + unsigned char buf[9]; + buf[0] = 0xd3; _msgpack_store64(&buf[1], d); + msgpack_pack_append_buffer(x, buf, 9); +} + +#undef msgpack_pack_inline_func_fixint +#endif + + +msgpack_pack_inline_func(_uint8)(msgpack_pack_user x, uint8_t d) +{ + msgpack_pack_real_uint8(x, d); +} + +msgpack_pack_inline_func(_uint16)(msgpack_pack_user x, uint16_t d) +{ + msgpack_pack_real_uint16(x, d); +} + +msgpack_pack_inline_func(_uint32)(msgpack_pack_user x, uint32_t d) +{ + msgpack_pack_real_uint32(x, d); +} + +msgpack_pack_inline_func(_uint64)(msgpack_pack_user x, uint64_t d) +{ + msgpack_pack_real_uint64(x, d); +} + +msgpack_pack_inline_func(_int8)(msgpack_pack_user x, int8_t d) +{ + msgpack_pack_real_int8(x, d); +} + +msgpack_pack_inline_func(_int16)(msgpack_pack_user x, int16_t d) +{ + msgpack_pack_real_int16(x, d); +} + +msgpack_pack_inline_func(_int32)(msgpack_pack_user x, int32_t d) +{ + msgpack_pack_real_int32(x, d); +} + +msgpack_pack_inline_func(_int64)(msgpack_pack_user x, int64_t d) +{ + msgpack_pack_real_int64(x, d); +} + +msgpack_pack_inline_func(_char)(msgpack_pack_user x, char d) +{ +#if defined(CHAR_MIN) +#if CHAR_MIN < 0 + msgpack_pack_real_int8(x, d); +#else + msgpack_pack_real_uint8(x, d); +#endif +#else +#error CHAR_MIN is not defined +#endif +} + +msgpack_pack_inline_func(_signed_char)(msgpack_pack_user x, signed char d) +{ + msgpack_pack_real_int8(x, d); +} + +msgpack_pack_inline_func(_unsigned_char)(msgpack_pack_user x, unsigned char d) +{ + msgpack_pack_real_uint8(x, d); +} + +#ifdef msgpack_pack_inline_func_cint + +msgpack_pack_inline_func_cint(_short)(msgpack_pack_user x, short d) +{ +#if defined(SIZEOF_SHORT) +#if SIZEOF_SHORT == 2 + msgpack_pack_real_int16(x, d); +#elif SIZEOF_SHORT == 4 + msgpack_pack_real_int32(x, d); +#else + msgpack_pack_real_int64(x, d); +#endif + +#elif defined(SHRT_MAX) +#if SHRT_MAX == 0x7fff + msgpack_pack_real_int16(x, d); +#elif SHRT_MAX == 0x7fffffff + msgpack_pack_real_int32(x, d); +#else + msgpack_pack_real_int64(x, d); +#endif + +#else +if(sizeof(short) == 2) { + msgpack_pack_real_int16(x, d); +} else if(sizeof(short) == 4) { + msgpack_pack_real_int32(x, d); +} else { + msgpack_pack_real_int64(x, d); +} +#endif +} + +msgpack_pack_inline_func_cint(_int)(msgpack_pack_user x, int d) +{ +#if defined(SIZEOF_INT) +#if SIZEOF_INT == 2 + msgpack_pack_real_int16(x, d); +#elif SIZEOF_INT == 4 + msgpack_pack_real_int32(x, d); +#else + msgpack_pack_real_int64(x, d); +#endif + +#elif defined(INT_MAX) +#if INT_MAX == 0x7fff + msgpack_pack_real_int16(x, d); +#elif INT_MAX == 0x7fffffff + msgpack_pack_real_int32(x, d); +#else + msgpack_pack_real_int64(x, d); +#endif + +#else +if(sizeof(int) == 2) { + msgpack_pack_real_int16(x, d); +} else if(sizeof(int) == 4) { + msgpack_pack_real_int32(x, d); +} else { + msgpack_pack_real_int64(x, d); +} +#endif +} + +msgpack_pack_inline_func_cint(_long)(msgpack_pack_user x, long d) +{ +#if defined(SIZEOF_LONG) +#if SIZEOF_LONG == 2 + msgpack_pack_real_int16(x, d); +#elif SIZEOF_LONG == 4 + msgpack_pack_real_int32(x, d); +#else + msgpack_pack_real_int64(x, d); +#endif + +#elif defined(LONG_MAX) +#if LONG_MAX == 0x7fffL + msgpack_pack_real_int16(x, d); +#elif LONG_MAX == 0x7fffffffL + msgpack_pack_real_int32(x, d); +#else + msgpack_pack_real_int64(x, d); +#endif + +#else +if(sizeof(long) == 2) { + msgpack_pack_real_int16(x, d); +} else if(sizeof(long) == 4) { + msgpack_pack_real_int32(x, d); +} else { + msgpack_pack_real_int64(x, d); +} +#endif +} + +msgpack_pack_inline_func_cint(_long_long)(msgpack_pack_user x, long long d) +{ +#if defined(SIZEOF_LONG_LONG) +#if SIZEOF_LONG_LONG == 2 + msgpack_pack_real_int16(x, d); +#elif SIZEOF_LONG_LONG == 4 + msgpack_pack_real_int32(x, d); +#else + msgpack_pack_real_int64(x, d); +#endif + +#elif defined(LLONG_MAX) +#if LLONG_MAX == 0x7fffL + msgpack_pack_real_int16(x, d); +#elif LLONG_MAX == 0x7fffffffL + msgpack_pack_real_int32(x, d); +#else + msgpack_pack_real_int64(x, d); +#endif + +#else +if(sizeof(long long) == 2) { + msgpack_pack_real_int16(x, d); +} else if(sizeof(long long) == 4) { + msgpack_pack_real_int32(x, d); +} else { + msgpack_pack_real_int64(x, d); +} +#endif +} + +msgpack_pack_inline_func_cint(_unsigned_short)(msgpack_pack_user x, unsigned short d) +{ +#if defined(SIZEOF_SHORT) +#if SIZEOF_SHORT == 2 + msgpack_pack_real_uint16(x, d); +#elif SIZEOF_SHORT == 4 + msgpack_pack_real_uint32(x, d); +#else + msgpack_pack_real_uint64(x, d); +#endif + +#elif defined(USHRT_MAX) +#if USHRT_MAX == 0xffffU + msgpack_pack_real_uint16(x, d); +#elif USHRT_MAX == 0xffffffffU + msgpack_pack_real_uint32(x, d); +#else + msgpack_pack_real_uint64(x, d); +#endif + +#else +if(sizeof(unsigned short) == 2) { + msgpack_pack_real_uint16(x, d); +} else if(sizeof(unsigned short) == 4) { + msgpack_pack_real_uint32(x, d); +} else { + msgpack_pack_real_uint64(x, d); +} +#endif +} + +msgpack_pack_inline_func_cint(_unsigned_int)(msgpack_pack_user x, unsigned int d) +{ +#if defined(SIZEOF_INT) +#if SIZEOF_INT == 2 + msgpack_pack_real_uint16(x, d); +#elif SIZEOF_INT == 4 + msgpack_pack_real_uint32(x, d); +#else + msgpack_pack_real_uint64(x, d); +#endif + +#elif defined(UINT_MAX) +#if UINT_MAX == 0xffffU + msgpack_pack_real_uint16(x, d); +#elif UINT_MAX == 0xffffffffU + msgpack_pack_real_uint32(x, d); +#else + msgpack_pack_real_uint64(x, d); +#endif + +#else +if(sizeof(unsigned int) == 2) { + msgpack_pack_real_uint16(x, d); +} else if(sizeof(unsigned int) == 4) { + msgpack_pack_real_uint32(x, d); +} else { + msgpack_pack_real_uint64(x, d); +} +#endif +} + +msgpack_pack_inline_func_cint(_unsigned_long)(msgpack_pack_user x, unsigned long d) +{ +#if defined(SIZEOF_LONG) +#if SIZEOF_LONG == 2 + msgpack_pack_real_uint16(x, d); +#elif SIZEOF_LONG == 4 + msgpack_pack_real_uint32(x, d); +#else + msgpack_pack_real_uint64(x, d); +#endif + +#elif defined(ULONG_MAX) +#if ULONG_MAX == 0xffffUL + msgpack_pack_real_uint16(x, d); +#elif ULONG_MAX == 0xffffffffUL + msgpack_pack_real_uint32(x, d); +#else + msgpack_pack_real_uint64(x, d); +#endif + +#else +if(sizeof(unsigned long) == 2) { + msgpack_pack_real_uint16(x, d); +} else if(sizeof(unsigned long) == 4) { + msgpack_pack_real_uint32(x, d); +} else { + msgpack_pack_real_uint64(x, d); +} +#endif +} + +msgpack_pack_inline_func_cint(_unsigned_long_long)(msgpack_pack_user x, unsigned long long d) +{ +#if defined(SIZEOF_LONG_LONG) +#if SIZEOF_LONG_LONG == 2 + msgpack_pack_real_uint16(x, d); +#elif SIZEOF_LONG_LONG == 4 + msgpack_pack_real_uint32(x, d); +#else + msgpack_pack_real_uint64(x, d); +#endif + +#elif defined(ULLONG_MAX) +#if ULLONG_MAX == 0xffffUL + msgpack_pack_real_uint16(x, d); +#elif ULLONG_MAX == 0xffffffffUL + msgpack_pack_real_uint32(x, d); +#else + msgpack_pack_real_uint64(x, d); +#endif + +#else +if(sizeof(unsigned long long) == 2) { + msgpack_pack_real_uint16(x, d); +} else if(sizeof(unsigned long long) == 4) { + msgpack_pack_real_uint32(x, d); +} else { + msgpack_pack_real_uint64(x, d); +} +#endif +} + +#undef msgpack_pack_inline_func_cint +#endif + + + +/* + * Float + */ + +msgpack_pack_inline_func(_float)(msgpack_pack_user x, float d) +{ + unsigned char buf[5]; + union { float f; uint32_t i; } mem; + mem.f = d; + buf[0] = 0xca; _msgpack_store32(&buf[1], mem.i); + msgpack_pack_append_buffer(x, buf, 5); +} + +msgpack_pack_inline_func(_double)(msgpack_pack_user x, double d) +{ + unsigned char buf[9]; + union { double f; uint64_t i; } mem; + mem.f = d; + buf[0] = 0xcb; +#if defined(TARGET_OS_IPHONE) + // ok +#elif defined(__arm__) && !(__ARM_EABI__) // arm-oabi + // https://github.com/msgpack/msgpack-perl/pull/1 + mem.i = (mem.i & 0xFFFFFFFFUL) << 32UL | (mem.i >> 32UL); +#endif + _msgpack_store64(&buf[1], mem.i); + msgpack_pack_append_buffer(x, buf, 9); +} + + +/* + * Nil + */ + +msgpack_pack_inline_func(_nil)(msgpack_pack_user x) +{ + static const unsigned char d = 0xc0; + msgpack_pack_append_buffer(x, &d, 1); +} + + +/* + * Boolean + */ + +msgpack_pack_inline_func(_true)(msgpack_pack_user x) +{ + static const unsigned char d = 0xc3; + msgpack_pack_append_buffer(x, &d, 1); +} + +msgpack_pack_inline_func(_false)(msgpack_pack_user x) +{ + static const unsigned char d = 0xc2; + msgpack_pack_append_buffer(x, &d, 1); +} + + +/* + * Array + */ + +msgpack_pack_inline_func(_array)(msgpack_pack_user x, size_t n) +{ + if(n < 16) { + unsigned char d = 0x90 | (uint8_t)n; + msgpack_pack_append_buffer(x, &d, 1); + } else if(n < 65536) { + unsigned char buf[3]; + buf[0] = 0xdc; _msgpack_store16(&buf[1], (uint16_t)n); + msgpack_pack_append_buffer(x, buf, 3); + } else { + unsigned char buf[5]; + buf[0] = 0xdd; _msgpack_store32(&buf[1], (uint32_t)n); + msgpack_pack_append_buffer(x, buf, 5); + } +} + + +/* + * Map + */ + +msgpack_pack_inline_func(_map)(msgpack_pack_user x, size_t n) +{ + if(n < 16) { + unsigned char d = 0x80 | (uint8_t)n; + msgpack_pack_append_buffer(x, &TAKE8_8(d), 1); + } else if(n < 65536) { + unsigned char buf[3]; + buf[0] = 0xde; _msgpack_store16(&buf[1], (uint16_t)n); + msgpack_pack_append_buffer(x, buf, 3); + } else { + unsigned char buf[5]; + buf[0] = 0xdf; _msgpack_store32(&buf[1], (uint32_t)n); + msgpack_pack_append_buffer(x, buf, 5); + } +} + + +/* + * Str + */ + +msgpack_pack_inline_func(_str)(msgpack_pack_user x, size_t l) +{ + if(l < 32) { + unsigned char d = 0xa0 | (uint8_t)l; + msgpack_pack_append_buffer(x, &TAKE8_8(d), 1); + } else if(l < 256) { + unsigned char buf[2]; + buf[0] = 0xd9; buf[1] = (uint8_t)l; + msgpack_pack_append_buffer(x, buf, 2); + } else if(l < 65536) { + unsigned char buf[3]; + buf[0] = 0xda; _msgpack_store16(&buf[1], (uint16_t)l); + msgpack_pack_append_buffer(x, buf, 3); + } else { + unsigned char buf[5]; + buf[0] = 0xdb; _msgpack_store32(&buf[1], (uint32_t)l); + msgpack_pack_append_buffer(x, buf, 5); + } +} + +msgpack_pack_inline_func(_str_body)(msgpack_pack_user x, const void* b, size_t l) +{ + msgpack_pack_append_buffer(x, (const unsigned char*)b, l); +} + +/* + * Raw (V4) + */ + +msgpack_pack_inline_func(_v4raw)(msgpack_pack_user x, size_t l) +{ + if(l < 32) { + unsigned char d = 0xa0 | (uint8_t)l; + msgpack_pack_append_buffer(x, &TAKE8_8(d), 1); + } else if(l < 65536) { + unsigned char buf[3]; + buf[0] = 0xda; _msgpack_store16(&buf[1], (uint16_t)l); + msgpack_pack_append_buffer(x, buf, 3); + } else { + unsigned char buf[5]; + buf[0] = 0xdb; _msgpack_store32(&buf[1], (uint32_t)l); + msgpack_pack_append_buffer(x, buf, 5); + } +} + +msgpack_pack_inline_func(_v4raw_body)(msgpack_pack_user x, const void* b, size_t l) +{ + msgpack_pack_append_buffer(x, (const unsigned char*)b, l); +} + +/* + * Bin + */ + +msgpack_pack_inline_func(_bin)(msgpack_pack_user x, size_t l) +{ + if(l < 256) { + unsigned char buf[2]; + buf[0] = 0xc4; buf[1] = (uint8_t)l; + msgpack_pack_append_buffer(x, buf, 2); + } else if(l < 65536) { + unsigned char buf[3]; + buf[0] = 0xc5; _msgpack_store16(&buf[1], (uint16_t)l); + msgpack_pack_append_buffer(x, buf, 3); + } else { + unsigned char buf[5]; + buf[0] = 0xc6; _msgpack_store32(&buf[1], (uint32_t)l); + msgpack_pack_append_buffer(x, buf, 5); + } +} + +msgpack_pack_inline_func(_bin_body)(msgpack_pack_user x, const void* b, size_t l) +{ + msgpack_pack_append_buffer(x, (const unsigned char*)b, l); +} + +/* + * Ext + */ + +msgpack_pack_inline_func(_ext)(msgpack_pack_user x, size_t l, int8_t type) +{ + switch(l) { + case 1: { + unsigned char buf[2]; + buf[0] = 0xd4; + buf[1] = type; + msgpack_pack_append_buffer(x, buf, 2); + } break; + case 2: { + unsigned char buf[2]; + buf[0] = 0xd5; + buf[1] = type; + msgpack_pack_append_buffer(x, buf, 2); + } break; + case 4: { + unsigned char buf[2]; + buf[0] = 0xd6; + buf[1] = type; + msgpack_pack_append_buffer(x, buf, 2); + } break; + case 8: { + unsigned char buf[2]; + buf[0] = 0xd7; + buf[1] = type; + msgpack_pack_append_buffer(x, buf, 2); + } break; + case 16: { + unsigned char buf[2]; + buf[0] = 0xd8; + buf[1] = type; + msgpack_pack_append_buffer(x, buf, 2); + } break; + default: + if(l < 256) { + unsigned char buf[3]; + buf[0] = 0xc7; + buf[1] = (unsigned char)l; + buf[2] = type; + msgpack_pack_append_buffer(x, buf, 3); + } else if(l < 65536) { + unsigned char buf[4]; + buf[0] = 0xc8; + _msgpack_store16(&buf[1], l); + buf[3] = type; + msgpack_pack_append_buffer(x, buf, 4); + } else { + unsigned char buf[6]; + buf[0] = 0xc9; + _msgpack_store32(&buf[1], l); + buf[5] = type; + msgpack_pack_append_buffer(x, buf, 6); + } + break; + } +} + +msgpack_pack_inline_func(_ext_body)(msgpack_pack_user x, const void* b, size_t l) +{ + msgpack_pack_append_buffer(x, (const unsigned char*)b, l); +} + +#undef msgpack_pack_inline_func +#undef msgpack_pack_user +#undef msgpack_pack_append_buffer + +#undef TAKE8_8 +#undef TAKE8_16 +#undef TAKE8_32 +#undef TAKE8_64 + +#undef msgpack_pack_real_uint8 +#undef msgpack_pack_real_uint16 +#undef msgpack_pack_real_uint32 +#undef msgpack_pack_real_uint64 +#undef msgpack_pack_real_int8 +#undef msgpack_pack_real_int16 +#undef msgpack_pack_real_int32 +#undef msgpack_pack_real_int64 diff --git a/msgpackc/2.1.5/include/msgpack/predef.h b/msgpackc/2.1.5/include/msgpack/predef.h new file mode 100755 index 0000000000000000000000000000000000000000..0f8d5f589582ab838d25393424bc2987f2e3c663 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef.h @@ -0,0 +1,24 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#if !defined(MSGPACK_PREDEF_H) || defined(MSGPACK_PREDEF_INTERNAL_GENERATE_TESTS) +#ifndef MSGPACK_PREDEF_H +#define MSGPACK_PREDEF_H +#endif + +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture.h b/msgpackc/2.1.5/include/msgpack/predef/architecture.h new file mode 100755 index 0000000000000000000000000000000000000000..63879a032fa4c69ce50b8278e75a6ef433244d7f --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture.h @@ -0,0 +1,32 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#if !defined(MSGPACK_PREDEF_ARCHITECTURE_H) || defined(MSGPACK_PREDEF_INTERNAL_GENERATE_TESTS) +#ifndef MSGPACK_PREDEF_ARCHITECTURE_H +#define MSGPACK_PREDEF_ARCHITECTURE_H +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +/*#include */ + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture/alpha.h b/msgpackc/2.1.5/include/msgpack/predef/architecture/alpha.h new file mode 100755 index 0000000000000000000000000000000000000000..e1a39d0e13198251c7d750b786960b01f7d87a70 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture/alpha.h @@ -0,0 +1,59 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_ARCHITECTURE_ALPHA_H +#define MSGPACK_PREDEF_ARCHITECTURE_ALPHA_H + +#include +#include + +/*` +[heading `MSGPACK_ARCH_ALPHA`] + +[@http://en.wikipedia.org/wiki/DEC_Alpha DEC Alpha] architecture. + +[table + [[__predef_symbol__] [__predef_version__]] + [[`__alpha__`] [__predef_detection__]] + [[`__alpha`] [__predef_detection__]] + [[`_M_ALPHA`] [__predef_detection__]] + + [[`__alpha_ev4__`] [4.0.0]] + [[`__alpha_ev5__`] [5.0.0]] + [[`__alpha_ev6__`] [6.0.0]] + ] + */ + +#define MSGPACK_ARCH_ALPHA MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__alpha__) || defined(__alpha) || \ + defined(_M_ALPHA) +# undef MSGPACK_ARCH_ALPHA +# if !defined(MSGPACK_ARCH_ALPHA) && defined(__alpha_ev4__) +# define MSGPACK_ARCH_ALPHA MSGPACK_VERSION_NUMBER(4,0,0) +# endif +# if !defined(MSGPACK_ARCH_ALPHA) && defined(__alpha_ev5__) +# define MSGPACK_ARCH_ALPHA MSGPACK_VERSION_NUMBER(5,0,0) +# endif +# if !defined(MSGPACK_ARCH_ALPHA) && defined(__alpha_ev6__) +# define MSGPACK_ARCH_ALPHA MSGPACK_VERSION_NUMBER(6,0,0) +# endif +# if !defined(MSGPACK_ARCH_ALPHA) +# define MSGPACK_ARCH_ALPHA MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_ARCH_ALPHA +# define MSGPACK_ARCH_ALPHA_AVAILABLE +#endif + +#define MSGPACK_ARCH_ALPHA_NAME "DEC Alpha" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_ALPHA,MSGPACK_ARCH_ALPHA_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture/arm.h b/msgpackc/2.1.5/include/msgpack/predef/architecture/arm.h new file mode 100755 index 0000000000000000000000000000000000000000..c37f2d13064f6fb0553e763000735d78f4ed8323 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture/arm.h @@ -0,0 +1,70 @@ +/* +Copyright Rene Rivera 2008-2015 +Copyright Franz Detro 2014 +Copyright (c) Microsoft Corporation 2014 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_ARCHITECTURE_ARM_H +#define MSGPACK_PREDEF_ARCHITECTURE_ARM_H + +#include +#include + +/*` +[heading `MSGPACK_ARCH_ARM`] + +[@http://en.wikipedia.org/wiki/ARM_architecture ARM] architecture. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__arm__`] [__predef_detection__]] + [[`__arm64`] [__predef_detection__]] + [[`__thumb__`] [__predef_detection__]] + [[`__TARGET_ARCH_ARM`] [__predef_detection__]] + [[`__TARGET_ARCH_THUMB`] [__predef_detection__]] + [[`_M_ARM`] [__predef_detection__]] + + [[`__arm64`] [8.0.0]] + [[`__TARGET_ARCH_ARM`] [V.0.0]] + [[`__TARGET_ARCH_THUMB`] [V.0.0]] + [[`_M_ARM`] [V.0.0]] + ] + */ + +#define MSGPACK_ARCH_ARM MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__arm__) || defined(__arm64) || defined(__thumb__) || \ + defined(__TARGET_ARCH_ARM) || defined(__TARGET_ARCH_THUMB) || \ + defined(_M_ARM) +# undef MSGPACK_ARCH_ARM +# if !defined(MSGPACK_ARCH_ARM) && defined(__arm64) +# define MSGPACK_ARCH_ARM MSGPACK_VERSION_NUMBER(8,0,0) +# endif +# if !defined(MSGPACK_ARCH_ARM) && defined(__TARGET_ARCH_ARM) +# define MSGPACK_ARCH_ARM MSGPACK_VERSION_NUMBER(__TARGET_ARCH_ARM,0,0) +# endif +# if !defined(MSGPACK_ARCH_ARM) && defined(__TARGET_ARCH_THUMB) +# define MSGPACK_ARCH_ARM MSGPACK_VERSION_NUMBER(__TARGET_ARCH_THUMB,0,0) +# endif +# if !defined(MSGPACK_ARCH_ARM) && defined(_M_ARM) +# define MSGPACK_ARCH_ARM MSGPACK_VERSION_NUMBER(_M_ARM,0,0) +# endif +# if !defined(MSGPACK_ARCH_ARM) +# define MSGPACK_ARCH_ARM MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_ARCH_ARM +# define MSGPACK_ARCH_ARM_AVAILABLE +#endif + +#define MSGPACK_ARCH_ARM_NAME "ARM" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_ARM,MSGPACK_ARCH_ARM_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture/blackfin.h b/msgpackc/2.1.5/include/msgpack/predef/architecture/blackfin.h new file mode 100755 index 0000000000000000000000000000000000000000..c3e580d87e502a3b7269c94dd0a425d564022fb8 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture/blackfin.h @@ -0,0 +1,46 @@ +/* +Copyright Rene Rivera 2013-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_ARCHITECTURE_BLACKFIN_H +#define MSGPACK_PREDEF_ARCHITECTURE_BLACKFIN_H + +#include +#include + +/*` +[heading `MSGPACK_ARCH_BLACKFIN`] + +Blackfin Processors from Analog Devices. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__bfin__`] [__predef_detection__]] + [[`__BFIN__`] [__predef_detection__]] + [[`bfin`] [__predef_detection__]] + [[`BFIN`] [__predef_detection__]] + ] + */ + +#define MSGPACK_ARCH_BLACKFIN MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__bfin__) || defined(__BFIN__) || \ + defined(bfin) || defined(BFIN) +# undef MSGPACK_ARCH_BLACKFIN +# define MSGPACK_ARCH_BLACKFIN MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_ARCH_BLACKFIN +# define MSGPACK_ARCH_BLACKFIN_AVAILABLE +#endif + +#define MSGPACK_ARCH_BLACKFIN_NAME "Blackfin" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_BLACKFIN,MSGPACK_ARCH_BLACKFIN_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture/convex.h b/msgpackc/2.1.5/include/msgpack/predef/architecture/convex.h new file mode 100755 index 0000000000000000000000000000000000000000..6509ffd2a45ce12a33b2ce9d0023da6e1aad3d2a --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture/convex.h @@ -0,0 +1,65 @@ +/* +Copyright Rene Rivera 2011-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_ARCHITECTURE_CONVEX_H +#define MSGPACK_PREDEF_ARCHITECTURE_CONVEX_H + +#include +#include + +/*` +[heading `MSGPACK_ARCH_CONVEX`] + +[@http://en.wikipedia.org/wiki/Convex_Computer Convex Computer] architecture. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__convex__`] [__predef_detection__]] + + [[`__convex_c1__`] [1.0.0]] + [[`__convex_c2__`] [2.0.0]] + [[`__convex_c32__`] [3.2.0]] + [[`__convex_c34__`] [3.4.0]] + [[`__convex_c38__`] [3.8.0]] + ] + */ + +#define MSGPACK_ARCH_CONVEX MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__convex__) +# undef MSGPACK_ARCH_CONVEX +# if !defined(MSGPACK_ARCH_CONVEX) && defined(__convex_c1__) +# define MSGPACK_ARCH_CONVEX MSGPACK_VERSION_NUMBER(1,0,0) +# endif +# if !defined(MSGPACK_ARCH_CONVEX) && defined(__convex_c2__) +# define MSGPACK_ARCH_CONVEX MSGPACK_VERSION_NUMBER(2,0,0) +# endif +# if !defined(MSGPACK_ARCH_CONVEX) && defined(__convex_c32__) +# define MSGPACK_ARCH_CONVEX MSGPACK_VERSION_NUMBER(3,2,0) +# endif +# if !defined(MSGPACK_ARCH_CONVEX) && defined(__convex_c34__) +# define MSGPACK_ARCH_CONVEX MSGPACK_VERSION_NUMBER(3,4,0) +# endif +# if !defined(MSGPACK_ARCH_CONVEX) && defined(__convex_c38__) +# define MSGPACK_ARCH_CONVEX MSGPACK_VERSION_NUMBER(3,8,0) +# endif +# if !defined(MSGPACK_ARCH_CONVEX) +# define MSGPACK_ARCH_CONVEX MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_ARCH_CONVEX +# define MSGPACK_ARCH_CONVEX_AVAILABLE +#endif + +#define MSGPACK_ARCH_CONVEX_NAME "Convex Computer" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_CONVEX,MSGPACK_ARCH_CONVEX_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture/ia64.h b/msgpackc/2.1.5/include/msgpack/predef/architecture/ia64.h new file mode 100755 index 0000000000000000000000000000000000000000..f6a0da03df7df9a9397bea873b8b0451f8784589 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture/ia64.h @@ -0,0 +1,49 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_ARCHITECTURE_IA64_H +#define MSGPACK_PREDEF_ARCHITECTURE_IA64_H + +#include +#include + +/*` +[heading `MSGPACK_ARCH_IA64`] + +[@http://en.wikipedia.org/wiki/Ia64 Intel Itanium 64] architecture. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__ia64__`] [__predef_detection__]] + [[`_IA64`] [__predef_detection__]] + [[`__IA64__`] [__predef_detection__]] + [[`__ia64`] [__predef_detection__]] + [[`_M_IA64`] [__predef_detection__]] + [[`__itanium__`] [__predef_detection__]] + ] + */ + +#define MSGPACK_ARCH_IA64 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__ia64__) || defined(_IA64) || \ + defined(__IA64__) || defined(__ia64) || \ + defined(_M_IA64) || defined(__itanium__) +# undef MSGPACK_ARCH_IA64 +# define MSGPACK_ARCH_IA64 MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_ARCH_IA64 +# define MSGPACK_ARCH_IA64_AVAILABLE +#endif + +#define MSGPACK_ARCH_IA64_NAME "Intel Itanium 64" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_IA64,MSGPACK_ARCH_IA64_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture/m68k.h b/msgpackc/2.1.5/include/msgpack/predef/architecture/m68k.h new file mode 100755 index 0000000000000000000000000000000000000000..0112a47358ef76d5b38bc01ee4d117d624285efd --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture/m68k.h @@ -0,0 +1,82 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_ARCHITECTURE_M68K_H +#define MSGPACK_PREDEF_ARCHITECTURE_M68K_H + +#include +#include + +/*` +[heading `MSGPACK_ARCH_M68K`] + +[@http://en.wikipedia.org/wiki/M68k Motorola 68k] architecture. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__m68k__`] [__predef_detection__]] + [[`M68000`] [__predef_detection__]] + + [[`__mc68060__`] [6.0.0]] + [[`mc68060`] [6.0.0]] + [[`__mc68060`] [6.0.0]] + [[`__mc68040__`] [4.0.0]] + [[`mc68040`] [4.0.0]] + [[`__mc68040`] [4.0.0]] + [[`__mc68030__`] [3.0.0]] + [[`mc68030`] [3.0.0]] + [[`__mc68030`] [3.0.0]] + [[`__mc68020__`] [2.0.0]] + [[`mc68020`] [2.0.0]] + [[`__mc68020`] [2.0.0]] + [[`__mc68010__`] [1.0.0]] + [[`mc68010`] [1.0.0]] + [[`__mc68010`] [1.0.0]] + [[`__mc68000__`] [0.0.1]] + [[`mc68000`] [0.0.1]] + [[`__mc68000`] [0.0.1]] + ] + */ + +#define MSGPACK_ARCH_M68K MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__m68k__) || defined(M68000) +# undef MSGPACK_ARCH_M68K +# if !defined(MSGPACK_ARCH_M68K) && (defined(__mc68060__) || defined(mc68060) || defined(__mc68060)) +# define MSGPACK_ARCH_M68K MSGPACK_VERSION_NUMBER(6,0,0) +# endif +# if !defined(MSGPACK_ARCH_M68K) && (defined(__mc68040__) || defined(mc68040) || defined(__mc68040)) +# define MSGPACK_ARCH_M68K MSGPACK_VERSION_NUMBER(4,0,0) +# endif +# if !defined(MSGPACK_ARCH_M68K) && (defined(__mc68030__) || defined(mc68030) || defined(__mc68030)) +# define MSGPACK_ARCH_M68K MSGPACK_VERSION_NUMBER(3,0,0) +# endif +# if !defined(MSGPACK_ARCH_M68K) && (defined(__mc68020__) || defined(mc68020) || defined(__mc68020)) +# define MSGPACK_ARCH_M68K MSGPACK_VERSION_NUMBER(2,0,0) +# endif +# if !defined(MSGPACK_ARCH_M68K) && (defined(__mc68010__) || defined(mc68010) || defined(__mc68010)) +# define MSGPACK_ARCH_M68K MSGPACK_VERSION_NUMBER(1,0,0) +# endif +# if !defined(MSGPACK_ARCH_M68K) && (defined(__mc68000__) || defined(mc68000) || defined(__mc68000)) +# define MSGPACK_ARCH_M68K MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +# if !defined(MSGPACK_ARCH_M68K) +# define MSGPACK_ARCH_M68K MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_ARCH_M68K +# define MSGPACK_ARCH_M68K_AVAILABLE +#endif + +#define MSGPACK_ARCH_M68K_NAME "Motorola 68k" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_M68K,MSGPACK_ARCH_M68K_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture/mips.h b/msgpackc/2.1.5/include/msgpack/predef/architecture/mips.h new file mode 100755 index 0000000000000000000000000000000000000000..c83021a6583034f338b8959a7235486606aba16c --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture/mips.h @@ -0,0 +1,73 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_ARCHITECTURE_MIPS_H +#define MSGPACK_PREDEF_ARCHITECTURE_MIPS_H + +#include +#include + +/*` +[heading `MSGPACK_ARCH_MIPS`] + +[@http://en.wikipedia.org/wiki/MIPS_architecture MIPS] architecture. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__mips__`] [__predef_detection__]] + [[`__mips`] [__predef_detection__]] + [[`__MIPS__`] [__predef_detection__]] + + [[`__mips`] [V.0.0]] + [[`_MIPS_ISA_MIPS1`] [1.0.0]] + [[`_R3000`] [1.0.0]] + [[`_MIPS_ISA_MIPS2`] [2.0.0]] + [[`__MIPS_ISA2__`] [2.0.0]] + [[`_R4000`] [2.0.0]] + [[`_MIPS_ISA_MIPS3`] [3.0.0]] + [[`__MIPS_ISA3__`] [3.0.0]] + [[`_MIPS_ISA_MIPS4`] [4.0.0]] + [[`__MIPS_ISA4__`] [4.0.0]] + ] + */ + +#define MSGPACK_ARCH_MIPS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__mips__) || defined(__mips) || \ + defined(__MIPS__) +# undef MSGPACK_ARCH_MIPS +# if !defined(MSGPACK_ARCH_MIPS) && (defined(__mips)) +# define MSGPACK_ARCH_MIPS MSGPACK_VERSION_NUMBER(__mips,0,0) +# endif +# if !defined(MSGPACK_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS1) || defined(_R3000)) +# define MSGPACK_ARCH_MIPS MSGPACK_VERSION_NUMBER(1,0,0) +# endif +# if !defined(MSGPACK_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS2) || defined(__MIPS_ISA2__) || defined(_R4000)) +# define MSGPACK_ARCH_MIPS MSGPACK_VERSION_NUMBER(2,0,0) +# endif +# if !defined(MSGPACK_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS3) || defined(__MIPS_ISA3__)) +# define MSGPACK_ARCH_MIPS MSGPACK_VERSION_NUMBER(3,0,0) +# endif +# if !defined(MSGPACK_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS4) || defined(__MIPS_ISA4__)) +# define MSGPACK_ARCH_MIPS MSGPACK_VERSION_NUMBER(4,0,0) +# endif +# if !defined(MSGPACK_ARCH_MIPS) +# define MSGPACK_ARCH_MIPS MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_ARCH_MIPS +# define MSGPACK_ARCH_MIPS_AVAILABLE +#endif + +#define MSGPACK_ARCH_MIPS_NAME "MIPS" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_MIPS,MSGPACK_ARCH_MIPS_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture/parisc.h b/msgpackc/2.1.5/include/msgpack/predef/architecture/parisc.h new file mode 100755 index 0000000000000000000000000000000000000000..bbd8aa162429a10dfc970b4a02495d53ea5e593f --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture/parisc.h @@ -0,0 +1,64 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_ARCHITECTURE_PARISC_H +#define MSGPACK_PREDEF_ARCHITECTURE_PARISC_H + +#include +#include + +/*` +[heading `MSGPACK_ARCH_PARISK`] + +[@http://en.wikipedia.org/wiki/PA-RISC_family HP/PA RISC] architecture. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__hppa__`] [__predef_detection__]] + [[`__hppa`] [__predef_detection__]] + [[`__HPPA__`] [__predef_detection__]] + + [[`_PA_RISC1_0`] [1.0.0]] + [[`_PA_RISC1_1`] [1.1.0]] + [[`__HPPA11__`] [1.1.0]] + [[`__PA7100__`] [1.1.0]] + [[`_PA_RISC2_0`] [2.0.0]] + [[`__RISC2_0__`] [2.0.0]] + [[`__HPPA20__`] [2.0.0]] + [[`__PA8000__`] [2.0.0]] + ] + */ + +#define MSGPACK_ARCH_PARISC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__hppa__) || defined(__hppa) || defined(__HPPA__) +# undef MSGPACK_ARCH_PARISC +# if !defined(MSGPACK_ARCH_PARISC) && (defined(_PA_RISC1_0)) +# define MSGPACK_ARCH_PARISC MSGPACK_VERSION_NUMBER(1,0,0) +# endif +# if !defined(MSGPACK_ARCH_PARISC) && (defined(_PA_RISC1_1) || defined(__HPPA11__) || defined(__PA7100__)) +# define MSGPACK_ARCH_PARISC MSGPACK_VERSION_NUMBER(1,1,0) +# endif +# if !defined(MSGPACK_ARCH_PARISC) && (defined(_PA_RISC2_0) || defined(__RISC2_0__) || defined(__HPPA20__) || defined(__PA8000__)) +# define MSGPACK_ARCH_PARISC MSGPACK_VERSION_NUMBER(2,0,0) +# endif +# if !defined(MSGPACK_ARCH_PARISC) +# define MSGPACK_ARCH_PARISC MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_ARCH_PARISC +# define MSGPACK_ARCH_PARISC_AVAILABLE +#endif + +#define MSGPACK_ARCH_PARISC_NAME "HP/PA RISC" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_PARISC,MSGPACK_ARCH_PARISC_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture/ppc.h b/msgpackc/2.1.5/include/msgpack/predef/architecture/ppc.h new file mode 100755 index 0000000000000000000000000000000000000000..29cad9298bef752d7673a7d68d2237a1e75c6150 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture/ppc.h @@ -0,0 +1,72 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_ARCHITECTURE_PPC_H +#define MSGPACK_PREDEF_ARCHITECTURE_PPC_H + +#include +#include + +/*` +[heading `MSGPACK_ARCH_PPC`] + +[@http://en.wikipedia.org/wiki/PowerPC PowerPC] architecture. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__powerpc`] [__predef_detection__]] + [[`__powerpc__`] [__predef_detection__]] + [[`__POWERPC__`] [__predef_detection__]] + [[`__ppc__`] [__predef_detection__]] + [[`_M_PPC`] [__predef_detection__]] + [[`_ARCH_PPC`] [__predef_detection__]] + [[`__PPCGECKO__`] [__predef_detection__]] + [[`__PPCBROADWAY__`] [__predef_detection__]] + [[`_XENON`] [__predef_detection__]] + + [[`__ppc601__`] [6.1.0]] + [[`_ARCH_601`] [6.1.0]] + [[`__ppc603__`] [6.3.0]] + [[`_ARCH_603`] [6.3.0]] + [[`__ppc604__`] [6.4.0]] + [[`__ppc604__`] [6.4.0]] + ] + */ + +#define MSGPACK_ARCH_PPC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__powerpc) || defined(__powerpc__) || \ + defined(__POWERPC__) || defined(__ppc__) || \ + defined(_M_PPC) || defined(_ARCH_PPC) || \ + defined(__PPCGECKO__) || defined(__PPCBROADWAY__) || \ + defined(_XENON) +# undef MSGPACK_ARCH_PPC +# if !defined (MSGPACK_ARCH_PPC) && (defined(__ppc601__) || defined(_ARCH_601)) +# define MSGPACK_ARCH_PPC MSGPACK_VERSION_NUMBER(6,1,0) +# endif +# if !defined (MSGPACK_ARCH_PPC) && (defined(__ppc603__) || defined(_ARCH_603)) +# define MSGPACK_ARCH_PPC MSGPACK_VERSION_NUMBER(6,3,0) +# endif +# if !defined (MSGPACK_ARCH_PPC) && (defined(__ppc604__) || defined(__ppc604__)) +# define MSGPACK_ARCH_PPC MSGPACK_VERSION_NUMBER(6,4,0) +# endif +# if !defined (MSGPACK_ARCH_PPC) +# define MSGPACK_ARCH_PPC MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_ARCH_PPC +# define MSGPACK_ARCH_PPC_AVAILABLE +#endif + +#define MSGPACK_ARCH_PPC_NAME "PowerPC" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_PPC,MSGPACK_ARCH_PPC_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture/pyramid.h b/msgpackc/2.1.5/include/msgpack/predef/architecture/pyramid.h new file mode 100755 index 0000000000000000000000000000000000000000..5799d831b03fd66e30c972c1bb3204656e34393f --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture/pyramid.h @@ -0,0 +1,42 @@ +/* +Copyright Rene Rivera 2011-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_ARCHITECTURE_PYRAMID_H +#define MSGPACK_PREDEF_ARCHITECTURE_PYRAMID_H + +#include +#include + +/*` +[heading `MSGPACK_ARCH_PYRAMID`] + +Pyramid 9810 architecture. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`pyr`] [__predef_detection__]] + ] + */ + +#define MSGPACK_ARCH_PYRAMID MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(pyr) +# undef MSGPACK_ARCH_PYRAMID +# define MSGPACK_ARCH_PYRAMID MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_ARCH_PYRAMID +# define MSGPACK_ARCH_PYRAMID_AVAILABLE +#endif + +#define MSGPACK_ARCH_PYRAMID_NAME "Pyramid 9810" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_PYRAMID,MSGPACK_ARCH_PYRAMID_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture/rs6k.h b/msgpackc/2.1.5/include/msgpack/predef/architecture/rs6k.h new file mode 100755 index 0000000000000000000000000000000000000000..241876059eb728590c94e92e1a1fa9e0dcb55eb7 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture/rs6k.h @@ -0,0 +1,56 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_ARCHITECTURE_RS6K_H +#define MSGPACK_PREDEF_ARCHITECTURE_RS6K_H + +#include +#include + +/*` +[heading `MSGPACK_ARCH_RS6000`] + +[@http://en.wikipedia.org/wiki/RS/6000 RS/6000] architecture. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__THW_RS6000`] [__predef_detection__]] + [[`_IBMR2`] [__predef_detection__]] + [[`_POWER`] [__predef_detection__]] + [[`_ARCH_PWR`] [__predef_detection__]] + [[`_ARCH_PWR2`] [__predef_detection__]] + ] + */ + +#define MSGPACK_ARCH_RS6000 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__THW_RS6000) || defined(_IBMR2) || \ + defined(_POWER) || defined(_ARCH_PWR) || \ + defined(_ARCH_PWR2) +# undef MSGPACK_ARCH_RS6000 +# define MSGPACK_ARCH_RS6000 MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_ARCH_RS6000 +# define MSGPACK_ARCH_RS6000_AVAILABLE +#endif + +#define MSGPACK_ARCH_RS6000_NAME "RS/6000" + +#define MSGPACK_ARCH_PWR MSGPACK_ARCH_RS6000 + +#if MSGPACK_ARCH_PWR +# define MSGPACK_ARCH_PWR_AVAILABLE +#endif + +#define MSGPACK_ARCH_PWR_NAME MSGPACK_ARCH_RS6000_NAME + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_RS6000,MSGPACK_ARCH_RS6000_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture/sparc.h b/msgpackc/2.1.5/include/msgpack/predef/architecture/sparc.h new file mode 100755 index 0000000000000000000000000000000000000000..4cb764e59db1e3ba6cee08e1cb36223c5bb7a769 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture/sparc.h @@ -0,0 +1,54 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_ARCHITECTURE_SPARC_H +#define MSGPACK_PREDEF_ARCHITECTURE_SPARC_H + +#include +#include + +/*` +[heading `MSGPACK_ARCH_SPARC`] + +[@http://en.wikipedia.org/wiki/SPARC SPARC] architecture. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__sparc__`] [__predef_detection__]] + [[`__sparc`] [__predef_detection__]] + + [[`__sparcv9`] [9.0.0]] + [[`__sparcv8`] [8.0.0]] + ] + */ + +#define MSGPACK_ARCH_SPARC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__sparc__) || defined(__sparc) +# undef MSGPACK_ARCH_SPARC +# if !defined(MSGPACK_ARCH_SPARC) && defined(__sparcv9) +# define MSGPACK_ARCH_SPARC MSGPACK_VERSION_NUMBER(9,0,0) +# endif +# if !defined(MSGPACK_ARCH_SPARC) && defined(__sparcv8) +# define MSGPACK_ARCH_SPARC MSGPACK_VERSION_NUMBER(8,0,0) +# endif +# if !defined(MSGPACK_ARCH_SPARC) +# define MSGPACK_ARCH_SPARC MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_ARCH_SPARC +# define MSGPACK_ARCH_SPARC_AVAILABLE +#endif + +#define MSGPACK_ARCH_SPARC_NAME "SPARC" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_SPARC,MSGPACK_ARCH_SPARC_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture/superh.h b/msgpackc/2.1.5/include/msgpack/predef/architecture/superh.h new file mode 100755 index 0000000000000000000000000000000000000000..8256d2b8b7253292bea930bbcf173541b59960bb --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture/superh.h @@ -0,0 +1,67 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_ARCHITECTURE_SUPERH_H +#define MSGPACK_PREDEF_ARCHITECTURE_SUPERH_H + +#include +#include + +/*` +[heading `MSGPACK_ARCH_SH`] + +[@http://en.wikipedia.org/wiki/SuperH SuperH] architecture: +If available versions \[1-5\] are specifically detected. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__sh__`] [__predef_detection__]] + + [[`__SH5__`] [5.0.0]] + [[`__SH4__`] [4.0.0]] + [[`__sh3__`] [3.0.0]] + [[`__SH3__`] [3.0.0]] + [[`__sh2__`] [2.0.0]] + [[`__sh1__`] [1.0.0]] + ] + */ + +#define MSGPACK_ARCH_SH MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__sh__) +# undef MSGPACK_ARCH_SH +# if !defined(MSGPACK_ARCH_SH) && (defined(__SH5__)) +# define MSGPACK_ARCH_SH MSGPACK_VERSION_NUMBER(5,0,0) +# endif +# if !defined(MSGPACK_ARCH_SH) && (defined(__SH4__)) +# define MSGPACK_ARCH_SH MSGPACK_VERSION_NUMBER(4,0,0) +# endif +# if !defined(MSGPACK_ARCH_SH) && (defined(__sh3__) || defined(__SH3__)) +# define MSGPACK_ARCH_SH MSGPACK_VERSION_NUMBER(3,0,0) +# endif +# if !defined(MSGPACK_ARCH_SH) && (defined(__sh2__)) +# define MSGPACK_ARCH_SH MSGPACK_VERSION_NUMBER(2,0,0) +# endif +# if !defined(MSGPACK_ARCH_SH) && (defined(__sh1__)) +# define MSGPACK_ARCH_SH MSGPACK_VERSION_NUMBER(1,0,0) +# endif +# if !defined(MSGPACK_ARCH_SH) +# define MSGPACK_ARCH_SH MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_ARCH_SH +# define MSGPACK_ARCH_SH_AVAILABLE +#endif + +#define MSGPACK_ARCH_SH_NAME "SuperH" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_SH,MSGPACK_ARCH_SH_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture/sys370.h b/msgpackc/2.1.5/include/msgpack/predef/architecture/sys370.h new file mode 100755 index 0000000000000000000000000000000000000000..a03b6911379c5b2387e826148e1e35ab66ebf78e --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture/sys370.h @@ -0,0 +1,43 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_ARCHITECTURE_SYS370_H +#define MSGPACK_PREDEF_ARCHITECTURE_SYS370_H + +#include +#include + +/*` +[heading `MSGPACK_ARCH_SYS370`] + +[@http://en.wikipedia.org/wiki/System/370 System/370] architecture. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__370__`] [__predef_detection__]] + [[`__THW_370__`] [__predef_detection__]] + ] + */ + +#define MSGPACK_ARCH_SYS370 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__370__) || defined(__THW_370__) +# undef MSGPACK_ARCH_SYS370 +# define MSGPACK_ARCH_SYS370 MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_ARCH_SYS370 +# define MSGPACK_ARCH_SYS370_AVAILABLE +#endif + +#define MSGPACK_ARCH_SYS370_NAME "System/370" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_SYS370,MSGPACK_ARCH_SYS370_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture/sys390.h b/msgpackc/2.1.5/include/msgpack/predef/architecture/sys390.h new file mode 100755 index 0000000000000000000000000000000000000000..20fbb1d3493e65c71d61ff5208faf1ffd1a60da0 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture/sys390.h @@ -0,0 +1,43 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_ARCHITECTURE_SYS390_H +#define MSGPACK_PREDEF_ARCHITECTURE_SYS390_H + +#include +#include + +/*` +[heading `MSGPACK_ARCH_SYS390`] + +[@http://en.wikipedia.org/wiki/System/390 System/390] architecture. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__s390__`] [__predef_detection__]] + [[`__s390x__`] [__predef_detection__]] + ] + */ + +#define MSGPACK_ARCH_SYS390 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__s390__) || defined(__s390x__) +# undef MSGPACK_ARCH_SYS390 +# define MSGPACK_ARCH_SYS390 MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_ARCH_SYS390 +# define MSGPACK_ARCH_SYS390_AVAILABLE +#endif + +#define MSGPACK_ARCH_SYS390_NAME "System/390" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_SYS390,MSGPACK_ARCH_SYS390_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture/x86.h b/msgpackc/2.1.5/include/msgpack/predef/architecture/x86.h new file mode 100755 index 0000000000000000000000000000000000000000..02353b15d8450176d31e2b6ef79f92b479527765 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture/x86.h @@ -0,0 +1,38 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#include +#include + +#ifndef MSGPACK_PREDEF_ARCHITECTURE_X86_H +#define MSGPACK_PREDEF_ARCHITECTURE_X86_H + +/*` +[heading `MSGPACK_ARCH_X86`] + +[@http://en.wikipedia.org/wiki/X86 Intel x86] architecture. This is +a category to indicate that either `MSGPACK_ARCH_X86_32` or +`MSGPACK_ARCH_X86_64` is detected. + */ + +#define MSGPACK_ARCH_X86 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if MSGPACK_ARCH_X86_32 || MSGPACK_ARCH_X86_64 +# undef MSGPACK_ARCH_X86 +# define MSGPACK_ARCH_X86 MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_ARCH_X86 +# define MSGPACK_ARCH_X86_AVAILABLE +#endif + +#define MSGPACK_ARCH_X86_NAME "Intel x86" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_X86,MSGPACK_ARCH_X86_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture/x86/32.h b/msgpackc/2.1.5/include/msgpack/predef/architecture/x86/32.h new file mode 100755 index 0000000000000000000000000000000000000000..82cff0195e8eb39f7b21c68ed794e2b0d99909e4 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture/x86/32.h @@ -0,0 +1,87 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_ARCHITECTURE_X86_32_H +#define MSGPACK_PREDEF_ARCHITECTURE_X86_32_H + +#include +#include + +/*` +[heading `MSGPACK_ARCH_X86_32`] + +[@http://en.wikipedia.org/wiki/X86 Intel x86] architecture: +If available versions \[3-6\] are specifically detected. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`i386`] [__predef_detection__]] + [[`__i386__`] [__predef_detection__]] + [[`__i486__`] [__predef_detection__]] + [[`__i586__`] [__predef_detection__]] + [[`__i686__`] [__predef_detection__]] + [[`__i386`] [__predef_detection__]] + [[`_M_IX86`] [__predef_detection__]] + [[`_X86_`] [__predef_detection__]] + [[`__THW_INTEL__`] [__predef_detection__]] + [[`__I86__`] [__predef_detection__]] + [[`__INTEL__`] [__predef_detection__]] + + [[`__I86__`] [V.0.0]] + [[`_M_IX86`] [V.0.0]] + [[`__i686__`] [6.0.0]] + [[`__i586__`] [5.0.0]] + [[`__i486__`] [4.0.0]] + [[`__i386__`] [3.0.0]] + ] + */ + +#define MSGPACK_ARCH_X86_32 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(i386) || defined(__i386__) || \ + defined(__i486__) || defined(__i586__) || \ + defined(__i686__) || defined(__i386) || \ + defined(_M_IX86) || defined(_X86_) || \ + defined(__THW_INTEL__) || defined(__I86__) || \ + defined(__INTEL__) +# undef MSGPACK_ARCH_X86_32 +# if !defined(MSGPACK_ARCH_X86_32) && defined(__I86__) +# define MSGPACK_ARCH_X86_32 MSGPACK_VERSION_NUMBER(__I86__,0,0) +# endif +# if !defined(MSGPACK_ARCH_X86_32) && defined(_M_IX86) +# define MSGPACK_ARCH_X86_32 MSGPACK_PREDEF_MAKE_10_VV00(_M_IX86) +# endif +# if !defined(MSGPACK_ARCH_X86_32) && defined(__i686__) +# define MSGPACK_ARCH_X86_32 MSGPACK_VERSION_NUMBER(6,0,0) +# endif +# if !defined(MSGPACK_ARCH_X86_32) && defined(__i586__) +# define MSGPACK_ARCH_X86_32 MSGPACK_VERSION_NUMBER(5,0,0) +# endif +# if !defined(MSGPACK_ARCH_X86_32) && defined(__i486__) +# define MSGPACK_ARCH_X86_32 MSGPACK_VERSION_NUMBER(4,0,0) +# endif +# if !defined(MSGPACK_ARCH_X86_32) && defined(__i386__) +# define MSGPACK_ARCH_X86_32 MSGPACK_VERSION_NUMBER(3,0,0) +# endif +# if !defined(MSGPACK_ARCH_X86_32) +# define MSGPACK_ARCH_X86_32 MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_ARCH_X86_32 +# define MSGPACK_ARCH_X86_32_AVAILABLE +#endif + +#define MSGPACK_ARCH_X86_32_NAME "Intel x86-32" + +#include + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_X86_32,MSGPACK_ARCH_X86_32_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture/x86/64.h b/msgpackc/2.1.5/include/msgpack/predef/architecture/x86/64.h new file mode 100755 index 0000000000000000000000000000000000000000..72a05c26b2fc15befffb65dbaed9be570de39bc9 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture/x86/64.h @@ -0,0 +1,50 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_ARCHITECTURE_X86_64_H +#define MSGPACK_PREDEF_ARCHITECTURE_X86_64_H + +#include +#include + +/*` +[heading `MSGPACK_ARCH_X86_64`] + +[@http://en.wikipedia.org/wiki/Ia64 Intel IA-64] architecture. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__x86_64`] [__predef_detection__]] + [[`__x86_64__`] [__predef_detection__]] + [[`__amd64__`] [__predef_detection__]] + [[`__amd64`] [__predef_detection__]] + [[`_M_X64`] [__predef_detection__]] + ] + */ + +#define MSGPACK_ARCH_X86_64 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__x86_64) || defined(__x86_64__) || \ + defined(__amd64__) || defined(__amd64) || \ + defined(_M_X64) +# undef MSGPACK_ARCH_X86_64 +# define MSGPACK_ARCH_X86_64 MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_ARCH_X86_64 +# define MSGPACK_ARCH_X86_64_AVAILABLE +#endif + +#define MSGPACK_ARCH_X86_64_NAME "Intel x86-64" + +#include + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_X86_64,MSGPACK_ARCH_X86_64_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/architecture/z.h b/msgpackc/2.1.5/include/msgpack/predef/architecture/z.h new file mode 100755 index 0000000000000000000000000000000000000000..f5e9f859ca0c8e9f9efeea118586ab71bf764c0e --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/architecture/z.h @@ -0,0 +1,42 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_ARCHITECTURE_Z_H +#define MSGPACK_PREDEF_ARCHITECTURE_Z_H + +#include +#include + +/*` +[heading `MSGPACK_ARCH_Z`] + +[@http://en.wikipedia.org/wiki/Z/Architecture z/Architecture] architecture. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__SYSC_ZARCH__`] [__predef_detection__]] + ] + */ + +#define MSGPACK_ARCH_Z MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__SYSC_ZARCH__) +# undef MSGPACK_ARCH_Z +# define MSGPACK_ARCH_Z MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_ARCH_Z +# define MSGPACK_ARCH_Z_AVAILABLE +#endif + +#define MSGPACK_ARCH_Z_NAME "z/Architecture" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ARCH_Z,MSGPACK_ARCH_Z_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler.h b/msgpackc/2.1.5/include/msgpack/predef/compiler.h new file mode 100755 index 0000000000000000000000000000000000000000..56058166744f6c5786bb9017366004117382202f --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler.h @@ -0,0 +1,43 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#if !defined(MSGPACK_PREDEF_COMPILER_H) || defined(MSGPACK_PREDEF_INTERNAL_GENERATE_TESTS) +#ifndef MSGPACK_PREDEF_COMPILER_H +#define MSGPACK_PREDEF_COMPILER_H +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/borland.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/borland.h new file mode 100755 index 0000000000000000000000000000000000000000..89e0d9f2ceb484f1b2d3242aaf6aa77b8236bb37 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/borland.h @@ -0,0 +1,63 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_BORLAND_H +#define MSGPACK_PREDEF_COMPILER_BORLAND_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_BORLAND`] + +[@http://en.wikipedia.org/wiki/C_plus_plus_builder Borland C++] compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__BORLANDC__`] [__predef_detection__]] + [[`__CODEGEARC__`] [__predef_detection__]] + + [[`__BORLANDC__`] [V.R.P]] + [[`__CODEGEARC__`] [V.R.P]] + ] + */ + +#define MSGPACK_COMP_BORLAND MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__BORLANDC__) || defined(__CODEGEARC__) +# if !defined(MSGPACK_COMP_BORLAND_DETECTION) && (defined(__CODEGEARC__)) +# define MSGPACK_COMP_BORLAND_DETECTION MSGPACK_PREDEF_MAKE_0X_VVRP(__CODEGEARC__) +# endif +# if !defined(MSGPACK_COMP_BORLAND_DETECTION) +# define MSGPACK_COMP_BORLAND_DETECTION MSGPACK_PREDEF_MAKE_0X_VVRP(__BORLANDC__) +# endif +#endif + +#ifdef MSGPACK_COMP_BORLAND_DETECTION +# define MSGPACK_COMP_BORLAND_AVAILABLE +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_BORLAND_EMULATED MSGPACK_COMP_BORLAND_DETECTION +# else +# undef MSGPACK_COMP_BORLAND +# define MSGPACK_COMP_BORLAND MSGPACK_COMP_BORLAND_DETECTION +# endif +# include +#endif + +#define MSGPACK_COMP_BORLAND_NAME "Borland C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_BORLAND,MSGPACK_COMP_BORLAND_NAME) + +#ifdef MSGPACK_COMP_BORLAND_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_BORLAND_EMULATED,MSGPACK_COMP_BORLAND_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/clang.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/clang.h new file mode 100755 index 0000000000000000000000000000000000000000..93616cf53fe47bf11ccde04ef885f0f09136b936 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/clang.h @@ -0,0 +1,56 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_CLANG_H +#define MSGPACK_PREDEF_COMPILER_CLANG_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_CLANG`] + +[@http://en.wikipedia.org/wiki/Clang Clang] compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__clang__`] [__predef_detection__]] + + [[`__clang_major__`, `__clang_minor__`, `__clang_patchlevel__`] [V.R.P]] + ] + */ + +#define MSGPACK_COMP_CLANG MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__clang__) +# define MSGPACK_COMP_CLANG_DETECTION MSGPACK_VERSION_NUMBER(__clang_major__,__clang_minor__,__clang_patchlevel__) +#endif + +#ifdef MSGPACK_COMP_CLANG_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_CLANG_EMULATED MSGPACK_COMP_CLANG_DETECTION +# else +# undef MSGPACK_COMP_CLANG +# define MSGPACK_COMP_CLANG MSGPACK_COMP_CLANG_DETECTION +# endif +# define MSGPACK_COMP_CLANG_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_CLANG_NAME "Clang" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_CLANG,MSGPACK_COMP_CLANG_NAME) + +#ifdef MSGPACK_COMP_CLANG_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_CLANG_EMULATED,MSGPACK_COMP_CLANG_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/comeau.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/comeau.h new file mode 100755 index 0000000000000000000000000000000000000000..f944bca863d5a3d647a5a4a85e19020b5811059a --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/comeau.h @@ -0,0 +1,61 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_COMEAU_H +#define MSGPACK_PREDEF_COMPILER_COMEAU_H + +#include +#include + +#define MSGPACK_COMP_COMO MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +/*` +[heading `MSGPACK_COMP_COMO`] + +[@http://en.wikipedia.org/wiki/Comeau_C/C%2B%2B Comeau C++] compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__COMO__`] [__predef_detection__]] + + [[`__COMO_VERSION__`] [V.R.P]] + ] + */ + +#if defined(__COMO__) +# if !defined(MSGPACK_COMP_COMO_DETECTION) && defined(__COMO_VERSION__) +# define MSGPACK_COMP_COMO_DETECTION MSGPACK_PREDEF_MAKE_0X_VRP(__COMO_VERSION__) +# endif +# if !defined(MSGPACK_COMP_COMO_DETECTION) +# define MSGPACK_COMP_COMO_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#ifdef MSGPACK_COMP_COMO_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_COMO_EMULATED MSGPACK_COMP_COMO_DETECTION +# else +# undef MSGPACK_COMP_COMO +# define MSGPACK_COMP_COMO MSGPACK_COMP_COMO_DETECTION +# endif +# define MSGPACK_COMP_COMO_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_COMO_NAME "Comeau C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_COMO,MSGPACK_COMP_COMO_NAME) + +#ifdef MSGPACK_COMP_COMO_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_COMO_EMULATED,MSGPACK_COMP_COMO_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/compaq.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/compaq.h new file mode 100755 index 0000000000000000000000000000000000000000..b2771a73c8ea502f8d5542d763c71588b3cfe03b --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/compaq.h @@ -0,0 +1,66 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_COMPAQ_H +#define MSGPACK_PREDEF_COMPILER_COMPAQ_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_DEC`] + +[@http://www.openvms.compaq.com/openvms/brochures/deccplus/ Compaq C/C++] compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__DECCXX`] [__predef_detection__]] + [[`__DECC`] [__predef_detection__]] + + [[`__DECCXX_VER`] [V.R.P]] + [[`__DECC_VER`] [V.R.P]] + ] + */ + +#define MSGPACK_COMP_DEC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__DECC) || defined(__DECCXX) +# if !defined(MSGPACK_COMP_DEC_DETECTION) && defined(__DECCXX_VER) +# define MSGPACK_COMP_DEC_DETECTION MSGPACK_PREDEF_MAKE_10_VVRR0PP00(__DECCXX_VER) +# endif +# if !defined(MSGPACK_COMP_DEC_DETECTION) && defined(__DECC_VER) +# define MSGPACK_COMP_DEC_DETECTION MSGPACK_PREDEF_MAKE_10_VVRR0PP00(__DECC_VER) +# endif +# if !defined(MSGPACK_COMP_DEC_DETECTION) +# define MSGPACK_COM_DEC_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#ifdef MSGPACK_COMP_DEC_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_DEC_EMULATED MSGPACK_COMP_DEC_DETECTION +# else +# undef MSGPACK_COMP_DEC +# define MSGPACK_COMP_DEC MSGPACK_COMP_DEC_DETECTION +# endif +# define MSGPACK_COMP_DEC_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_DEC_NAME "Compaq C/C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_DEC,MSGPACK_COMP_DEC_NAME) + +#ifdef MSGPACK_COMP_DEC_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_DEC_EMULATED,MSGPACK_COMP_DEC_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/diab.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/diab.h new file mode 100755 index 0000000000000000000000000000000000000000..a365a35c52b72ff94d1d6a0d4552874c4752a465 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/diab.h @@ -0,0 +1,56 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_DIAB_H +#define MSGPACK_PREDEF_COMPILER_DIAB_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_DIAB`] + +[@http://www.windriver.com/products/development_suite/wind_river_compiler/ Diab C/C++] compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__DCC__`] [__predef_detection__]] + + [[`__VERSION_NUMBER__`] [V.R.P]] + ] + */ + +#define MSGPACK_COMP_DIAB MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__DCC__) +# define MSGPACK_COMP_DIAB_DETECTION MSGPACK_PREDEF_MAKE_10_VRPP(__VERSION_NUMBER__) +#endif + +#ifdef MSGPACK_COMP_DIAB_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_DIAB_EMULATED MSGPACK_COMP_DIAB_DETECTION +# else +# undef MSGPACK_COMP_DIAB +# define MSGPACK_COMP_DIAB MSGPACK_COMP_DIAB_DETECTION +# endif +# define MSGPACK_COMP_DIAB_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_DIAB_NAME "Diab C/C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_DIAB,MSGPACK_COMP_DIAB_NAME) + +#ifdef MSGPACK_COMP_DIAB_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_DIAB_EMULATED,MSGPACK_COMP_DIAB_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/digitalmars.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/digitalmars.h new file mode 100755 index 0000000000000000000000000000000000000000..eca2a3123ecd6824b577c250e7f1c64723a68226 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/digitalmars.h @@ -0,0 +1,56 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_DIGITALMARS_H +#define MSGPACK_PREDEF_COMPILER_DIGITALMARS_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_DMC`] + +[@http://en.wikipedia.org/wiki/Digital_Mars Digital Mars] compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__DMC__`] [__predef_detection__]] + + [[`__DMC__`] [V.R.P]] + ] + */ + +#define MSGPACK_COMP_DMC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__DMC__) +# define MSGPACK_COMP_DMC_DETECTION MSGPACK_PREDEF_MAKE_0X_VRP(__DMC__) +#endif + +#ifdef MSGPACK_COMP_DMC_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_DMC_EMULATED MSGPACK_COMP_DMC_DETECTION +# else +# undef MSGPACK_COMP_DMC +# define MSGPACK_COMP_DMC MSGPACK_COMP_DMC_DETECTION +# endif +# define MSGPACK_COMP_DMC_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_DMC_NAME "Digital Mars" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_DMC,MSGPACK_COMP_DMC_NAME) + +#ifdef MSGPACK_COMP_DMC_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_DMC_EMULATED,MSGPACK_COMP_DMC_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/dignus.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/dignus.h new file mode 100755 index 0000000000000000000000000000000000000000..8040baa9b444977cefc8c39f04b44fb68687ba6c --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/dignus.h @@ -0,0 +1,56 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_DIGNUS_H +#define MSGPACK_PREDEF_COMPILER_DIGNUS_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_SYSC`] + +[@http://www.dignus.com/dcxx/ Dignus Systems/C++] compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__SYSC__`] [__predef_detection__]] + + [[`__SYSC_VER__`] [V.R.P]] + ] + */ + +#define MSGPACK_COMP_SYSC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__SYSC__) +# define MSGPACK_COMP_SYSC_DETECTION MSGPACK_PREDEF_MAKE_10_VRRPP(__SYSC_VER__) +#endif + +#ifdef MSGPACK_COMP_SYSC_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_SYSC_EMULATED MSGPACK_COMP_SYSC_DETECTION +# else +# undef MSGPACK_COMP_SYSC +# define MSGPACK_COMP_SYSC MSGPACK_COMP_SYSC_DETECTION +# endif +# define MSGPACK_COMP_SYSC_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_SYSC_NAME "Dignus Systems/C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_SYSC,MSGPACK_COMP_SYSC_NAME) + +#ifdef MSGPACK_COMP_SYSC_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_SYSC_EMULATED,MSGPACK_COMP_SYSC_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/edg.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/edg.h new file mode 100755 index 0000000000000000000000000000000000000000..700f8bdc4dc6e945ec1b90873786804231983d87 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/edg.h @@ -0,0 +1,56 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_EDG_H +#define MSGPACK_PREDEF_COMPILER_EDG_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_EDG`] + +[@http://en.wikipedia.org/wiki/Edison_Design_Group EDG C++ Frontend] compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__EDG__`] [__predef_detection__]] + + [[`__EDG_VERSION__`] [V.R.0]] + ] + */ + +#define MSGPACK_COMP_EDG MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__EDG__) +# define MSGPACK_COMP_EDG_DETECTION MSGPACK_PREDEF_MAKE_10_VRR(__EDG_VERSION__) +#endif + +#ifdef MSGPACK_COMP_EDG_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_EDG_EMULATED MSGPACK_COMP_EDG_DETECTION +# else +# undef MSGPACK_COMP_EDG +# define MSGPACK_COMP_EDG MSGPACK_COMP_EDG_DETECTION +# endif +# define MSGPACK_COMP_EDG_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_EDG_NAME "EDG C++ Frontend" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_EDG,MSGPACK_COMP_EDG_NAME) + +#ifdef MSGPACK_COMP_EDG_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_EDG_EMULATED,MSGPACK_COMP_EDG_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/ekopath.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/ekopath.h new file mode 100755 index 0000000000000000000000000000000000000000..72fda2723b77739266b0fcb5afc8deca93a02e0b --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/ekopath.h @@ -0,0 +1,57 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_EKOPATH_H +#define MSGPACK_PREDEF_COMPILER_EKOPATH_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_PATH`] + +[@http://en.wikipedia.org/wiki/PathScale EKOpath] compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__PATHCC__`] [__predef_detection__]] + + [[`__PATHCC__`, `__PATHCC_MINOR__`, `__PATHCC_PATCHLEVEL__`] [V.R.P]] + ] + */ + +#define MSGPACK_COMP_PATH MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__PATHCC__) +# define MSGPACK_COMP_PATH_DETECTION \ + MSGPACK_VERSION_NUMBER(__PATHCC__,__PATHCC_MINOR__,__PATHCC_PATCHLEVEL__) +#endif + +#ifdef MSGPACK_COMP_PATH_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_PATH_EMULATED MSGPACK_COMP_PATH_DETECTION +# else +# undef MSGPACK_COMP_PATH +# define MSGPACK_COMP_PATH MSGPACK_COMP_PATH_DETECTION +# endif +# define MSGPACK_COMP_PATH_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_PATH_NAME "EKOpath" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_PATH,MSGPACK_COMP_PATH_NAME) + +#ifdef MSGPACK_COMP_PATH_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_PATH_EMULATED,MSGPACK_COMP_PATH_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/gcc.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/gcc.h new file mode 100755 index 0000000000000000000000000000000000000000..03fcd2a7848b194d01d8af6d1c876ab05447ae7c --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/gcc.h @@ -0,0 +1,68 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_GCC_H +#define MSGPACK_PREDEF_COMPILER_GCC_H + +/* Other compilers that emulate this one need to be detected first. */ + +#include + +#include +#include + +/*` +[heading `MSGPACK_COMP_GNUC`] + +[@http://en.wikipedia.org/wiki/GNU_Compiler_Collection Gnu GCC C/C++] compiler. +Version number available as major, minor, and patch (if available). + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__GNUC__`] [__predef_detection__]] + + [[`__GNUC__`, `__GNUC_MINOR__`, `__GNUC_PATCHLEVEL__`] [V.R.P]] + [[`__GNUC__`, `__GNUC_MINOR__`] [V.R.0]] + ] + */ + +#define MSGPACK_COMP_GNUC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__GNUC__) +# if !defined(MSGPACK_COMP_GNUC_DETECTION) && defined(__GNUC_PATCHLEVEL__) +# define MSGPACK_COMP_GNUC_DETECTION \ + MSGPACK_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__) +# endif +# if !defined(MSGPACK_COMP_GNUC_DETECTION) +# define MSGPACK_COMP_GNUC_DETECTION \ + MSGPACK_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,0) +# endif +#endif + +#ifdef MSGPACK_COMP_GNUC_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_GNUC_EMULATED MSGPACK_COMP_GNUC_DETECTION +# else +# undef MSGPACK_COMP_GNUC +# define MSGPACK_COMP_GNUC MSGPACK_COMP_GNUC_DETECTION +# endif +# define MSGPACK_COMP_GNUC_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_GNUC_NAME "Gnu GCC C/C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_GNUC,MSGPACK_COMP_GNUC_NAME) + +#ifdef MSGPACK_COMP_GNUC_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_GNUC_EMULATED,MSGPACK_COMP_GNUC_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/gcc_xml.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/gcc_xml.h new file mode 100755 index 0000000000000000000000000000000000000000..678cf71c7651f131bf2d2290489102dfb1e4091b --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/gcc_xml.h @@ -0,0 +1,53 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_GCC_XML_H +#define MSGPACK_PREDEF_COMPILER_GCC_XML_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_GCCXML`] + +[@http://www.gccxml.org/ GCC XML] compiler. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__GCCXML__`] [__predef_detection__]] + ] + */ + +#define MSGPACK_COMP_GCCXML MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__GCCXML__) +# define MSGPACK_COMP_GCCXML_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#ifdef MSGPACK_COMP_GCCXML_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_GCCXML_EMULATED MSGPACK_COMP_GCCXML_DETECTION +# else +# undef MSGPACK_COMP_GCCXML +# define MSGPACK_COMP_GCCXML MSGPACK_COMP_GCCXML_DETECTION +# endif +# define MSGPACK_COMP_GCCXML_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_GCCXML_NAME "GCC XML" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_GCCXML,MSGPACK_COMP_GCCXML_NAME) + +#ifdef MSGPACK_COMP_GCCXML_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_GCCXML_EMULATED,MSGPACK_COMP_GCCXML_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/greenhills.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/greenhills.h new file mode 100755 index 0000000000000000000000000000000000000000..f99784367339fb69397a2b9dbf2153e8159fbb13 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/greenhills.h @@ -0,0 +1,66 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_GREENHILLS_H +#define MSGPACK_PREDEF_COMPILER_GREENHILLS_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_GHS`] + +[@http://en.wikipedia.org/wiki/Green_Hills_Software Green Hills C/C++] compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__ghs`] [__predef_detection__]] + [[`__ghs__`] [__predef_detection__]] + + [[`__GHS_VERSION_NUMBER__`] [V.R.P]] + [[`__ghs`] [V.R.P]] + ] + */ + +#define MSGPACK_COMP_GHS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__ghs) || defined(__ghs__) +# if !defined(MSGPACK_COMP_GHS_DETECTION) && defined(__GHS_VERSION_NUMBER__) +# define MSGPACK_COMP_GHS_DETECTION MSGPACK_PREDEF_MAKE_10_VRP(__GHS_VERSION_NUMBER__) +# endif +# if !defined(MSGPACK_COMP_GHS_DETECTION) && defined(__ghs) +# define MSGPACK_COMP_GHS_DETECTION MSGPACK_PREDEF_MAKE_10_VRP(__ghs) +# endif +# if !defined(MSGPACK_COMP_GHS_DETECTION) +# define MSGPACK_COMP_GHS_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#ifdef MSGPACK_COMP_GHS_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_GHS_EMULATED MSGPACK_COMP_GHS_DETECTION +# else +# undef MSGPACK_COMP_GHS +# define MSGPACK_COMP_GHS MSGPACK_COMP_GHS_DETECTION +# endif +# define MSGPACK_COMP_GHS_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_GHS_NAME "Green Hills C/C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_GHS,MSGPACK_COMP_GHS_NAME) + +#ifdef MSGPACK_COMP_GHS_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_GHS_EMULATED,MSGPACK_COMP_GHS_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/hp_acc.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/hp_acc.h new file mode 100755 index 0000000000000000000000000000000000000000..5a47ae4df9601c90a83e56ccd9c7838324c699b6 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/hp_acc.h @@ -0,0 +1,61 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_HP_ACC_H +#define MSGPACK_PREDEF_COMPILER_HP_ACC_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_HPACC`] + +HP aC++ compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__HP_aCC`] [__predef_detection__]] + + [[`__HP_aCC`] [V.R.P]] + ] + */ + +#define MSGPACK_COMP_HPACC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__HP_aCC) +# if !defined(MSGPACK_COMP_HPACC_DETECTION) && (__HP_aCC > 1) +# define MSGPACK_COMP_HPACC_DETECTION MSGPACK_PREDEF_MAKE_10_VVRRPP(__HP_aCC) +# endif +# if !defined(MSGPACK_COMP_HPACC_DETECTION) +# define MSGPACK_COMP_HPACC_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#ifdef MSGPACK_COMP_HPACC_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_HPACC_EMULATED MSGPACK_COMP_HPACC_DETECTION +# else +# undef MSGPACK_COMP_HPACC +# define MSGPACK_COMP_HPACC MSGPACK_COMP_HPACC_DETECTION +# endif +# define MSGPACK_COMP_HPACC_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_HPACC_NAME "HP aC++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_HPACC,MSGPACK_COMP_HPACC_NAME) + +#ifdef MSGPACK_COMP_HPACC_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_HPACC_EMULATED,MSGPACK_COMP_HPACC_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/iar.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/iar.h new file mode 100755 index 0000000000000000000000000000000000000000..2cce96003cc7a1be3c4bf8740e020851e7f2970e --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/iar.h @@ -0,0 +1,56 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_IAR_H +#define MSGPACK_PREDEF_COMPILER_IAR_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_IAR`] + +IAR C/C++ compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__IAR_SYSTEMS_ICC__`] [__predef_detection__]] + + [[`__VER__`] [V.R.P]] + ] + */ + +#define MSGPACK_COMP_IAR MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__IAR_SYSTEMS_ICC__) +# define MSGPACK_COMP_IAR_DETECTION MSGPACK_PREDEF_MAKE_10_VVRR(__VER__) +#endif + +#ifdef MSGPACK_COMP_IAR_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_IAR_EMULATED MSGPACK_COMP_IAR_DETECTION +# else +# undef MSGPACK_COMP_IAR +# define MSGPACK_COMP_IAR MSGPACK_COMP_IAR_DETECTION +# endif +# define MSGPACK_COMP_IAR_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_IAR_NAME "IAR C/C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_IAR,MSGPACK_COMP_IAR_NAME) + +#ifdef MSGPACK_COMP_IAR_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_IAR_EMULATED,MSGPACK_COMP_IAR_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/ibm.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/ibm.h new file mode 100755 index 0000000000000000000000000000000000000000..fc4ecfae03a37d9aef9cb25f77cb5924bf669cba --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/ibm.h @@ -0,0 +1,72 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_IBM_H +#define MSGPACK_PREDEF_COMPILER_IBM_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_IBM`] + +[@http://en.wikipedia.org/wiki/VisualAge IBM XL C/C++] compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__IBMCPP__`] [__predef_detection__]] + [[`__xlC__`] [__predef_detection__]] + [[`__xlc__`] [__predef_detection__]] + + [[`__COMPILER_VER__`] [V.R.P]] + [[`__xlC__`] [V.R.P]] + [[`__xlc__`] [V.R.P]] + [[`__IBMCPP__`] [V.R.P]] + ] + */ + +#define MSGPACK_COMP_IBM MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__IBMCPP__) || defined(__xlC__) || defined(__xlc__) +# if !defined(MSGPACK_COMP_IBM_DETECTION) && defined(__COMPILER_VER__) +# define MSGPACK_COMP_IBM_DETECTION MSGPACK_PREDEF_MAKE_0X_VRRPPPP(__COMPILER_VER__) +# endif +# if !defined(MSGPACK_COMP_IBM_DETECTION) && defined(__xlC__) +# define MSGPACK_COMP_IBM_DETECTION MSGPACK_PREDEF_MAKE_0X_VVRR(__xlC__) +# endif +# if !defined(MSGPACK_COMP_IBM_DETECTION) && defined(__xlc__) +# define MSGPACK_COMP_IBM_DETECTION MSGPACK_PREDEF_MAKE_0X_VVRR(__xlc__) +# endif +# if !defined(MSGPACK_COMP_IBM_DETECTION) +# define MSGPACK_COMP_IBM_DETECTION MSGPACK_PREDEF_MAKE_10_VRP(__IBMCPP__) +# endif +#endif + +#ifdef MSGPACK_COMP_IBM_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_IBM_EMULATED MSGPACK_COMP_IBM_DETECTION +# else +# undef MSGPACK_COMP_IBM +# define MSGPACK_COMP_IBM MSGPACK_COMP_IBM_DETECTION +# endif +# define MSGPACK_COMP_IBM_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_IBM_NAME "IBM XL C/C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_IBM,MSGPACK_COMP_IBM_NAME) + +#ifdef MSGPACK_COMP_IBM_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_IBM_EMULATED,MSGPACK_COMP_IBM_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/intel.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/intel.h new file mode 100755 index 0000000000000000000000000000000000000000..7a1d76efeeb4ecc72ec00443864eaa42ffcb0a46 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/intel.h @@ -0,0 +1,65 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_INTEL_H +#define MSGPACK_PREDEF_COMPILER_INTEL_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_INTEL`] + +[@http://en.wikipedia.org/wiki/Intel_C%2B%2B Intel C/C++] compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__INTEL_COMPILER`] [__predef_detection__]] + [[`__ICL`] [__predef_detection__]] + [[`__ICC`] [__predef_detection__]] + [[`__ECC`] [__predef_detection__]] + + [[`__INTEL_COMPILER`] [V.R.P]] + ] + */ + +#define MSGPACK_COMP_INTEL MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || \ + defined(__ECC) +# if !defined(MSGPACK_COMP_INTEL_DETECTION) && defined(__INTEL_COMPILER) +# define MSGPACK_COMP_INTEL_DETECTION MSGPACK_PREDEF_MAKE_10_VRP(__INTEL_COMPILER) +# endif +# if !defined(MSGPACK_COMP_INTEL_DETECTION) +# define MSGPACK_COMP_INTEL_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#ifdef MSGPACK_COMP_INTEL_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_INTEL_EMULATED MSGPACK_COMP_INTEL_DETECTION +# else +# undef MSGPACK_COMP_INTEL +# define MSGPACK_COMP_INTEL MSGPACK_COMP_INTEL_DETECTION +# endif +# define MSGPACK_COMP_INTEL_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_INTEL_NAME "Intel C/C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_INTEL,MSGPACK_COMP_INTEL_NAME) + +#ifdef MSGPACK_COMP_INTEL_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_INTEL_EMULATED,MSGPACK_COMP_INTEL_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/kai.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/kai.h new file mode 100755 index 0000000000000000000000000000000000000000..232d54d5f0b3d4e0598dee0d818e956c6efcb59e --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/kai.h @@ -0,0 +1,56 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_KAI_H +#define MSGPACK_PREDEF_COMPILER_KAI_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_KCC`] + +Kai C++ compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__KCC`] [__predef_detection__]] + + [[`__KCC_VERSION`] [V.R.P]] + ] + */ + +#define MSGPACK_COMP_KCC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__KCC) +# define MSGPACK_COMP_KCC_DETECTION MSGPACK_PREDEF_MAKE_0X_VRPP(__KCC_VERSION) +#endif + +#ifdef MSGPACK_COMP_KCC_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_KCC_EMULATED MSGPACK_COMP_KCC_DETECTION +# else +# undef MSGPACK_COMP_KCC +# define MSGPACK_COMP_KCC MSGPACK_COMP_KCC_DETECTION +# endif +# define MSGPACK_COMP_KCC_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_KCC_NAME "Kai C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_KCC,MSGPACK_COMP_KCC_NAME) + +#ifdef MSGPACK_COMP_KCC_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_KCC_EMULATED,MSGPACK_COMP_KCC_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/llvm.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/llvm.h new file mode 100755 index 0000000000000000000000000000000000000000..873d3087316b7bc8cd427f97f4f5ecf51f2e6ffe --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/llvm.h @@ -0,0 +1,57 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_LLVM_H +#define MSGPACK_PREDEF_COMPILER_LLVM_H + +/* Other compilers that emulate this one need to be detected first. */ + +#include + +#include +#include + +/*` +[heading `MSGPACK_COMP_LLVM`] + +[@http://en.wikipedia.org/wiki/LLVM LLVM] compiler. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__llvm__`] [__predef_detection__]] + ] + */ + +#define MSGPACK_COMP_LLVM MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__llvm__) +# define MSGPACK_COMP_LLVM_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#ifdef MSGPACK_COMP_LLVM_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_LLVM_EMULATED MSGPACK_COMP_LLVM_DETECTION +# else +# undef MSGPACK_COMP_LLVM +# define MSGPACK_COMP_LLVM MSGPACK_COMP_LLVM_DETECTION +# endif +# define MSGPACK_COMP_LLVM_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_LLVM_NAME "LLVM" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_LLVM,MSGPACK_COMP_LLVM_NAME) + +#ifdef MSGPACK_COMP_LLVM_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_LLVM_EMULATED,MSGPACK_COMP_LLVM_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/metaware.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/metaware.h new file mode 100755 index 0000000000000000000000000000000000000000..a3c66adcd3c749c843bc5a0f5ca53928e645f8a5 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/metaware.h @@ -0,0 +1,53 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_METAWARE_H +#define MSGPACK_PREDEF_COMPILER_METAWARE_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_HIGHC`] + +MetaWare High C/C++ compiler. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__HIGHC__`] [__predef_detection__]] + ] + */ + +#define MSGPACK_COMP_HIGHC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__HIGHC__) +# define MSGPACK_COMP_HIGHC_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#ifdef MSGPACK_COMP_HIGHC_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_HIGHC_EMULATED MSGPACK_COMP_HIGHC_DETECTION +# else +# undef MSGPACK_COMP_HIGHC +# define MSGPACK_COMP_HIGHC MSGPACK_COMP_HIGHC_DETECTION +# endif +# define MSGPACK_COMP_HIGHC_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_HIGHC_NAME "MetaWare High C/C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_HIGHC,MSGPACK_COMP_HIGHC_NAME) + +#ifdef MSGPACK_COMP_HIGHC_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_HIGHC_EMULATED,MSGPACK_COMP_HIGHC_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/metrowerks.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/metrowerks.h new file mode 100755 index 0000000000000000000000000000000000000000..2b902b371c81f8474f1f33d0cd874ae6aeb2f3a5 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/metrowerks.h @@ -0,0 +1,77 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_METROWERKS_H +#define MSGPACK_PREDEF_COMPILER_METROWERKS_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_MWERKS`] + +[@http://en.wikipedia.org/wiki/CodeWarrior Metrowerks CodeWarrior] compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__MWERKS__`] [__predef_detection__]] + [[`__CWCC__`] [__predef_detection__]] + + [[`__CWCC__`] [V.R.P]] + [[`__MWERKS__`] [V.R.P >= 4.2.0]] + [[`__MWERKS__`] [9.R.0]] + [[`__MWERKS__`] [8.R.0]] + ] + */ + +#define MSGPACK_COMP_MWERKS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__MWERKS__) || defined(__CWCC__) +# if !defined(MSGPACK_COMP_MWERKS_DETECTION) && defined(__CWCC__) +# define MSGPACK_COMP_MWERKS_DETECTION MSGPACK_PREDEF_MAKE_0X_VRPP(__CWCC__) +# endif +# if !defined(MSGPACK_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x4200) +# define MSGPACK_COMP_MWERKS_DETECTION MSGPACK_PREDEF_MAKE_0X_VRPP(__MWERKS__) +# endif +# if !defined(MSGPACK_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3204) // note the "skip": 04->9.3 +# define MSGPACK_COMP_MWERKS_DETECTION MSGPACK_VERSION_NUMBER(9,(__MWERKS__)%100-1,0) +# endif +# if !defined(MSGPACK_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3200) +# define MSGPACK_COMP_MWERKS_DETECTION MSGPACK_VERSION_NUMBER(9,(__MWERKS__)%100,0) +# endif +# if !defined(MSGPACK_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3000) +# define MSGPACK_COMP_MWERKS_DETECTION MSGPACK_VERSION_NUMBER(8,(__MWERKS__)%100,0) +# endif +# if !defined(MSGPACK_COMP_MWERKS_DETECTION) +# define MSGPACK_COMP_MWERKS_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#ifdef MSGPACK_COMP_MWERKS_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_MWERKS_EMULATED MSGPACK_COMP_MWERKS_DETECTION +# else +# undef MSGPACK_COMP_MWERKS +# define MSGPACK_COMP_MWERKS MSGPACK_COMP_MWERKS_DETECTION +# endif +# define MSGPACK_COMP_MWERKS_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_MWERKS_NAME "Metrowerks CodeWarrior" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_MWERKS,MSGPACK_COMP_MWERKS_NAME) + +#ifdef MSGPACK_COMP_MWERKS_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_MWERKS_EMULATED,MSGPACK_COMP_MWERKS_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/microtec.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/microtec.h new file mode 100755 index 0000000000000000000000000000000000000000..bc9c360284ae6ca77d4462077bfb3d4c00537bcb --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/microtec.h @@ -0,0 +1,53 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_MICROTEC_H +#define MSGPACK_PREDEF_COMPILER_MICROTEC_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_MRI`] + +[@http://www.mentor.com/microtec/ Microtec C/C++] compiler. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`_MRI`] [__predef_detection__]] + ] + */ + +#define MSGPACK_COMP_MRI MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(_MRI) +# define MSGPACK_COMP_MRI_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#ifdef MSGPACK_COMP_MRI_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_MRI_EMULATED MSGPACK_COMP_MRI_DETECTION +# else +# undef MSGPACK_COMP_MRI +# define MSGPACK_COMP_MRI MSGPACK_COMP_MRI_DETECTION +# endif +# define MSGPACK_COMP_MRI_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_MRI_NAME "Microtec C/C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_MRI,MSGPACK_COMP_MRI_NAME) + +#ifdef MSGPACK_COMP_MRI_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_MRI_EMULATED,MSGPACK_COMP_MRI_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/mpw.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/mpw.h new file mode 100755 index 0000000000000000000000000000000000000000..81788f9dfdb91df7f9f073b63ec757f3baacac62 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/mpw.h @@ -0,0 +1,63 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_MPW_H +#define MSGPACK_PREDEF_COMPILER_MPW_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_MPW`] + +[@http://en.wikipedia.org/wiki/Macintosh_Programmer%27s_Workshop MPW C++] compiler. +Version number available as major, and minor. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__MRC__`] [__predef_detection__]] + [[`MPW_C`] [__predef_detection__]] + [[`MPW_CPLUS`] [__predef_detection__]] + + [[`__MRC__`] [V.R.0]] + ] + */ + +#define MSGPACK_COMP_MPW MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) +# if !defined(MSGPACK_COMP_MPW_DETECTION) && defined(__MRC__) +# define MSGPACK_COMP_MPW_DETECTION MSGPACK_PREDEF_MAKE_0X_VVRR(__MRC__) +# endif +# if !defined(MSGPACK_COMP_MPW_DETECTION) +# define MSGPACK_COMP_MPW_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#ifdef MSGPACK_COMP_MPW_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_MPW_EMULATED MSGPACK_COMP_MPW_DETECTION +# else +# undef MSGPACK_COMP_MPW +# define MSGPACK_COMP_MPW MSGPACK_COMP_MPW_DETECTION +# endif +# define MSGPACK_COMP_MPW_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_MPW_NAME "MPW C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_MPW,MSGPACK_COMP_MPW_NAME) + +#ifdef MSGPACK_COMP_MPW_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_MPW_EMULATED,MSGPACK_COMP_MPW_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/palm.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/palm.h new file mode 100755 index 0000000000000000000000000000000000000000..0134cd29399c196a22ac9f338b2b82b02c87d449 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/palm.h @@ -0,0 +1,56 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_PALM_H +#define MSGPACK_PREDEF_COMPILER_PALM_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_PALM`] + +Palm C/C++ compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`_PACC_VER`] [__predef_detection__]] + + [[`_PACC_VER`] [V.R.P]] + ] + */ + +#define MSGPACK_COMP_PALM MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(_PACC_VER) +# define MSGPACK_COMP_PALM_DETECTION MSGPACK_PREDEF_MAKE_0X_VRRPP000(_PACC_VER) +#endif + +#ifdef MSGPACK_COMP_PALM_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_PALM_EMULATED MSGPACK_COMP_PALM_DETECTION +# else +# undef MSGPACK_COMP_PALM +# define MSGPACK_COMP_PALM MSGPACK_COMP_PALM_DETECTION +# endif +# define MSGPACK_COMP_PALM_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_PALM_NAME "Palm C/C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_PALM,MSGPACK_COMP_PALM_NAME) + +#ifdef MSGPACK_COMP_PALM_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_PALM_EMULATED,MSGPACK_COMP_PALM_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/pgi.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/pgi.h new file mode 100755 index 0000000000000000000000000000000000000000..a8399dd371597688502c6bdd36c5cc4e66abf0a5 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/pgi.h @@ -0,0 +1,60 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_PGI_H +#define MSGPACK_PREDEF_COMPILER_PGI_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_PGI`] + +[@http://en.wikipedia.org/wiki/The_Portland_Group Portland Group C/C++] compiler. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__PGI`] [__predef_detection__]] + + [[`__PGIC__`, `__PGIC_MINOR__`, `__PGIC_PATCHLEVEL__`] [V.R.P]] + ] + */ + +#define MSGPACK_COMP_PGI MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__PGI) +# if !defined(MSGPACK_COMP_PGI_DETECTION) && (defined(__PGIC__) && defined(__PGIC_MINOR__) && defined(__PGIC_PATCHLEVEL__)) +# define MSGPACK_COMP_PGI_DETECTION MSGPACK_VERSION_NUMBER(__PGIC__,__PGIC_MINOR__,__PGIC_PATCHLEVEL__) +# endif +# if !defined(MSGPACK_COMP_PGI_DETECTION) +# define MSGPACK_COMP_PGI_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#ifdef MSGPACK_COMP_PGI_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_PGI_EMULATED MSGPACK_COMP_PGI_DETECTION +# else +# undef MSGPACK_COMP_PGI +# define MSGPACK_COMP_PGI MSGPACK_COMP_PGI_DETECTION +# endif +# define MSGPACK_COMP_PGI_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_PGI_NAME "Portland Group C/C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_PGI,MSGPACK_COMP_PGI_NAME) + +#ifdef MSGPACK_COMP_PGI_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_PGI_EMULATED,MSGPACK_COMP_PGI_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/sgi_mipspro.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/sgi_mipspro.h new file mode 100755 index 0000000000000000000000000000000000000000..673b9bedc6055f8f435c61fe0ceaa657b7a85c1b --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/sgi_mipspro.h @@ -0,0 +1,66 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_SGI_MIPSPRO_H +#define MSGPACK_PREDEF_COMPILER_SGI_MIPSPRO_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_SGI`] + +[@http://en.wikipedia.org/wiki/MIPSpro SGI MIPSpro] compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__sgi`] [__predef_detection__]] + [[`sgi`] [__predef_detection__]] + + [[`_SGI_COMPILER_VERSION`] [V.R.P]] + [[`_COMPILER_VERSION`] [V.R.P]] + ] + */ + +#define MSGPACK_COMP_SGI MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__sgi) || defined(sgi) +# if !defined(MSGPACK_COMP_SGI_DETECTION) && defined(_SGI_COMPILER_VERSION) +# define MSGPACK_COMP_SGI_DETECTION MSGPACK_PREDEF_MAKE_10_VRP(_SGI_COMPILER_VERSION) +# endif +# if !defined(MSGPACK_COMP_SGI_DETECTION) && defined(_COMPILER_VERSION) +# define MSGPACK_COMP_SGI_DETECTION MSGPACK_PREDEF_MAKE_10_VRP(_COMPILER_VERSION) +# endif +# if !defined(MSGPACK_COMP_SGI_DETECTION) +# define MSGPACK_COMP_SGI_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#ifdef MSGPACK_COMP_SGI_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_SGI_EMULATED MSGPACK_COMP_SGI_DETECTION +# else +# undef MSGPACK_COMP_SGI +# define MSGPACK_COMP_SGI MSGPACK_COMP_SGI_DETECTION +# endif +# define MSGPACK_COMP_SGI_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_SGI_NAME "SGI MIPSpro" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_SGI,MSGPACK_COMP_SGI_NAME) + +#ifdef MSGPACK_COMP_SGI_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_SGI_EMULATED,MSGPACK_COMP_SGI_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/sunpro.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/sunpro.h new file mode 100755 index 0000000000000000000000000000000000000000..0b77334eded2caa3404687ec6e73ddce10d14e93 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/sunpro.h @@ -0,0 +1,76 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_SUNPRO_H +#define MSGPACK_PREDEF_COMPILER_SUNPRO_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_SUNPRO`] + +[@http://en.wikipedia.org/wiki/Oracle_Solaris_Studio Oracle Solaris Studio] compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__SUNPRO_CC`] [__predef_detection__]] + [[`__SUNPRO_C`] [__predef_detection__]] + + [[`__SUNPRO_CC`] [V.R.P]] + [[`__SUNPRO_C`] [V.R.P]] + [[`__SUNPRO_CC`] [VV.RR.P]] + [[`__SUNPRO_C`] [VV.RR.P]] + ] + */ + +#define MSGPACK_COMP_SUNPRO MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__SUNPRO_CC) || defined(__SUNPRO_C) +# if !defined(MSGPACK_COMP_SUNPRO_DETECTION) && defined(__SUNPRO_CC) +# if (__SUNPRO_CC < 0x5100) +# define MSGPACK_COMP_SUNPRO_DETECTION MSGPACK_PREDEF_MAKE_0X_VRP(__SUNPRO_CC) +# else +# define MSGPACK_COMP_SUNPRO_DETECTION MSGPACK_PREDEF_MAKE_0X_VVRRP(__SUNPRO_CC) +# endif +# endif +# if !defined(MSGPACK_COMP_SUNPRO_DETECTION) && defined(__SUNPRO_C) +# if (__SUNPRO_C < 0x5100) +# define MSGPACK_COMP_SUNPRO_DETECTION MSGPACK_PREDEF_MAKE_0X_VRP(__SUNPRO_C) +# else +# define MSGPACK_COMP_SUNPRO_DETECTION MSGPACK_PREDEF_MAKE_0X_VVRRP(__SUNPRO_C) +# endif +# endif +# if !defined(MSGPACK_COMP_SUNPRO_DETECTION) +# define MSGPACK_COMP_SUNPRO_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#ifdef MSGPACK_COMP_SUNPRO_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_SUNPRO_EMULATED MSGPACK_COMP_SUNPRO_DETECTION +# else +# undef MSGPACK_COMP_SUNPRO +# define MSGPACK_COMP_SUNPRO MSGPACK_COMP_SUNPRO_DETECTION +# endif +# define MSGPACK_COMP_SUNPRO_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_SUNPRO_NAME "Oracle Solaris Studio" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_SUNPRO,MSGPACK_COMP_SUNPRO_NAME) + +#ifdef MSGPACK_COMP_SUNPRO_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_SUNPRO_EMULATED,MSGPACK_COMP_SUNPRO_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/tendra.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/tendra.h new file mode 100755 index 0000000000000000000000000000000000000000..e90df56006b8262f15441542fd37f7ff80b20b76 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/tendra.h @@ -0,0 +1,53 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_TENDRA_H +#define MSGPACK_PREDEF_COMPILER_TENDRA_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_TENDRA`] + +[@http://en.wikipedia.org/wiki/TenDRA_Compiler TenDRA C/C++] compiler. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__TenDRA__`] [__predef_detection__]] + ] + */ + +#define MSGPACK_COMP_TENDRA MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__TenDRA__) +# define MSGPACK_COMP_TENDRA_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#ifdef MSGPACK_COMP_TENDRA_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_TENDRA_EMULATED MSGPACK_COMP_TENDRA_DETECTION +# else +# undef MSGPACK_COMP_TENDRA +# define MSGPACK_COMP_TENDRA MSGPACK_COMP_TENDRA_DETECTION +# endif +# define MSGPACK_COMP_TENDRA_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_TENDRA_NAME "TenDRA C/C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_TENDRA,MSGPACK_COMP_TENDRA_NAME) + +#ifdef MSGPACK_COMP_TENDRA_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_TENDRA_EMULATED,MSGPACK_COMP_TENDRA_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/visualc.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/visualc.h new file mode 100755 index 0000000000000000000000000000000000000000..547a5bf197417ba0a50ec3b219e37c6989041a1c --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/visualc.h @@ -0,0 +1,91 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_VISUALC_H +#define MSGPACK_PREDEF_COMPILER_VISUALC_H + +/* Other compilers that emulate this one need to be detected first. */ + +#include + +#include +#include + +/*` +[heading `MSGPACK_COMP_MSVC`] + +[@http://en.wikipedia.org/wiki/Visual_studio Microsoft Visual C/C++] compiler. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`_MSC_VER`] [__predef_detection__]] + + [[`_MSC_FULL_VER`] [V.R.P]] + [[`_MSC_VER`] [V.R.0]] + ] + */ + +#define MSGPACK_COMP_MSVC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(_MSC_VER) +# if !defined (_MSC_FULL_VER) +# define MSGPACK_COMP_MSVC_BUILD 0 +# else + /* how many digits does the build number have? */ +# if _MSC_FULL_VER / 10000 == _MSC_VER + /* four digits */ +# define MSGPACK_COMP_MSVC_BUILD (_MSC_FULL_VER % 10000) +# elif _MSC_FULL_VER / 100000 == _MSC_VER + /* five digits */ +# define MSGPACK_COMP_MSVC_BUILD (_MSC_FULL_VER % 100000) +# else +# error "Cannot determine build number from _MSC_FULL_VER" +# endif +# endif + /* + VS2014 was skipped in the release sequence for MS. Which + means that the compiler and VS product versions are no longer + in sync. Hence we need to use different formulas for + mapping from MSC version to VS product version. + */ +# if (_MSC_VER >= 1900) +# define MSGPACK_COMP_MSVC_DETECTION MSGPACK_VERSION_NUMBER(\ + _MSC_VER/100-5,\ + _MSC_VER%100,\ + MSGPACK_COMP_MSVC_BUILD) +# else +# define MSGPACK_COMP_MSVC_DETECTION MSGPACK_VERSION_NUMBER(\ + _MSC_VER/100-6,\ + _MSC_VER%100,\ + MSGPACK_COMP_MSVC_BUILD) +# endif +#endif + +#ifdef MSGPACK_COMP_MSVC_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_MSVC_EMULATED MSGPACK_COMP_MSVC_DETECTION +# else +# undef MSGPACK_COMP_MSVC +# define MSGPACK_COMP_MSVC MSGPACK_COMP_MSVC_DETECTION +# endif +# define MSGPACK_COMP_MSVC_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_MSVC_NAME "Microsoft Visual C/C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_MSVC,MSGPACK_COMP_MSVC_NAME) + +#ifdef MSGPACK_COMP_MSVC_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_MSVC_EMULATED,MSGPACK_COMP_MSVC_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/compiler/watcom.h b/msgpackc/2.1.5/include/msgpack/predef/compiler/watcom.h new file mode 100755 index 0000000000000000000000000000000000000000..6e3022ac47b18e27ffb1543ee3ba26812ded5c04 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/compiler/watcom.h @@ -0,0 +1,56 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_WATCOM_H +#define MSGPACK_PREDEF_COMPILER_WATCOM_H + +#include +#include + +/*` +[heading `MSGPACK_COMP_WATCOM`] + +[@http://en.wikipedia.org/wiki/Watcom Watcom C++] compiler. +Version number available as major, and minor. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__WATCOMC__`] [__predef_detection__]] + + [[`__WATCOMC__`] [V.R.P]] + ] + */ + +#define MSGPACK_COMP_WATCOM MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__WATCOMC__) +# define MSGPACK_COMP_WATCOM_DETECTION MSGPACK_PREDEF_MAKE_10_VVRR(__WATCOMC__) +#endif + +#ifdef MSGPACK_COMP_WATCOM_DETECTION +# if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED) +# define MSGPACK_COMP_WATCOM_EMULATED MSGPACK_COMP_WATCOM_DETECTION +# else +# undef MSGPACK_COMP_WATCOM +# define MSGPACK_COMP_WATCOM MSGPACK_COMP_WATCOM_DETECTION +# endif +# define MSGPACK_COMP_WATCOM_AVAILABLE +# include +#endif + +#define MSGPACK_COMP_WATCOM_NAME "Watcom C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_WATCOM,MSGPACK_COMP_WATCOM_NAME) + +#ifdef MSGPACK_COMP_WATCOM_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_WATCOM_EMULATED,MSGPACK_COMP_WATCOM_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/detail/_cassert.h b/msgpackc/2.1.5/include/msgpack/predef/detail/_cassert.h new file mode 100755 index 0000000000000000000000000000000000000000..155ebebdb9f916bc822e079939272fbab8a1b70b --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/detail/_cassert.h @@ -0,0 +1,17 @@ +/* +Copyright Rene Rivera 2011-2012 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_DETAIL__CASSERT_H +#define MSGPACK_PREDEF_DETAIL__CASSERT_H + +#if defined(__cplusplus) +#include +#else +#include +#endif + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/detail/_exception.h b/msgpackc/2.1.5/include/msgpack/predef/detail/_exception.h new file mode 100755 index 0000000000000000000000000000000000000000..ca157b953737d09c03b3610a28026b682292b5ed --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/detail/_exception.h @@ -0,0 +1,15 @@ +/* +Copyright Rene Rivera 2011-2012 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_DETAIL__EXCEPTION_H +#define MSGPACK_PREDEF_DETAIL__EXCEPTION_H + +#if defined(__cplusplus) +#include +#endif + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/detail/comp_detected.h b/msgpackc/2.1.5/include/msgpack/predef/detail/comp_detected.h new file mode 100755 index 0000000000000000000000000000000000000000..3996fd3979f1676dfdbc4d835c5d9c8f26cb6020 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/detail/comp_detected.h @@ -0,0 +1,10 @@ +/* +Copyright Rene Rivera 2014 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_DETAIL_COMP_DETECTED +#define MSGPACK_PREDEF_DETAIL_COMP_DETECTED 1 +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/detail/endian_compat.h b/msgpackc/2.1.5/include/msgpack/predef/detail/endian_compat.h new file mode 100755 index 0000000000000000000000000000000000000000..1b4a66581cdd74c0373ee3226f2d82a0c9d2112a --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/detail/endian_compat.h @@ -0,0 +1,26 @@ +/* +Copyright Rene Rivera 2013 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_DETAIL_ENDIAN_COMPAT_H +#define MSGPACK_PREDEF_DETAIL_ENDIAN_COMPAT_H + +#include + +#if MSGPACK_ENDIAN_BIG_BYTE +# define MSGPACK_BIG_ENDIAN +# define MSGPACK_BYTE_ORDER 4321 +#endif +#if MSGPACK_ENDIAN_LITTLE_BYTE +# define MSGPACK_LITTLE_ENDIAN +# define MSGPACK_BYTE_ORDER 1234 +#endif +#if MSGPACK_ENDIAN_LITTLE_WORD +# define MSGPACK_PDP_ENDIAN +# define MSGPACK_BYTE_ORDER 2134 +#endif + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/detail/os_detected.h b/msgpackc/2.1.5/include/msgpack/predef/detail/os_detected.h new file mode 100755 index 0000000000000000000000000000000000000000..f9f23b787e7a16dd30c449576eaafe05e5ec65d9 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/detail/os_detected.h @@ -0,0 +1,10 @@ +/* +Copyright Rene Rivera 2013 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_DETAIL_OS_DETECTED +#define MSGPACK_PREDEF_DETAIL_OS_DETECTED 1 +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/detail/platform_detected.h b/msgpackc/2.1.5/include/msgpack/predef/detail/platform_detected.h new file mode 100755 index 0000000000000000000000000000000000000000..782b3a291dcfcb5a5449fe9d9177bb7e9a2251b8 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/detail/platform_detected.h @@ -0,0 +1,10 @@ +/* +Copyright Rene Rivera 2014 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_DETAIL_PLAT_DETECTED +#define MSGPACK_PREDEF_DETAIL_PLAT_DETECTED 1 +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/detail/test.h b/msgpackc/2.1.5/include/msgpack/predef/detail/test.h new file mode 100755 index 0000000000000000000000000000000000000000..1414060350f7f8bdc11b93362be3aa2e842b9797 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/detail/test.h @@ -0,0 +1,17 @@ +/* +Copyright Rene Rivera 2011-2012 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_DETAIL_TEST_H +#define MSGPACK_PREDEF_DETAIL_TEST_H + +#if !defined(MSGPACK_PREDEF_INTERNAL_GENERATE_TESTS) + +#define MSGPACK_PREDEF_DECLARE_TEST(x,s) + +#endif + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/detail/test_def.h b/msgpackc/2.1.5/include/msgpack/predef/detail/test_def.h new file mode 100755 index 0000000000000000000000000000000000000000..924c1e5f2d1b008e66f92d5e0541d008d4760fe5 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/detail/test_def.h @@ -0,0 +1,71 @@ +/* +Copyright Rene Rivera 2011-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ +#include + +#define MSGPACK_PREDEF_INTERNAL_GENERATE_TESTS + +void * add_predef_entry(const char * name, const char * description, unsigned value) +#undef MSGPACK_PREDEF_DECLARE_TEST +#define MSGPACK_PREDEF_DECLARE_TEST(x,s) void predef_entry_##x() { add_predef_entry(#x, s, x) } +#include + +#undef MSGPACK_PREDEF_DECLARE_TEST +#define MSGPACK_PREDEF_DECLARE_TEST(x,s) predef_entry_##x() +void create_predef_entries() +{ +#include +} + +#ifdef __cplusplus +#include +#include +#include +using namespace std +#else +#include +#include +#include +#endif + +typedef struct predef_info +{ + const char * name + const char * description + unsigned value +} predef_info + +#ifdef __cplusplus +using namespace std +#endif + +unsigned generated_predef_info_count = 0 +predef_info* generated_predef_info = 0 +void * add_predef_entry(const char * name, const char * description, unsigned value) +{ + if (0 == generated_predef_info_count) + { + generated_predef_info_count = 1 + generated_predef_info = (predef_info*)malloc(sizeof(predef_info)) + } + else + { + generated_predef_info_count += 1 + generated_predef_info = (predef_info*)realloc(generated_predef_info, + generated_predef_info_count*sizeof(predef_info)) + } + generated_predef_info[generated_predef_info_count-1].name = name + generated_predef_info[generated_predef_info_count-1].description = description + generated_predef_info[generated_predef_info_count-1].value = value + return 0 +} + +int predef_info_compare(const void * a, const void * b) +{ + const predef_info * i = (const predef_info *)a + const predef_info * j = (const predef_info *)b + return strcmp(i->name,j->name) +} diff --git a/msgpackc/2.1.5/include/msgpack/predef/hardware.h b/msgpackc/2.1.5/include/msgpack/predef/hardware.h new file mode 100755 index 0000000000000000000000000000000000000000..328409839d8086388b3cf8bc9e1cba38d6b3f4c9 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/hardware.h @@ -0,0 +1,16 @@ +/* +Copyright Charly Chevalier 2015 +Copyright Joel Falcou 2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#if !defined(MSGPACK_PREDEF_HARDWARE_H) || defined(MSGPACK_PREDEF_INTERNAL_GENERATE_TESTS) +#ifndef MSGPACK_PREDEF_HARDWARE_H +#define MSGPACK_PREDEF_HARDWARE_H +#endif + +#include + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/hardware/simd.h b/msgpackc/2.1.5/include/msgpack/predef/hardware/simd.h new file mode 100755 index 0000000000000000000000000000000000000000..30489d22b949694431e2e33ca99991ac3d779d98 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/hardware/simd.h @@ -0,0 +1,119 @@ +/* +Copyright Charly Chevalier 2015 +Copyright Joel Falcou 2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#include +#include +#include +#include + +#ifndef MSGPACK_PREDEF_HARDWARE_SIMD_H +#define MSGPACK_PREDEF_HARDWARE_SIMD_H + +#include + +/*` + [section Using the `MSGPACK_HW_SIMD_*` predefs] + [include ../doc/hardware_simd.qbk] + [endsect] + + [/ --------------------------- ] + + [section `MSGPACK_HW_SIMD_*`] + + [heading `MSGPACK_HW_SIMD`] + + The SIMD extension detected for a specific architectures. + Version number depends on the detected extension. + + [table + [[__predef_symbol__] [__predef_version__]] + + [[`MSGPACK_HW_SIMD_X86_AVAILABLE`] [__predef_detection__]] + [[`MSGPACK_HW_SIMD_X86_AMD_AVAILABLE`] [__predef_detection__]] + [[`MSGPACK_HW_SIMD_ARM_AVAILABLE`] [__predef_detection__]] + [[`MSGPACK_HW_SIMD_PPC_AVAILABLE`] [__predef_detection__]] + ] + + [include ../include/msgpack/predef/hardware/simd/x86.h] + [include ../include/msgpack/predef/hardware/simd/x86_amd.h] + [include ../include/msgpack/predef/hardware/simd/arm.h] + [include ../include/msgpack/predef/hardware/simd/ppc.h] + + [endsect] + + [/ --------------------------- ] + + [section `MSGPACK_HW_SIMD_X86_*_VERSION`] + [include ../include/msgpack/predef/hardware/simd/x86/versions.h] + [endsect] + + [section `MSGPACK_HW_SIMD_X86_AMD_*_VERSION`] + [include ../include/msgpack/predef/hardware/simd/x86_amd/versions.h] + [endsect] + + [section `MSGPACK_HW_SIMD_ARM_*_VERSION`] + [include ../include/msgpack/predef/hardware/simd/arm/versions.h] + [endsect] + + [section `MSGPACK_HW_SIMD_PPC_*_VERSION`] + [include ../include/msgpack/predef/hardware/simd/ppc/versions.h] + [endsect] + + */ + +// We check if SIMD extension of multiples architectures have been detected, +// if yes, then this is an error! +// +// NOTE: _X86_AMD implies _X86, so there is no need to check for it here! +// +#if defined(MSGPACK_HW_SIMD_ARM_AVAILABLE) && defined(MSGPACK_HW_SIMD_PPC_AVAILABLE) ||\ + defined(MSGPACK_HW_SIMD_ARM_AVAILABLE) && defined(MSGPACK_HW_SIMD_X86_AVAILABLE) ||\ + defined(MSGPACK_HW_SIMD_PPC_AVAILABLE) && defined(MSGPACK_HW_SIMD_X86_AVAILABLE) +# error "Multiple SIMD architectures detected, this cannot happen!" +#endif + +#if defined(MSGPACK_HW_SIMD_X86_AVAILABLE) && defined(MSGPACK_HW_SIMD_X86_AMD_AVAILABLE) + // If both standard _X86 and _X86_AMD are available, + // then take the biggest version of the two! +# if MSGPACK_HW_SIMD_X86 >= MSGPACK_HW_SIMD_X86_AMD +# define MSGPACK_HW_SIMD MSGPACK_HW_SIMD_X86 +# else +# define MSGPACK_HW_SIMD MSGPACK_HW_SIMD_X86_AMD +# endif +#endif + +#if !defined(MSGPACK_HW_SIMD) + // At this point, only one of these two is defined +# if defined(MSGPACK_HW_SIMD_X86_AVAILABLE) +# define MSGPACK_HW_SIMD MSGPACK_HW_SIMD_X86 +# endif +# if defined(MSGPACK_HW_SIMD_X86_AMD_AVAILABLE) +# define MSGPACK_HW_SIMD MSGPACK_HW_SIMD_X86_AMD +# endif +#endif + +#if defined(MSGPACK_HW_SIMD_ARM_AVAILABLE) +# define MSGPACK_HW_SIMD MSGPACK_HW_SIMD_ARM +#endif + +#if defined(MSGPACK_HW_SIMD_PPC_AVAILABLE) +# define MSGPACK_HW_SIMD MSGPACK_HW_SIMD_PPC +#endif + +#if defined(MSGPACK_HW_SIMD) +# define MSGPACK_HW_SIMD_AVAILABLE +#else +# define MSGPACK_HW_SIMD MSGPACK_VERSION_NUMBER_NOT_AVAILABLE +#endif + +#define MSGPACK_HW_SIMD_NAME "Hardware SIMD" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_HW_SIMD, MSGPACK_HW_SIMD_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/arm.h b/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/arm.h new file mode 100755 index 0000000000000000000000000000000000000000..0c22dbdc1f2276c85f614938a1beda741ab913b8 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/arm.h @@ -0,0 +1,57 @@ +/* +Copyright Charly Chevalier 2015 +Copyright Joel Falcou 2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_HARDWARE_SIMD_ARM_H +#define MSGPACK_PREDEF_HARDWARE_SIMD_ARM_H + +#include +#include + +/*` + [heading `MSGPACK_HW_SIMD_ARM`] + + The SIMD extension for ARM (*if detected*). + Version number depends on the most recent detected extension. + + [table + [[__predef_symbol__] [__predef_version__]] + + [[`__ARM_NEON__`] [__predef_detection__]] + [[`__aarch64__`] [__predef_detection__]] + [[`_M_ARM`] [__predef_detection__]] + ] + + [table + [[__predef_symbol__] [__predef_version__]] + + [[`__ARM_NEON__`] [MSGPACK_HW_SIMD_ARM_NEON_VERSION]] + [[`__aarch64__`] [MSGPACK_HW_SIMD_ARM_NEON_VERSION]] + [[`_M_ARM`] [MSGPACK_HW_SIMD_ARM_NEON_VERSION]] + ] + + */ + +#define MSGPACK_HW_SIMD_ARM MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#undef MSGPACK_HW_SIMD_ARM +#if !defined(MSGPACK_HW_SIMD_ARM) && (defined(__ARM_NEON__) || defined(__aarch64__) || defined (_M_ARM)) +# define MSGPACK_HW_SIMD_ARM MSGPACK_HW_SIMD_ARM_NEON_VERSION +#endif + +#if !defined(MSGPACK_HW_SIMD_ARM) +# define MSGPACK_HW_SIMD_ARM MSGPACK_VERSION_NUMBER_NOT_AVAILABLE +#else +# define MSGPACK_HW_SIMD_ARM_AVAILABLE +#endif + +#define MSGPACK_HW_SIMD_ARM_NAME "ARM SIMD" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_HW_SIMD_ARM, MSGPACK_HW_SIMD_ARM_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/arm/versions.h b/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/arm/versions.h new file mode 100755 index 0000000000000000000000000000000000000000..6df71bd01011a8ad3636bf1bb38c4b9e7462adbe --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/arm/versions.h @@ -0,0 +1,32 @@ +/* +Copyright Charly Chevalier 2015 +Copyright Joel Falcou 2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_HARDWARE_SIMD_ARM_VERSIONS_H +#define MSGPACK_PREDEF_HARDWARE_SIMD_ARM_VERSIONS_H + +#include + +/*` + Those defines represent ARM SIMD extensions versions. + + [note You *MUST* compare them with the predef `MSGPACK_HW_SIMD_ARM`.] + */ + +// --------------------------------- + +/*` + [heading `MSGPACK_HW_SIMD_ARM_NEON_VERSION`] + + The [@https://en.wikipedia.org/wiki/ARM_architecture#Advanced_SIMD_.28NEON.29 NEON] + ARM extension version number. + + Version number is: *1.0.0*. + */ +#define MSGPACK_HW_SIMD_ARM_NEON_VERSION MSGPACK_VERSION_NUMBER(1, 0, 0) + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/ppc.h b/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/ppc.h new file mode 100755 index 0000000000000000000000000000000000000000..708cbbaffa8aabf04ac217b86c52e53f5329f372 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/ppc.h @@ -0,0 +1,69 @@ +/* +Copyright Charly Chevalier 2015 +Copyright Joel Falcou 2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_HARDWARE_SIMD_PPC_H +#define MSGPACK_PREDEF_HARDWARE_SIMD_PPC_H + +#include +#include + +/*` + [heading `MSGPACK_HW_SIMD_PPC`] + + The SIMD extension for PowerPC (*if detected*). + Version number depends on the most recent detected extension. + + [table + [[__predef_symbol__] [__predef_version__]] + + [[`__VECTOR4DOUBLE__`] [__predef_detection__]] + + [[`__ALTIVEC__`] [__predef_detection__]] + [[`__VEC__`] [__predef_detection__]] + + [[`__VSX__`] [__predef_detection__]] + ] + + [table + [[__predef_symbol__] [__predef_version__]] + + [[`__VECTOR4DOUBLE__`] [MSGPACK_HW_SIMD_PPC_QPX_VERSION]] + + [[`__ALTIVEC__`] [MSGPACK_HW_SIMD_PPC_VMX_VERSION]] + [[`__VEC__`] [MSGPACK_HW_SIMD_PPC_VMX_VERSION]] + + [[`__VSX__`] [MSGPACK_HW_SIMD_PPC_VSX_VERSION]] + ] + + */ + +#define MSGPACK_HW_SIMD_PPC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#undef MSGPACK_HW_SIMD_PPC +#if !defined(MSGPACK_HW_SIMD_PPC) && defined(__VECTOR4DOUBLE__) +# define MSGPACK_HW_SIMD_PPC MSGPACK_HW_SIMD_PPC_QPX_VERSION +#endif +#if !defined(MSGPACK_HW_SIMD_PPC) && defined(__VSX__) +# define MSGPACK_HW_SIMD_PPC MSGPACK_HW_SIMD_PPC_VSX_VERSION +#endif +#if !defined(MSGPACK_HW_SIMD_PPC) && (defined(__ALTIVEC__) || defined(__VEC__)) +# define MSGPACK_HW_SIMD_PPC MSGPACK_HW_SIMD_PPC_VMX_VERSION +#endif + +#if !defined(MSGPACK_HW_SIMD_PPC) +# define MSGPACK_HW_SIMD_PPC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE +#else +# define MSGPACK_HW_SIMD_PPC_AVAILABLE +#endif + +#define MSGPACK_HW_SIMD_PPC_NAME "PPC SIMD" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_HW_SIMD_PPC, MSGPACK_HW_SIMD_PPC_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/ppc/versions.h b/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/ppc/versions.h new file mode 100755 index 0000000000000000000000000000000000000000..0ef40f9bcf95c9b55f414ac5602c623eb5de49e4 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/ppc/versions.h @@ -0,0 +1,51 @@ +/* +Copyright Charly Chevalier 2015 +Copyright Joel Falcou 2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_HARDWARE_SIMD_PPC_VERSIONS_H +#define MSGPACK_PREDEF_HARDWARE_SIMD_PPC_VERSIONS_H + +#include + +/*` + Those defines represent Power PC SIMD extensions versions. + + [note You *MUST* compare them with the predef `MSGPACK_HW_SIMD_PPC`.] + */ + +// --------------------------------- + +/*` + [heading `MSGPACK_HW_SIMD_PPC_VMX_VERSION`] + + The [@https://en.wikipedia.org/wiki/AltiVec#VMX128 VMX] powerpc extension + version number. + + Version number is: *1.0.0*. + */ +#define MSGPACK_HW_SIMD_PPC_VMX_VERSION MSGPACK_VERSION_NUMBER(1, 0, 0) + +/*` + [heading `MSGPACK_HW_SIMD_PPC_VSX_VERSION`] + + The [@https://en.wikipedia.org/wiki/AltiVec#VSX VSX] powerpc extension version + number. + + Version number is: *1.1.0*. + */ +#define MSGPACK_HW_SIMD_PPC_VSX_VERSION MSGPACK_VERSION_NUMBER(1, 1, 0) + +/*` + [heading `MSGPACK_HW_SIMD_PPC_QPX_VERSION`] + + The QPX powerpc extension version number. + + Version number is: *2.0.0*. + */ +#define MSGPACK_HW_SIMD_PPC_QPX_VERSION MSGPACK_VERSION_NUMBER(2, 0, 0) + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/x86.h b/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/x86.h new file mode 100755 index 0000000000000000000000000000000000000000..a3e56168c30c0385a1a210b173600925501ca224 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/x86.h @@ -0,0 +1,123 @@ +/* +Copyright Charly Chevalier 2015 +Copyright Joel Falcou 2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_HARDWARE_SIMD_X86_H +#define MSGPACK_PREDEF_HARDWARE_SIMD_X86_H + +#include +#include + +/*` + [heading `MSGPACK_HW_SIMD_X86`] + + The SIMD extension for x86 (*if detected*). + Version number depends on the most recent detected extension. + + [table + [[__predef_symbol__] [__predef_version__]] + + [[`__SSE__`] [__predef_detection__]] + [[`_M_X64`] [__predef_detection__]] + [[`_M_IX86_FP >= 1`] [__predef_detection__]] + + [[`__SSE2__`] [__predef_detection__]] + [[`_M_X64`] [__predef_detection__]] + [[`_M_IX86_FP >= 2`] [__predef_detection__]] + + [[`__SSE3__`] [__predef_detection__]] + + [[`__SSSE3__`] [__predef_detection__]] + + [[`__SSE4_1__`] [__predef_detection__]] + + [[`__SSE4_2__`] [__predef_detection__]] + + [[`__AVX__`] [__predef_detection__]] + + [[`__FMA__`] [__predef_detection__]] + + [[`__AVX2__`] [__predef_detection__]] + ] + + [table + [[__predef_symbol__] [__predef_version__]] + + [[`__SSE__`] [MSGPACK_HW_SIMD_X86_SSE_VERSION]] + [[`_M_X64`] [MSGPACK_HW_SIMD_X86_SSE_VERSION]] + [[`_M_IX86_FP >= 1`] [MSGPACK_HW_SIMD_X86_SSE_VERSION]] + + [[`__SSE2__`] [MSGPACK_HW_SIMD_X86_SSE2_VERSION]] + [[`_M_X64`] [MSGPACK_HW_SIMD_X86_SSE2_VERSION]] + [[`_M_IX86_FP >= 2`] [MSGPACK_HW_SIMD_X86_SSE2_VERSION]] + + [[`__SSE3__`] [MSGPACK_HW_SIMD_X86_SSE3_VERSION]] + + [[`__SSSE3__`] [MSGPACK_HW_SIMD_X86_SSSE3_VERSION]] + + [[`__SSE4_1__`] [MSGPACK_HW_SIMD_X86_SSE4_1_VERSION]] + + [[`__SSE4_2__`] [MSGPACK_HW_SIMD_X86_SSE4_2_VERSION]] + + [[`__AVX__`] [MSGPACK_HW_SIMD_X86_AVX_VERSION]] + + [[`__FMA__`] [MSGPACK_HW_SIMD_X86_FMA3_VERSION]] + + [[`__AVX2__`] [MSGPACK_HW_SIMD_X86_AVX2_VERSION]] + ] + + */ + +#define MSGPACK_HW_SIMD_X86 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#undef MSGPACK_HW_SIMD_X86 +#if !defined(MSGPACK_HW_SIMD_X86) && defined(__MIC__) +# define MSGPACK_HW_SIMD_X86 MSGPACK_HW_SIMD_X86_MIC_VERSION +#endif +#if !defined(MSGPACK_HW_SIMD_X86) && defined(__AVX2__) +# define MSGPACK_HW_SIMD_X86 MSGPACK_HW_SIMD_X86_AVX2_VERSION +#endif +#if !defined(MSGPACK_HW_SIMD_X86) && defined(__AVX__) +# define MSGPACK_HW_SIMD_X86 MSGPACK_HW_SIMD_X86_AVX_VERSION +#endif +#if !defined(MSGPACK_HW_SIMD_X86) && defined(__FMA__) +# define MSGPACK_HW_SIMD_X86 MSGPACK_HW_SIMD_X86_FMA_VERSION +#endif +#if !defined(MSGPACK_HW_SIMD_X86) && defined(__SSE4_2__) +# define MSGPACK_HW_SIMD_X86 MSGPACK_HW_SIMD_X86_SSE4_2_VERSION +#endif +#if !defined(MSGPACK_HW_SIMD_X86) && defined(__SSE4_1__) +# define MSGPACK_HW_SIMD_X86 MSGPACK_HW_SIMD_X86_SSE4_1_VERSION +#endif +#if !defined(MSGPACK_HW_SIMD_X86) && defined(__SSSE3__) +# define MSGPACK_HW_SIMD_X86 MSGPACK_HW_SIMD_X86_SSSE3_VERSION +#endif +#if !defined(MSGPACK_HW_SIMD_X86) && defined(__SSE3__) +# define MSGPACK_HW_SIMD_X86 MSGPACK_HW_SIMD_X86_SSE3_VERSION +#endif +#if !defined(MSGPACK_HW_SIMD_X86) && (defined(__SSE2__) || defined(_M_X64) || (defined(_M_IX86_FP) && _M_IX86_FP >= 2)) +# define MSGPACK_HW_SIMD_X86 MSGPACK_HW_SIMD_X86_SSE2_VERSION +#endif +#if !defined(MSGPACK_HW_SIMD_X86) && (defined(__SSE__) || defined(_M_X64) || (defined(_M_IX86_FP) && _M_IX86_FP >= 1)) +# define MSGPACK_HW_SIMD_X86 MSGPACK_HW_SIMD_X86_SSE_VERSION +#endif +#if !defined(MSGPACK_HW_SIMD_X86) && defined(__MMX__) +# define MSGPACK_HW_SIMD_X86 MSGPACK_HW_SIMD_X86_MMX_VERSION +#endif + +#if !defined(MSGPACK_HW_SIMD_X86) +# define MSGPACK_HW_SIMD_X86 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE +#else +# define MSGPACK_HW_SIMD_X86_AVAILABLE +#endif + +#define MSGPACK_HW_SIMD_X86_NAME "x86 SIMD" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_HW_SIMD_X86, MSGPACK_HW_SIMD_X86_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/x86/versions.h b/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/x86/versions.h new file mode 100755 index 0000000000000000000000000000000000000000..a9f965071af6153b00954594ea7659c5708e04cc --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/x86/versions.h @@ -0,0 +1,129 @@ +/* +Copyright Charly Chevalier 2015 +Copyright Joel Falcou 2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_HARDWARE_SIMD_X86_VERSIONS_H +#define MSGPACK_PREDEF_HARDWARE_SIMD_X86_VERSIONS_H + +#include + +/*` + Those defines represent x86 SIMD extensions versions. + + [note You *MUST* compare them with the predef `MSGPACK_HW_SIMD_X86`.] + */ + +// --------------------------------- + +/*` + [heading `MSGPACK_HW_SIMD_X86_MMX_VERSION`] + + The [@https://en.wikipedia.org/wiki/MMX_(instruction_set) MMX] x86 extension + version number. + + Version number is: *0.99.0*. + */ +#define MSGPACK_HW_SIMD_X86_MMX_VERSION MSGPACK_VERSION_NUMBER(0, 99, 0) + +/*` + [heading `MSGPACK_HW_SIMD_X86_SSE_VERSION`] + + The [@https://en.wikipedia.org/wiki/Streaming_SIMD_Extensions SSE] x86 extension + version number. + + Version number is: *1.0.0*. + */ +#define MSGPACK_HW_SIMD_X86_SSE_VERSION MSGPACK_VERSION_NUMBER(1, 0, 0) + +/*` + [heading `MSGPACK_HW_SIMD_X86_SSE2_VERSION`] + + The [@https://en.wikipedia.org/wiki/SSE2 SSE2] x86 extension version number. + + Version number is: *2.0.0*. + */ +#define MSGPACK_HW_SIMD_X86_SSE2_VERSION MSGPACK_VERSION_NUMBER(2, 0, 0) + +/*` + [heading `MSGPACK_HW_SIMD_X86_SSE3_VERSION`] + + The [@https://en.wikipedia.org/wiki/SSE3 SSE3] x86 extension version number. + + Version number is: *3.0.0*. + */ +#define MSGPACK_HW_SIMD_X86_SSE3_VERSION MSGPACK_VERSION_NUMBER(3, 0, 0) + +/*` + [heading `MSGPACK_HW_SIMD_X86_SSSE3_VERSION`] + + The [@https://en.wikipedia.org/wiki/SSSE3 SSSE3] x86 extension version number. + + Version number is: *3.1.0*. + */ +#define MSGPACK_HW_SIMD_X86_SSSE3_VERSION MSGPACK_VERSION_NUMBER(3, 1, 0) + +/*` + [heading `MSGPACK_HW_SIMD_X86_SSE4_1_VERSION`] + + The [@https://en.wikipedia.org/wiki/SSE4#SSE4.1 SSE4_1] x86 extension version + number. + + Version number is: *4.1.0*. + */ +#define MSGPACK_HW_SIMD_X86_SSE4_1_VERSION MSGPACK_VERSION_NUMBER(4, 1, 0) + +/*` + [heading `MSGPACK_HW_SIMD_X86_SSE4_2_VERSION`] + + The [@https://en.wikipedia.org/wiki/SSE4##SSE4.2 SSE4_2] x86 extension version + number. + + Version number is: *4.2.0*. + */ +#define MSGPACK_HW_SIMD_X86_SSE4_2_VERSION MSGPACK_VERSION_NUMBER(4, 2, 0) + +/*` + [heading `MSGPACK_HW_SIMD_X86_AVX_VERSION`] + + The [@https://en.wikipedia.org/wiki/Advanced_Vector_Extensions AVX] x86 + extension version number. + + Version number is: *5.0.0*. + */ +#define MSGPACK_HW_SIMD_X86_AVX_VERSION MSGPACK_VERSION_NUMBER(5, 0, 0) + +/*` + [heading `MSGPACK_HW_SIMD_X86_FMA3_VERSION`] + + The [@https://en.wikipedia.org/wiki/FMA_instruction_set FMA3] x86 extension + version number. + + Version number is: *5.2.0*. + */ +#define MSGPACK_HW_SIMD_X86_FMA3_VERSION MSGPACK_VERSION_NUMBER(5, 2, 0) + +/*` + [heading `MSGPACK_HW_SIMD_X86_AVX2_VERSION`] + + The [@https://en.wikipedia.org/wiki/Advanced_Vector_Extensions#Advanced_Vector_Extensions_2 AVX2] + x86 extension version number. + + Version number is: *5.3.0*. + */ +#define MSGPACK_HW_SIMD_X86_AVX2_VERSION MSGPACK_VERSION_NUMBER(5, 3, 0) + +/*` + [heading `MSGPACK_HW_SIMD_X86_MIC_VERSION`] + + The [@https://en.wikipedia.org/wiki/Xeon_Phi MIC] (Xeon Phi) x86 extension + version number. + + Version number is: *9.0.0*. + */ +#define MSGPACK_HW_SIMD_X86_MIC_VERSION MSGPACK_VERSION_NUMBER(9, 0, 0) + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/x86_amd.h b/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/x86_amd.h new file mode 100755 index 0000000000000000000000000000000000000000..6ea56714ea49be2d3c16ff35ea754dc4521c3b60 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/x86_amd.h @@ -0,0 +1,87 @@ +/* +Copyright Charly Chevalier 2015 +Copyright Joel Falcou 2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_HARDWARE_SIMD_X86_AMD_H +#define MSGPACK_PREDEF_HARDWARE_SIMD_X86_AMD_H + +#include +#include + +/*` + [heading `MSGPACK_HW_SIMD_X86_AMD`] + + The SIMD extension for x86 (AMD) (*if detected*). + Version number depends on the most recent detected extension. + + [table + [[__predef_symbol__] [__predef_version__]] + + [[`__SSE4A__`] [__predef_detection__]] + + [[`__FMA4__`] [__predef_detection__]] + + [[`__XOP__`] [__predef_detection__]] + + [[`MSGPACK_HW_SIMD_X86`] [__predef_detection__]] + ] + + [table + [[__predef_symbol__] [__predef_version__]] + + [[`__SSE4A__`] [MSGPACK_HW_SIMD_X86_SSE4A_VERSION]] + + [[`__FMA4__`] [MSGPACK_HW_SIMD_X86_FMA4_VERSION]] + + [[`__XOP__`] [MSGPACK_HW_SIMD_X86_XOP_VERSION]] + + [[`MSGPACK_HW_SIMD_X86`] [MSGPACK_HW_SIMD_X86]] + ] + + [note This predef includes every other x86 SIMD extensions and also has other + more specific extensions (FMA4, XOP, SSE4a). You should use this predef + instead of `MSGPACK_HW_SIMD_X86` to test if those specific extensions have + been detected.] + + */ + +#define MSGPACK_HW_SIMD_X86_AMD MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +// AMD CPUs also use x86 architecture. We first try to detect if any AMD +// specific extension are detected, if yes, then try to detect more recent x86 +// common extensions. + +#undef MSGPACK_HW_SIMD_X86_AMD +#if !defined(MSGPACK_HW_SIMD_X86_AMD) && defined(__XOP__) +# define MSGPACK_HW_SIMD_X86_AMD MSGPACK_HW_SIMD_X86_AMD_XOP_VERSION +#endif +#if !defined(MSGPACK_HW_SIMD_X86_AMD) && defined(__FMA4__) +# define MSGPACK_HW_SIMD_X86_AMD MSGPACK_HW_SIMD_X86_AMD_FMA4_VERSION +#endif +#if !defined(MSGPACK_HW_SIMD_X86_AMD) && defined(__SSE4A__) +# define MSGPACK_HW_SIMD_X86_AMD MSGPACK_HW_SIMD_X86_AMD_SSE4A_VERSION +#endif + +#if !defined(MSGPACK_HW_SIMD_X86_AMD) +# define MSGPACK_HW_SIMD_X86_AMD MSGPACK_VERSION_NUMBER_NOT_AVAILABLE +#else + // At this point, we know that we have an AMD CPU, we do need to check for + // other x86 extensions to determine the final version number. +# include +# if MSGPACK_HW_SIMD_X86 > MSGPACK_HW_SIMD_X86_AMD +# undef MSGPACK_HW_SIMD_X86_AMD +# define MSGPACK_HW_SIMD_X86_AMD MSGPACK_HW_SIMD_X86 +# endif +# define MSGPACK_HW_SIMD_X86_AMD_AVAILABLE +#endif + +#define MSGPACK_HW_SIMD_X86_AMD_NAME "x86 (AMD) SIMD" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_HW_SIMD_X86_AMD, MSGPACK_HW_SIMD_X86_AMD_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/x86_amd/versions.h b/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/x86_amd/versions.h new file mode 100755 index 0000000000000000000000000000000000000000..0bd4529985f56af3461aa467addda81f6828cacf --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/hardware/simd/x86_amd/versions.h @@ -0,0 +1,51 @@ +/* +Copyright Charly Chevalier 2015 +Copyright Joel Falcou 2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_HARDWARE_SIMD_X86_AMD_VERSIONS_H +#define MSGPACK_PREDEF_HARDWARE_SIMD_X86_AMD_VERSIONS_H + +#include + +/*` + Those defines represent x86 (AMD specific) SIMD extensions versions. + + [note You *MUST* compare them with the predef `MSGPACK_HW_SIMD_X86_AMD`.] + */ + + +// --------------------------------- + +/*` + [heading `MSGPACK_HW_SIMD_X86_SSE4A_VERSION`] + + [@https://en.wikipedia.org/wiki/SSE4##SSE4A SSE4A] x86 extension (AMD specific). + + Version number is: *4.0.0*. + */ +#define MSGPACK_HW_SIMD_X86_AMD_SSE4A_VERSION MSGPACK_VERSION_NUMBER(4, 0, 0) + +/*` + [heading `MSGPACK_HW_SIMD_X86_FMA4_VERSION`] + + [@https://en.wikipedia.org/wiki/FMA_instruction_set#FMA4_instruction_set FMA4] x86 extension (AMD specific). + + Version number is: *5.1.0*. + */ +#define MSGPACK_HW_SIMD_X86_AMD_FMA4_VERSION MSGPACK_VERSION_NUMBER(5, 1, 0) + +/*` + [heading `MSGPACK_HW_SIMD_X86_XOP_VERSION`] + + [@https://en.wikipedia.org/wiki/XOP_instruction_set XOP] x86 extension (AMD specific). + + Version number is: *5.1.1*. + */ +#define MSGPACK_HW_SIMD_X86_AMD_XOP_VERSION MSGPACK_VERSION_NUMBER(5, 1, 1) + + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/language.h b/msgpackc/2.1.5/include/msgpack/predef/language.h new file mode 100755 index 0000000000000000000000000000000000000000..7652c32cb68e72d37edfc798e2f6a962a542d234 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/language.h @@ -0,0 +1,17 @@ +/* +Copyright Rene Rivera 2011-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#if !defined(MSGPACK_PREDEF_LANGUAGE_H) || defined(MSGPACK_PREDEF_INTERNAL_GENERATE_TESTS) +#ifndef MSGPACK_PREDEF_LANGUAGE_H +#define MSGPACK_PREDEF_LANGUAGE_H +#endif + +#include +#include +#include + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/language/objc.h b/msgpackc/2.1.5/include/msgpack/predef/language/objc.h new file mode 100755 index 0000000000000000000000000000000000000000..ee201debf46fcc5acb813843b3d43ebf6b5652af --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/language/objc.h @@ -0,0 +1,42 @@ +/* +Copyright Rene Rivera 2011-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_LANGUAGE_OBJC_H +#define MSGPACK_PREDEF_LANGUAGE_OBJC_H + +#include +#include + +/*` +[heading `MSGPACK_LANG_OBJC`] + +[@http://en.wikipedia.org/wiki/Objective-C Objective-C] language. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__OBJC__`] [__predef_detection__]] + ] + */ + +#define MSGPACK_LANG_OBJC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__OBJC__) +# undef MSGPACK_LANG_OBJC +# define MSGPACK_LANG_OBJC MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_LANG_OBJC +# define MSGPACK_LANG_OBJC_AVAILABLE +#endif + +#define MSGPACK_LANG_OBJC_NAME "Objective-C" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LANG_OBJC,MSGPACK_LANG_OBJC_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/language/stdc.h b/msgpackc/2.1.5/include/msgpack/predef/language/stdc.h new file mode 100755 index 0000000000000000000000000000000000000000..5c91650546864a81f4da2d907a0fb9095a07ffcc --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/language/stdc.h @@ -0,0 +1,53 @@ +/* +Copyright Rene Rivera 2011-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_LANGUAGE_STDC_H +#define MSGPACK_PREDEF_LANGUAGE_STDC_H + +#include +#include + +/*` +[heading `MSGPACK_LANG_STDC`] + +[@http://en.wikipedia.org/wiki/C_(programming_language) Standard C] language. +If available, the year of the standard is detected as YYYY.MM.1 from the Epoc date. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__STDC__`] [__predef_detection__]] + + [[`__STDC_VERSION__`] [V.R.P]] + ] + */ + +#define MSGPACK_LANG_STDC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__STDC__) +# undef MSGPACK_LANG_STDC +# if defined(__STDC_VERSION__) +# if (__STDC_VERSION__ > 100) +# define MSGPACK_LANG_STDC MSGPACK_PREDEF_MAKE_YYYYMM(__STDC_VERSION__) +# else +# define MSGPACK_LANG_STDC MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +# else +# define MSGPACK_LANG_STDC MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_LANG_STDC +# define MSGPACK_LANG_STDC_AVAILABLE +#endif + +#define MSGPACK_LANG_STDC_NAME "Standard C" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LANG_STDC,MSGPACK_LANG_STDC_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/language/stdcpp.h b/msgpackc/2.1.5/include/msgpack/predef/language/stdcpp.h new file mode 100755 index 0000000000000000000000000000000000000000..07f1024d36c7948fd6dcff880f05c03c9feedcba --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/language/stdcpp.h @@ -0,0 +1,121 @@ +/* +Copyright Rene Rivera 2011-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_LANGUAGE_STDCPP_H +#define MSGPACK_PREDEF_LANGUAGE_STDCPP_H + +#include +#include + +/*` +[heading `MSGPACK_LANG_STDCPP`] + +[@http://en.wikipedia.org/wiki/C%2B%2B Standard C++] language. +If available, the year of the standard is detected as YYYY.MM.1 from the Epoc date. +Because of the way the C++ standardization process works the +defined version year will not be the commonly known year of the standard. +Specifically the defined versions are: + +[table Detected Version Number vs. C++ Standard Year + [[Detected Version Number] [Standard Year] [C++ Standard]] + [[27.11.1] [1998] [ISO/IEC 14882:1998]] + [[41.12.1] [2011] [ISO/IEC 14882:2011]] +] + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__cplusplus`] [__predef_detection__]] + + [[`__cplusplus`] [YYYY.MM.1]] + ] + */ + +#define MSGPACK_LANG_STDCPP MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__cplusplus) +# undef MSGPACK_LANG_STDCPP +# if (__cplusplus > 100) +# define MSGPACK_LANG_STDCPP MSGPACK_PREDEF_MAKE_YYYYMM(__cplusplus) +# else +# define MSGPACK_LANG_STDCPP MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_LANG_STDCPP +# define MSGPACK_LANG_STDCPP_AVAILABLE +#endif + +#define MSGPACK_LANG_STDCPP_NAME "Standard C++" + +/*` +[heading `MSGPACK_LANG_STDCPPCLI`] + +[@http://en.wikipedia.org/wiki/C%2B%2B/CLI Standard C++/CLI] language. +If available, the year of the standard is detected as YYYY.MM.1 from the Epoc date. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__cplusplus_cli`] [__predef_detection__]] + + [[`__cplusplus_cli`] [YYYY.MM.1]] + ] + */ + +#define MSGPACK_LANG_STDCPPCLI MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__cplusplus_cli) +# undef MSGPACK_LANG_STDCPPCLI +# if (__cplusplus_cli > 100) +# define MSGPACK_LANG_STDCPPCLI MSGPACK_PREDEF_MAKE_YYYYMM(__cplusplus_cli) +# else +# define MSGPACK_LANG_STDCPPCLI MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_LANG_STDCPPCLI +# define MSGPACK_LANG_STDCPPCLI_AVAILABLE +#endif + +#define MSGPACK_LANG_STDCPPCLI_NAME "Standard C++/CLI" + +/*` +[heading `MSGPACK_LANG_STDECPP`] + +[@http://en.wikipedia.org/wiki/Embedded_C%2B%2B Standard Embedded C++] language. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__embedded_cplusplus`] [__predef_detection__]] + ] + */ + +#define MSGPACK_LANG_STDECPP MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__embedded_cplusplus) +# undef MSGPACK_LANG_STDECPP +# define MSGPACK_LANG_STDECPP MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_LANG_STDECPP +# define MSGPACK_LANG_STDECPP_AVAILABLE +#endif + +#define MSGPACK_LANG_STDECPP_NAME "Standard Embedded C++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LANG_STDCPP,MSGPACK_LANG_STDCPP_NAME) + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LANG_STDCPPCLI,MSGPACK_LANG_STDCPPCLI_NAME) + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LANG_STDECPP,MSGPACK_LANG_STDECPP_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/library.h b/msgpackc/2.1.5/include/msgpack/predef/library.h new file mode 100755 index 0000000000000000000000000000000000000000..3c96c4b979e50054c374ceaf3cbb670f6b80f2b1 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/library.h @@ -0,0 +1,16 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#if !defined(MSGPACK_PREDEF_LIBRARY_H) || defined(MSGPACK_PREDEF_INTERNAL_GENERATE_TESTS) +#ifndef MSGPACK_PREDEF_LIBRARY_H +#define MSGPACK_PREDEF_LIBRARY_H +#endif + +#include +#include + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/library/c.h b/msgpackc/2.1.5/include/msgpack/predef/library/c.h new file mode 100755 index 0000000000000000000000000000000000000000..2817bf91f18459082b2b12dc36bf2a6c4ef73c5b --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/library/c.h @@ -0,0 +1,20 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#if !defined(MSGPACK_PREDEF_LIBRARY_C_H) || defined(MSGPACK_PREDEF_INTERNAL_GENERATE_TESTS) +#ifndef MSGPACK_PREDEF_LIBRARY_C_H +#define MSGPACK_PREDEF_LIBRARY_C_H +#endif + +#include + +#include +#include +#include +#include + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/library/c/_prefix.h b/msgpackc/2.1.5/include/msgpack/predef/library/c/_prefix.h new file mode 100755 index 0000000000000000000000000000000000000000..d16c373bcc1657ec7348c52eb5976d53e9377432 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/library/c/_prefix.h @@ -0,0 +1,13 @@ +/* +Copyright Rene Rivera 2008-2013 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_LIBRARY_C__PREFIX_H +#define MSGPACK_PREDEF_LIBRARY_C__PREFIX_H + +#include + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/library/c/gnu.h b/msgpackc/2.1.5/include/msgpack/predef/library/c/gnu.h new file mode 100755 index 0000000000000000000000000000000000000000..0d890320516911c4f0e479c39600eb36b1d0dacf --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/library/c/gnu.h @@ -0,0 +1,61 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_LIBRARY_C_GNU_H +#define MSGPACK_PREDEF_LIBRARY_C_GNU_H + +#include +#include + +#include + +#if defined(__STDC__) +#include +#elif defined(__cplusplus) +#include +#endif + +/*` +[heading `MSGPACK_LIB_C_GNU`] + +[@http://en.wikipedia.org/wiki/Glibc GNU glibc] Standard C library. +Version number available as major, and minor. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__GLIBC__`] [__predef_detection__]] + [[`__GNU_LIBRARY__`] [__predef_detection__]] + + [[`__GLIBC__`, `__GLIBC_MINOR__`] [V.R.0]] + [[`__GNU_LIBRARY__`, `__GNU_LIBRARY_MINOR__`] [V.R.0]] + ] + */ + +#define MSGPACK_LIB_C_GNU MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__GLIBC__) || defined(__GNU_LIBRARY__) +# undef MSGPACK_LIB_C_GNU +# if defined(__GLIBC__) +# define MSGPACK_LIB_C_GNU \ + MSGPACK_VERSION_NUMBER(__GLIBC__,__GLIBC_MINOR__,0) +# else +# define MSGPACK_LIB_C_GNU \ + MSGPACK_VERSION_NUMBER(__GNU_LIBRARY__,__GNU_LIBRARY_MINOR__,0) +# endif +#endif + +#if MSGPACK_LIB_C_GNU +# define MSGPACK_LIB_C_GNU_AVAILABLE +#endif + +#define MSGPACK_LIB_C_GNU_NAME "GNU" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_C_GNU,MSGPACK_LIB_C_GNU_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/library/c/uc.h b/msgpackc/2.1.5/include/msgpack/predef/library/c/uc.h new file mode 100755 index 0000000000000000000000000000000000000000..39893d4d344b52912b7943930f9277e5e49d3281 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/library/c/uc.h @@ -0,0 +1,47 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_LIBRARY_C_UC_H +#define MSGPACK_PREDEF_LIBRARY_C_UC_H + +#include + +#include +#include + +/*` +[heading `MSGPACK_LIB_C_UC`] + +[@http://en.wikipedia.org/wiki/Uclibc uClibc] Standard C library. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__UCLIBC__`] [__predef_detection__]] + + [[`__UCLIBC_MAJOR__`, `__UCLIBC_MINOR__`, `__UCLIBC_SUBLEVEL__`] [V.R.P]] + ] + */ + +#define MSGPACK_LIB_C_UC MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__UCLIBC__) +# undef MSGPACK_LIB_C_UC +# define MSGPACK_LIB_C_UC MSGPACK_VERSION_NUMBER(\ + __UCLIBC_MAJOR__,__UCLIBC_MINOR__,__UCLIBC_SUBLEVEL__) +#endif + +#if MSGPACK_LIB_C_UC +# define MSGPACK_LIB_C_UC_AVAILABLE +#endif + +#define MSGPACK_LIB_C_UC_NAME "uClibc" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_C_UC,MSGPACK_LIB_C_UC_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/library/c/vms.h b/msgpackc/2.1.5/include/msgpack/predef/library/c/vms.h new file mode 100755 index 0000000000000000000000000000000000000000..35253649ee2e293e3651ff4a13e32d0e9dd1e1c1 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/library/c/vms.h @@ -0,0 +1,47 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_LIBRARY_C_VMS_H +#define MSGPACK_PREDEF_LIBRARY_C_VMS_H + +#include + +#include +#include + +/*` +[heading `MSGPACK_LIB_C_VMS`] + +VMS libc Standard C library. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__CRTL_VER`] [__predef_detection__]] + + [[`__CRTL_VER`] [V.R.P]] + ] + */ + +#define MSGPACK_LIB_C_VMS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__CRTL_VER) +# undef MSGPACK_LIB_C_VMS +# define MSGPACK_LIB_C_VMS MSGPACK_PREDEF_MAKE_10_VVRR0PP00(__CRTL_VER) +#endif + +#if MSGPACK_LIB_C_VMS +# define MSGPACK_LIB_C_VMS_AVAILABLE +#endif + +#define MSGPACK_LIB_C_VMS_NAME "VMS" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_C_VMS,MSGPACK_LIB_C_VMS_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/library/c/zos.h b/msgpackc/2.1.5/include/msgpack/predef/library/c/zos.h new file mode 100755 index 0000000000000000000000000000000000000000..9bae6ef78aea53bf703118c9f0876999b87379fb --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/library/c/zos.h @@ -0,0 +1,56 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_LIBRARY_C_ZOS_H +#define MSGPACK_PREDEF_LIBRARY_C_ZOS_H + +#include + +#include +#include + +/*` +[heading `MSGPACK_LIB_C_ZOS`] + +z/OS libc Standard C library. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__LIBREL__`] [__predef_detection__]] + + [[`__LIBREL__`] [V.R.P]] + [[`__TARGET_LIB__`] [V.R.P]] + ] + */ + +#define MSGPACK_LIB_C_ZOS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__LIBREL__) +# undef MSGPACK_LIB_C_ZOS +# if !defined(MSGPACK_LIB_C_ZOS) && defined(__LIBREL__) +# define MSGPACK_LIB_C_ZOS MSGPACK_PREDEF_MAKE_0X_VRRPPPP(__LIBREL__) +# endif +# if !defined(MSGPACK_LIB_C_ZOS) && defined(__TARGET_LIB__) +# define MSGPACK_LIB_C_ZOS MSGPACK_PREDEF_MAKE_0X_VRRPPPP(__TARGET_LIB__) +# endif +# if !defined(MSGPACK_LIB_C_ZOS) +# define MSGPACK_LIB_C_ZOS MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_LIB_C_ZOS +# define MSGPACK_LIB_C_ZOS_AVAILABLE +#endif + +#define MSGPACK_LIB_C_ZOS_NAME "z/OS" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_C_ZOS,MSGPACK_LIB_C_ZOS_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/library/std.h b/msgpackc/2.1.5/include/msgpack/predef/library/std.h new file mode 100755 index 0000000000000000000000000000000000000000..14ff2bffa844641307e553074253ec0490e92a73 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/library/std.h @@ -0,0 +1,25 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ +#if !defined(MSGPACK_PREDEF_LIBRARY_STD_H) || defined(MSGPACK_PREDEF_INTERNAL_GENERATE_TESTS) +#ifndef MSGPACK_PREDEF_LIBRARY_STD_H +#define MSGPACK_PREDEF_LIBRARY_STD_H +#endif + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/library/std/_prefix.h b/msgpackc/2.1.5/include/msgpack/predef/library/std/_prefix.h new file mode 100755 index 0000000000000000000000000000000000000000..6f9f56649dd35d65ab51d96658c48635f464f002 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/library/std/_prefix.h @@ -0,0 +1,23 @@ +/* +Copyright Rene Rivera 2008-2013 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ +#ifndef MSGPACK_PREDEF_LIBRARY_STD__PREFIX_H +#define MSGPACK_PREDEF_LIBRARY_STD__PREFIX_H + +/* +We need to include an STD header to gives us the context +of which library we are using. The "smallest" code-wise header +seems to be . Boost uses but as far +as I can tell (RR) it's not a stand-alone header in most +implementations. Using also has the benefit of +being available in EC++, so we get a chance to make this work +for embedded users. And since it's not a header impacted by TR1 +there's no magic needed for inclusion in the face of the +Boost.TR1 library. +*/ +#include + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/library/std/cxx.h b/msgpackc/2.1.5/include/msgpack/predef/library/std/cxx.h new file mode 100755 index 0000000000000000000000000000000000000000..605184481ede68b9bc3f1e82330ee4f798a195a9 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/library/std/cxx.h @@ -0,0 +1,46 @@ +/* +Copyright Rene Rivera 2011-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_LIBRARY_STD_CXX_H +#define MSGPACK_PREDEF_LIBRARY_STD_CXX_H + +#include + +#include +#include + +/*` +[heading `MSGPACK_LIB_STD_CXX`] + +[@http://libcxx.llvm.org/ libc++] C++ Standard Library. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`_LIBCPP_VERSION`] [__predef_detection__]] + + [[`_LIBCPP_VERSION`] [V.0.P]] + ] + */ + +#define MSGPACK_LIB_STD_CXX MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(_LIBCPP_VERSION) +# undef MSGPACK_LIB_STD_CXX +# define MSGPACK_LIB_STD_CXX MSGPACK_PREDEF_MAKE_10_VPPP(_LIBCPP_VERSION) +#endif + +#if MSGPACK_LIB_STD_CXX +# define MSGPACK_LIB_STD_CXX_AVAILABLE +#endif + +#define MSGPACK_LIB_STD_CXX_NAME "libc++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_CXX,MSGPACK_LIB_STD_CXX_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/library/std/dinkumware.h b/msgpackc/2.1.5/include/msgpack/predef/library/std/dinkumware.h new file mode 100755 index 0000000000000000000000000000000000000000..7e82bda1d6d9ee0f09f0aeff13f48c185f35c2b7 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/library/std/dinkumware.h @@ -0,0 +1,52 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_LIBRARY_STD_DINKUMWARE_H +#define MSGPACK_PREDEF_LIBRARY_STD_DINKUMWARE_H + +#include + +#include +#include + +/*` +[heading `MSGPACK_LIB_STD_DINKUMWARE`] + +[@http://en.wikipedia.org/wiki/Dinkumware Dinkumware] Standard C++ Library. +If available version number as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`_YVALS`, `__IBMCPP__`] [__predef_detection__]] + [[`_CPPLIB_VER`] [__predef_detection__]] + + [[`_CPPLIB_VER`] [V.R.0]] + ] + */ + +#define MSGPACK_LIB_STD_DINKUMWARE MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if (defined(_YVALS) && !defined(__IBMCPP__)) || defined(_CPPLIB_VER) +# undef MSGPACK_LIB_STD_DINKUMWARE +# if defined(_CPPLIB_VER) +# define MSGPACK_LIB_STD_DINKUMWARE MSGPACK_PREDEF_MAKE_10_VVRR(_CPPLIB_VER) +# else +# define MSGPACK_LIB_STD_DINKUMWARE MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_LIB_STD_DINKUMWARE +# define MSGPACK_LIB_STD_DINKUMWARE_AVAILABLE +#endif + +#define MSGPACK_LIB_STD_DINKUMWARE_NAME "Dinkumware" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_DINKUMWARE,MSGPACK_LIB_STD_DINKUMWARE_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/library/std/libcomo.h b/msgpackc/2.1.5/include/msgpack/predef/library/std/libcomo.h new file mode 100755 index 0000000000000000000000000000000000000000..54f58b5247cfae9e294faad50d65882d8ba500a8 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/library/std/libcomo.h @@ -0,0 +1,47 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_LIBRARY_STD_LIBCOMO_H +#define MSGPACK_PREDEF_LIBRARY_STD_LIBCOMO_H + +#include + +#include +#include + +/*` +[heading `MSGPACK_LIB_STD_COMO`] + +[@http://www.comeaucomputing.com/libcomo/ Comeau Computing] Standard C++ Library. +Version number available as major. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__LIBCOMO__`] [__predef_detection__]] + + [[`__LIBCOMO_VERSION__`] [V.0.0]] + ] + */ + +#define MSGPACK_LIB_STD_COMO MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__LIBCOMO__) +# undef MSGPACK_LIB_STD_COMO +# define MSGPACK_LIB_STD_COMO MSGPACK_VERSION_NUMBER(__LIBCOMO_VERSION__,0,0) +#endif + +#if MSGPACK_LIB_STD_COMO +# define MSGPACK_LIB_STD_COMO_AVAILABLE +#endif + +#define MSGPACK_LIB_STD_COMO_NAME "Comeau Computing" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_COMO,MSGPACK_LIB_STD_COMO_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/library/std/modena.h b/msgpackc/2.1.5/include/msgpack/predef/library/std/modena.h new file mode 100755 index 0000000000000000000000000000000000000000..a8f750178696b5f97c264411de2d2af939f2e3a2 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/library/std/modena.h @@ -0,0 +1,45 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_LIBRARY_STD_MODENA_H +#define MSGPACK_PREDEF_LIBRARY_STD_MODENA_H + +#include + +#include +#include + +/*` +[heading `MSGPACK_LIB_STD_MSIPL`] + +[@http://modena.us/ Modena Software Lib++] Standard C++ Library. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`MSIPL_COMPILE_H`] [__predef_detection__]] + [[`__MSIPL_COMPILE_H`] [__predef_detection__]] + ] + */ + +#define MSGPACK_LIB_STD_MSIPL MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(MSIPL_COMPILE_H) || defined(__MSIPL_COMPILE_H) +# undef MSGPACK_LIB_STD_MSIPL +# define MSGPACK_LIB_STD_MSIPL MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_LIB_STD_MSIPL +# define MSGPACK_LIB_STD_MSIPL_AVAILABLE +#endif + +#define MSGPACK_LIB_STD_MSIPL_NAME "Modena Software Lib++" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_MSIPL,MSGPACK_LIB_STD_MSIPL_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/library/std/msl.h b/msgpackc/2.1.5/include/msgpack/predef/library/std/msl.h new file mode 100755 index 0000000000000000000000000000000000000000..187a6e1d52ca023578e40ccf1c62e9376b0cec78 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/library/std/msl.h @@ -0,0 +1,53 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_LIBRARY_STD_MSL_H +#define MSGPACK_PREDEF_LIBRARY_STD_MSL_H + +#include + +#include +#include + +/*` +[heading `MSGPACK_LIB_STD_MSL`] + +[@http://www.freescale.com/ Metrowerks] Standard C++ Library. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__MSL_CPP__`] [__predef_detection__]] + [[`__MSL__`] [__predef_detection__]] + + [[`__MSL_CPP__`] [V.R.P]] + [[`__MSL__`] [V.R.P]] + ] + */ + +#define MSGPACK_LIB_STD_MSL MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__MSL_CPP__) || defined(__MSL__) +# undef MSGPACK_LIB_STD_MSL +# if defined(__MSL_CPP__) +# define MSGPACK_LIB_STD_MSL MSGPACK_PREDEF_MAKE_0X_VRPP(__MSL_CPP__) +# else +# define MSGPACK_LIB_STD_MSL MSGPACK_PREDEF_MAKE_0X_VRPP(__MSL__) +# endif +#endif + +#if MSGPACK_LIB_STD_MSL +# define MSGPACK_LIB_STD_MSL_AVAILABLE +#endif + +#define MSGPACK_LIB_STD_MSL_NAME "Metrowerks" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_MSL,MSGPACK_LIB_STD_MSL_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/library/std/roguewave.h b/msgpackc/2.1.5/include/msgpack/predef/library/std/roguewave.h new file mode 100755 index 0000000000000000000000000000000000000000..94ccaf9c2dfb29d941289c50329b30b43612f706 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/library/std/roguewave.h @@ -0,0 +1,56 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_LIBRARY_STD_ROGUEWAVE_H +#define MSGPACK_PREDEF_LIBRARY_STD_ROGUEWAVE_H + +#include + +#include +#include + +/*` +[heading `MSGPACK_LIB_STD_RW`] + +[@http://stdcxx.apache.org/ Roguewave] Standard C++ library. +If available version number as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__STD_RWCOMPILER_H__`] [__predef_detection__]] + [[`_RWSTD_VER`] [__predef_detection__]] + + [[`_RWSTD_VER`] [V.R.P]] + ] + */ + +#define MSGPACK_LIB_STD_RW MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER) +# undef MSGPACK_LIB_STD_RW +# if defined(_RWSTD_VER) +# if _RWSTD_VER < 0x010000 +# define MSGPACK_LIB_STD_RW MSGPACK_PREDEF_MAKE_0X_VVRRP(_RWSTD_VER) +# else +# define MSGPACK_LIB_STD_RW MSGPACK_PREDEF_MAKE_0X_VVRRPP(_RWSTD_VER) +# endif +# else +# define MSGPACK_LIB_STD_RW MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_LIB_STD_RW +# define MSGPACK_LIB_STD_RW_AVAILABLE +#endif + +#define MSGPACK_LIB_STD_RW_NAME "Roguewave" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_RW,MSGPACK_LIB_STD_RW_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/library/std/sgi.h b/msgpackc/2.1.5/include/msgpack/predef/library/std/sgi.h new file mode 100755 index 0000000000000000000000000000000000000000..b23b9ed37c95d4cc16403bfbe4fe5f916cf7598a --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/library/std/sgi.h @@ -0,0 +1,51 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_LIBRARY_STD_SGI_H +#define MSGPACK_PREDEF_LIBRARY_STD_SGI_H + +#include + +#include +#include + +/*` +[heading `MSGPACK_LIB_STD_SGI`] + +[@http://www.sgi.com/tech/stl/ SGI] Standard C++ library. +If available version number as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__STL_CONFIG_H`] [__predef_detection__]] + + [[`__SGI_STL`] [V.R.P]] + ] + */ + +#define MSGPACK_LIB_STD_SGI MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__STL_CONFIG_H) +# undef MSGPACK_LIB_STD_SGI +# if defined(__SGI_STL) +# define MSGPACK_LIB_STD_SGI MSGPACK_PREDEF_MAKE_0X_VRP(__SGI_STL) +# else +# define MSGPACK_LIB_STD_SGI MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_LIB_STD_SGI +# define MSGPACK_LIB_STD_SGI_AVAILABLE +#endif + +#define MSGPACK_LIB_STD_SGI_NAME "SGI" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_SGI,MSGPACK_LIB_STD_SGI_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/library/std/stdcpp3.h b/msgpackc/2.1.5/include/msgpack/predef/library/std/stdcpp3.h new file mode 100755 index 0000000000000000000000000000000000000000..6a5de28ad2fe2a4e11186d2dfb0362be1912f7be --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/library/std/stdcpp3.h @@ -0,0 +1,53 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_LIBRARY_STD_STDCPP3_H +#define MSGPACK_PREDEF_LIBRARY_STD_STDCPP3_H + +#include + +#include +#include + +/*` +[heading `MSGPACK_LIB_STD_GNU`] + +[@http://gcc.gnu.org/libstdc++/ GNU libstdc++] Standard C++ library. +Version number available as year (from 1970), month, and day. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__GLIBCXX__`] [__predef_detection__]] + [[`__GLIBCPP__`] [__predef_detection__]] + + [[`__GLIBCXX__`] [V.R.P]] + [[`__GLIBCPP__`] [V.R.P]] + ] + */ + +#define MSGPACK_LIB_STD_GNU MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__GLIBCPP__) || defined(__GLIBCXX__) +# undef MSGPACK_LIB_STD_GNU +# if defined(__GLIBCXX__) +# define MSGPACK_LIB_STD_GNU MSGPACK_PREDEF_MAKE_YYYYMMDD(__GLIBCXX__) +# else +# define MSGPACK_LIB_STD_GNU MSGPACK_PREDEF_MAKE_YYYYMMDD(__GLIBCPP__) +# endif +#endif + +#if MSGPACK_LIB_STD_GNU +# define MSGPACK_LIB_STD_GNU_AVAILABLE +#endif + +#define MSGPACK_LIB_STD_GNU_NAME "GNU" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_GNU,MSGPACK_LIB_STD_GNU_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/library/std/stlport.h b/msgpackc/2.1.5/include/msgpack/predef/library/std/stlport.h new file mode 100755 index 0000000000000000000000000000000000000000..667ff04f165a3d84b47cf510967bff6bb0e92444 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/library/std/stlport.h @@ -0,0 +1,59 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_LIBRARY_STD_STLPORT_H +#define MSGPACK_PREDEF_LIBRARY_STD_STLPORT_H + +#include + +#include +#include + +/*` +[heading `MSGPACK_LIB_STD_STLPORT`] + +[@http://sourceforge.net/projects/stlport/ STLport Standard C++] library. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__SGI_STL_PORT`] [__predef_detection__]] + [[`_STLPORT_VERSION`] [__predef_detection__]] + + [[`_STLPORT_MAJOR`, `_STLPORT_MINOR`, `_STLPORT_PATCHLEVEL`] [V.R.P]] + [[`_STLPORT_VERSION`] [V.R.P]] + [[`__SGI_STL_PORT`] [V.R.P]] + ] + */ + +#define MSGPACK_LIB_STD_STLPORT MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION) +# undef MSGPACK_LIB_STD_STLPORT +# if !defined(MSGPACK_LIB_STD_STLPORT) && defined(_STLPORT_MAJOR) +# define MSGPACK_LIB_STD_STLPORT \ + MSGPACK_VERSION_NUMBER(_STLPORT_MAJOR,_STLPORT_MINOR,_STLPORT_PATCHLEVEL) +# endif +# if !defined(MSGPACK_LIB_STD_STLPORT) && defined(_STLPORT_VERSION) +# define MSGPACK_LIB_STD_STLPORT MSGPACK_PREDEF_MAKE_0X_VRP(_STLPORT_VERSION) +# endif +# if !defined(MSGPACK_LIB_STD_STLPORT) +# define MSGPACK_LIB_STD_STLPORT MSGPACK_PREDEF_MAKE_0X_VRP(__SGI_STL_PORT) +# endif +#endif + +#if MSGPACK_LIB_STD_STLPORT +# define MSGPACK_LIB_STD_STLPORT_AVAILABLE +#endif + +#define MSGPACK_LIB_STD_STLPORT_NAME "STLport" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_STLPORT,MSGPACK_LIB_STD_STLPORT_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/library/std/vacpp.h b/msgpackc/2.1.5/include/msgpack/predef/library/std/vacpp.h new file mode 100755 index 0000000000000000000000000000000000000000..4b4adac908d13e44b963f0d87ab4ab66b35b518a --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/library/std/vacpp.h @@ -0,0 +1,44 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_LIBRARY_STD_VACPP_H +#define MSGPACK_PREDEF_LIBRARY_STD_VACPP_H + +#include + +#include +#include + +/*` +[heading `MSGPACK_LIB_STD_IBM`] + +[@http://www.ibm.com/software/awdtools/xlcpp/ IBM VACPP Standard C++] library. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__IBMCPP__`] [__predef_detection__]] + ] + */ + +#define MSGPACK_LIB_STD_IBM MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__IBMCPP__) +# undef MSGPACK_LIB_STD_IBM +# define MSGPACK_LIB_STD_IBM MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_LIB_STD_IBM +# define MSGPACK_LIB_STD_IBM_AVAILABLE +#endif + +#define MSGPACK_LIB_STD_IBM_NAME "IBM VACPP" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_LIB_STD_IBM,MSGPACK_LIB_STD_IBM_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/make.h b/msgpackc/2.1.5/include/msgpack/predef/make.h new file mode 100755 index 0000000000000000000000000000000000000000..a0d8b128c991fe0f0e2fe5ac0e530ae247ce32eb --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/make.h @@ -0,0 +1,89 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ +#include + +#ifndef MSGPACK_PREDEF_MAKE_H +#define MSGPACK_PREDEF_MAKE_H + +/* +Shorthands for the common version number formats used by vendors... +*/ + +/*` +[heading `MSGPACK_PREDEF_MAKE_..` macros] + +These set of macros decompose common vendor version number +macros which are composed version, revision, and patch digits. +The naming convention indicates: + +* The base of the specified version number. "`MSGPACK_PREDEF_MAKE_0X`" for + hexadecimal digits, and "`MSGPACK_PREDEF_MAKE_10`" for decimal digits. +* The format of the vendor version number. Where "`V`" indicates the version digits, + "`R`" indicates the revision digits, "`P`" indicates the patch digits, and "`0`" + indicates an ignored digit. + +Macros are: +*/ +/*` `MSGPACK_PREDEF_MAKE_0X_VRP(V)` */ +#define MSGPACK_PREDEF_MAKE_0X_VRP(V) MSGPACK_VERSION_NUMBER((V&0xF00)>>8,(V&0xF0)>>4,(V&0xF)) +/*` `MSGPACK_PREDEF_MAKE_0X_VVRP(V)` */ +#define MSGPACK_PREDEF_MAKE_0X_VVRP(V) MSGPACK_VERSION_NUMBER((V&0xFF00)>>8,(V&0xF0)>>4,(V&0xF)) +/*` `MSGPACK_PREDEF_MAKE_0X_VRPP(V)` */ +#define MSGPACK_PREDEF_MAKE_0X_VRPP(V) MSGPACK_VERSION_NUMBER((V&0xF000)>>12,(V&0xF00)>>8,(V&0xFF)) +/*` `MSGPACK_PREDEF_MAKE_0X_VVRR(V)` */ +#define MSGPACK_PREDEF_MAKE_0X_VVRR(V) MSGPACK_VERSION_NUMBER((V&0xFF00)>>8,(V&0xFF),0) +/*` `MSGPACK_PREDEF_MAKE_0X_VRRPPPP(V)` */ +#define MSGPACK_PREDEF_MAKE_0X_VRRPPPP(V) MSGPACK_VERSION_NUMBER((V&0xF000000)>>24,(V&0xFF0000)>>16,(V&0xFFFF)) +/*` `MSGPACK_PREDEF_MAKE_0X_VVRRP(V)` */ +#define MSGPACK_PREDEF_MAKE_0X_VVRRP(V) MSGPACK_VERSION_NUMBER((V&0xFF000)>>12,(V&0xFF0)>>4,(V&0xF)) +/*` `MSGPACK_PREDEF_MAKE_0X_VRRPP000(V)` */ +#define MSGPACK_PREDEF_MAKE_0X_VRRPP000(V) MSGPACK_VERSION_NUMBER((V&0xF0000000)>>28,(V&0xFF00000)>>20,(V&0xFF000)>>12) +/*` `MSGPACK_PREDEF_MAKE_0X_VVRRPP(V)` */ +#define MSGPACK_PREDEF_MAKE_0X_VVRRPP(V) MSGPACK_VERSION_NUMBER((V&0xFF0000)>>16,(V&0xFF00)>>8,(V&0xFF)) +/*` `MSGPACK_PREDEF_MAKE_10_VPPP(V)` */ +#define MSGPACK_PREDEF_MAKE_10_VPPP(V) MSGPACK_VERSION_NUMBER(((V)/1000)%10,0,(V)%1000) +/*` `MSGPACK_PREDEF_MAKE_10_VRP(V)` */ +#define MSGPACK_PREDEF_MAKE_10_VRP(V) MSGPACK_VERSION_NUMBER(((V)/100)%10,((V)/10)%10,(V)%10) +/*` `MSGPACK_PREDEF_MAKE_10_VRP000(V)` */ +#define MSGPACK_PREDEF_MAKE_10_VRP000(V) MSGPACK_VERSION_NUMBER(((V)/100000)%10,((V)/10000)%10,((V)/1000)%10) +/*` `MSGPACK_PREDEF_MAKE_10_VRPP(V)` */ +#define MSGPACK_PREDEF_MAKE_10_VRPP(V) MSGPACK_VERSION_NUMBER(((V)/1000)%10,((V)/100)%10,(V)%100) +/*` `MSGPACK_PREDEF_MAKE_10_VRR(V)` */ +#define MSGPACK_PREDEF_MAKE_10_VRR(V) MSGPACK_VERSION_NUMBER(((V)/100)%10,(V)%100,0) +/*` `MSGPACK_PREDEF_MAKE_10_VRRPP(V)` */ +#define MSGPACK_PREDEF_MAKE_10_VRRPP(V) MSGPACK_VERSION_NUMBER(((V)/10000)%10,((V)/100)%100,(V)%100) +/*` `MSGPACK_PREDEF_MAKE_10_VRR000(V)` */ +#define MSGPACK_PREDEF_MAKE_10_VRR000(V) MSGPACK_VERSION_NUMBER(((V)/100000)%10,((V)/1000)%100,0) +/*` `MSGPACK_PREDEF_MAKE_10_VV00(V)` */ +#define MSGPACK_PREDEF_MAKE_10_VV00(V) MSGPACK_VERSION_NUMBER(((V)/100)%100,0,0) +/*` `MSGPACK_PREDEF_MAKE_10_VVRR(V)` */ +#define MSGPACK_PREDEF_MAKE_10_VVRR(V) MSGPACK_VERSION_NUMBER(((V)/100)%100,(V)%100,0) +/*` `MSGPACK_PREDEF_MAKE_10_VVRRPP(V)` */ +#define MSGPACK_PREDEF_MAKE_10_VVRRPP(V) MSGPACK_VERSION_NUMBER(((V)/10000)%100,((V)/100)%100,(V)%100) +/*` `MSGPACK_PREDEF_MAKE_10_VVRR0PP00(V)` */ +#define MSGPACK_PREDEF_MAKE_10_VVRR0PP00(V) MSGPACK_VERSION_NUMBER(((V)/10000000)%100,((V)/100000)%100,((V)/100)%100) +/*` `MSGPACK_PREDEF_MAKE_10_VVRR0PPPP(V)` */ +#define MSGPACK_PREDEF_MAKE_10_VVRR0PPPP(V) MSGPACK_VERSION_NUMBER(((V)/10000000)%100,((V)/100000)%100,(V)%10000) +/*` `MSGPACK_PREDEF_MAKE_10_VVRR00PP00(V)` */ +#define MSGPACK_PREDEF_MAKE_10_VVRR00PP00(V) MSGPACK_VERSION_NUMBER(((V)/100000000)%100,((V)/1000000)%100,((V)/100)%100) +/*` +[heading `MSGPACK_PREDEF_MAKE_*..` date macros] + +Date decomposition macros return a date in the relative to the 1970 +Epoch date. If the month is not available, January 1st is used as the month and day. +If the day is not available, but the month is, the 1st of the month is used as the day. +*/ +/*` `MSGPACK_PREDEF_MAKE_DATE(Y,M,D)` */ +#define MSGPACK_PREDEF_MAKE_DATE(Y,M,D) MSGPACK_VERSION_NUMBER((Y)%10000-1970,(M)%100,(D)%100) +/*` `MSGPACK_PREDEF_MAKE_YYYYMMDD(V)` */ +#define MSGPACK_PREDEF_MAKE_YYYYMMDD(V) MSGPACK_PREDEF_MAKE_DATE(((V)/10000)%10000,((V)/100)%100,(V)%100) +/*` `MSGPACK_PREDEF_MAKE_YYYY(V)` */ +#define MSGPACK_PREDEF_MAKE_YYYY(V) MSGPACK_PREDEF_MAKE_DATE(V,1,1) +/*` `MSGPACK_PREDEF_MAKE_YYYYMM(V)` */ +#define MSGPACK_PREDEF_MAKE_YYYYMM(V) MSGPACK_PREDEF_MAKE_DATE((V)/100,(V)%100,1) + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/os.h b/msgpackc/2.1.5/include/msgpack/predef/os.h new file mode 100755 index 0000000000000000000000000000000000000000..e08842066ae533668e8843f89b5f519434343eb1 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os.h @@ -0,0 +1,33 @@ +/* +Copyright Rene Rivera 2008-2015 +Copyright Franz Detro 2014 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#if !defined(MSGPACK_PREDEF_OS_H) || defined(MSGPACK_PREDEF_INTERNAL_GENERATE_TESTS) +#ifndef MSGPACK_PREDEF_OS_H +#define MSGPACK_PREDEF_OS_H +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/aix.h b/msgpackc/2.1.5/include/msgpack/predef/os/aix.h new file mode 100755 index 0000000000000000000000000000000000000000..fa7f61c53fb2d622174636a00cfab9b61cf81fee --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/aix.h @@ -0,0 +1,66 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_AIX_H +#define MSGPACK_PREDEF_OS_AIX_H + +#include +#include + +/*` +[heading `MSGPACK_OS_AIX`] + +[@http://en.wikipedia.org/wiki/AIX_operating_system IBM AIX] operating system. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`_AIX`] [__predef_detection__]] + [[`__TOS_AIX__`] [__predef_detection__]] + + [[`_AIX43`] [4.3.0]] + [[`_AIX41`] [4.1.0]] + [[`_AIX32`] [3.2.0]] + [[`_AIX3`] [3.0.0]] + ] + */ + +#define MSGPACK_OS_AIX MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(_AIX) || defined(__TOS_AIX__) \ + ) +# undef MSGPACK_OS_AIX +# if !defined(MSGPACK_OS_AIX) && defined(_AIX43) +# define MSGPACK_OS_AIX MSGPACK_VERSION_NUMBER(4,3,0) +# endif +# if !defined(MSGPACK_OS_AIX) && defined(_AIX41) +# define MSGPACK_OS_AIX MSGPACK_VERSION_NUMBER(4,1,0) +# endif +# if !defined(MSGPACK_OS_AIX) && defined(_AIX32) +# define MSGPACK_OS_AIX MSGPACK_VERSION_NUMBER(3,2,0) +# endif +# if !defined(MSGPACK_OS_AIX) && defined(_AIX3) +# define MSGPACK_OS_AIX MSGPACK_VERSION_NUMBER(3,0,0) +# endif +# if !defined(MSGPACK_OS_AIX) +# define MSGPACK_OS_AIX MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_OS_AIX +# define MSGPACK_OS_AIX_AVAILABLE +# include +#endif + +#define MSGPACK_OS_AIX_NAME "IBM AIX" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_AIX,MSGPACK_OS_AIX_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/amigaos.h b/msgpackc/2.1.5/include/msgpack/predef/os/amigaos.h new file mode 100755 index 0000000000000000000000000000000000000000..26493bca3e0b394bfd6aa3f18196c6e2e140789f --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/amigaos.h @@ -0,0 +1,46 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_AMIGAOS_H +#define MSGPACK_PREDEF_OS_AMIGAOS_H + +#include +#include + +/*` +[heading `MSGPACK_OS_AMIGAOS`] + +[@http://en.wikipedia.org/wiki/AmigaOS AmigaOS] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`AMIGA`] [__predef_detection__]] + [[`__amigaos__`] [__predef_detection__]] + ] + */ + +#define MSGPACK_OS_AMIGAOS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(AMIGA) || defined(__amigaos__) \ + ) +# undef MSGPACK_OS_AMIGAOS +# define MSGPACK_OS_AMIGAOS MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_OS_AMIGAOS +# define MSGPACK_OS_AMIGAOS_AVAILABLE +# include +#endif + +#define MSGPACK_OS_AMIGAOS_NAME "AmigaOS" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_AMIGAOS,MSGPACK_OS_AMIGAOS_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/android.h b/msgpackc/2.1.5/include/msgpack/predef/os/android.h new file mode 100755 index 0000000000000000000000000000000000000000..14195ea8ef211a4fc5283f0684c294163b5c0ce9 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/android.h @@ -0,0 +1,45 @@ +/* +Copyright Rene Rivera 2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_ADROID_H +#define MSGPACK_PREDEF_OS_ADROID_H + +#include +#include + +/*` +[heading `MSGPACK_OS_ANDROID`] + +[@http://en.wikipedia.org/wiki/Android_%28operating_system%29 Android] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__ANDROID__`] [__predef_detection__]] + ] + */ + +#define MSGPACK_OS_ANDROID MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(__ANDROID__) \ + ) +# undef MSGPACK_OS_ANDROID +# define MSGPACK_OS_ANDROID MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_OS_ANDROID +# define MSGPACK_OS_ANDROID_AVAILABLE +# include +#endif + +#define MSGPACK_OS_ANDROID_NAME "Android" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_ANDROID,MSGPACK_OS_ANDROID_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/beos.h b/msgpackc/2.1.5/include/msgpack/predef/os/beos.h new file mode 100755 index 0000000000000000000000000000000000000000..35f143a50cf6ce39f1cb4499490908e174f04a52 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/beos.h @@ -0,0 +1,45 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_BEOS_H +#define MSGPACK_PREDEF_OS_BEOS_H + +#include +#include + +/*` +[heading `MSGPACK_OS_BEOS`] + +[@http://en.wikipedia.org/wiki/BeOS BeOS] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__BEOS__`] [__predef_detection__]] + ] + */ + +#define MSGPACK_OS_BEOS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(__BEOS__) \ + ) +# undef MSGPACK_OS_BEOS +# define MSGPACK_OS_BEOS MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_OS_BEOS +# define MSGPACK_OS_BEOS_AVAILABLE +# include +#endif + +#define MSGPACK_OS_BEOS_NAME "BeOS" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_BEOS,MSGPACK_OS_BEOS_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/bsd.h b/msgpackc/2.1.5/include/msgpack/predef/os/bsd.h new file mode 100755 index 0000000000000000000000000000000000000000..90b251333b3895735e859e79ae3540fed8dd09a5 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/bsd.h @@ -0,0 +1,103 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_BSD_H +#define MSGPACK_PREDEF_OS_BSD_H + +/* Special case: OSX will define BSD predefs if the sys/param.h + * header is included. We can guard against that, but only if we + * detect OSX first. Hence we will force include OSX detection + * before doing any BSD detection. + */ +#include + +#include +#include + +/*` +[heading `MSGPACK_OS_BSD`] + +[@http://en.wikipedia.org/wiki/Berkeley_Software_Distribution BSD] operating system. + +BSD has various branch operating systems possible and each detected +individually. This detects the following variations and sets a specific +version number macro to match: + +* `MSGPACK_OS_BSD_DRAGONFLY` [@http://en.wikipedia.org/wiki/DragonFly_BSD DragonFly BSD] +* `MSGPACK_OS_BSD_FREE` [@http://en.wikipedia.org/wiki/Freebsd FreeBSD] +* `MSGPACK_OS_BSD_BSDI` [@http://en.wikipedia.org/wiki/BSD/OS BSDi BSD/OS] +* `MSGPACK_OS_BSD_NET` [@http://en.wikipedia.org/wiki/Netbsd NetBSD] +* `MSGPACK_OS_BSD_OPEN` [@http://en.wikipedia.org/wiki/Openbsd OpenBSD] + +[note The general `MSGPACK_OS_BSD` is set in all cases to indicate some form +of BSD. If the above variants is detected the corresponding macro is also set.] + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`BSD`] [__predef_detection__]] + [[`_SYSTYPE_BSD`] [__predef_detection__]] + + [[`BSD4_2`] [4.2.0]] + [[`BSD4_3`] [4.3.0]] + [[`BSD4_4`] [4.4.0]] + [[`BSD`] [V.R.0]] + ] + */ + +#include +#include +#include +#include +#include + +#ifndef MSGPACK_OS_BSD +#define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER_NOT_AVAILABLE +#endif + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(BSD) || \ + defined(_SYSTYPE_BSD) \ + ) +# undef MSGPACK_OS_BSD +# include +# if !defined(MSGPACK_OS_BSD) && defined(BSD4_4) +# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER(4,4,0) +# endif +# if !defined(MSGPACK_OS_BSD) && defined(BSD4_3) +# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER(4,3,0) +# endif +# if !defined(MSGPACK_OS_BSD) && defined(BSD4_2) +# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER(4,2,0) +# endif +# if !defined(MSGPACK_OS_BSD) && defined(BSD) +# define MSGPACK_OS_BSD MSGPACK_PREDEF_MAKE_10_VVRR(BSD) +# endif +# if !defined(MSGPACK_OS_BSD) +# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_OS_BSD +# define MSGPACK_OS_BSD_AVAILABLE +# include +#endif + +#define MSGPACK_OS_BSD_NAME "BSD" + +#else + +#include +#include +#include +#include +#include + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_BSD,MSGPACK_OS_BSD_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/bsd/bsdi.h b/msgpackc/2.1.5/include/msgpack/predef/os/bsd/bsdi.h new file mode 100755 index 0000000000000000000000000000000000000000..4718ee775ab9999cccd266a0b431adf12aea7881 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/bsd/bsdi.h @@ -0,0 +1,48 @@ +/* +Copyright Rene Rivera 2012-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_BSD_BSDI_H +#define MSGPACK_PREDEF_OS_BSD_BSDI_H + +#include + +/*` +[heading `MSGPACK_OS_BSD_BSDI`] + +[@http://en.wikipedia.org/wiki/BSD/OS BSDi BSD/OS] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__bsdi__`] [__predef_detection__]] + ] + */ + +#define MSGPACK_OS_BSD_BSDI MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(__bsdi__) \ + ) +# ifndef MSGPACK_OS_BSD_AVAILABLE +# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER_AVAILABLE +# define MSGPACK_OS_BSD_AVAILABLE +# endif +# undef MSGPACK_OS_BSD_BSDI +# define MSGPACK_OS_BSD_BSDI MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_OS_BSD_BSDI +# define MSGPACK_OS_BSD_BSDI_AVAILABLE +# include +#endif + +#define MSGPACK_OS_BSD_BSDI_NAME "BSDi BSD/OS" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_BSD_BSDI,MSGPACK_OS_BSD_BSDI_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/bsd/dragonfly.h b/msgpackc/2.1.5/include/msgpack/predef/os/bsd/dragonfly.h new file mode 100755 index 0000000000000000000000000000000000000000..fde6f24ec61c45881629c35479b993b56c5f707d --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/bsd/dragonfly.h @@ -0,0 +1,50 @@ +/* +Copyright Rene Rivera 2012-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_BSD_DRAGONFLY_H +#define MSGPACK_PREDEF_OS_BSD_DRAGONFLY_H + +#include + +/*` +[heading `MSGPACK_OS_BSD_DRAGONFLY`] + +[@http://en.wikipedia.org/wiki/DragonFly_BSD DragonFly BSD] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__DragonFly__`] [__predef_detection__]] + ] + */ + +#define MSGPACK_OS_BSD_DRAGONFLY MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(__DragonFly__) \ + ) +# ifndef MSGPACK_OS_BSD_AVAILABLE +# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER_AVAILABLE +# define MSGPACK_OS_BSD_AVAILABLE +# endif +# undef MSGPACK_OS_BSD_DRAGONFLY +# if defined(__DragonFly__) +# define MSGPACK_OS_DRAGONFLY_BSD MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_OS_BSD_DRAGONFLY +# define MSGPACK_OS_BSD_DRAGONFLY_AVAILABLE +# include +#endif + +#define MSGPACK_OS_BSD_DRAGONFLY_NAME "DragonFly BSD" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_BSD_DRAGONFLY,MSGPACK_OS_BSD_DRAGONFLY_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/bsd/free.h b/msgpackc/2.1.5/include/msgpack/predef/os/bsd/free.h new file mode 100755 index 0000000000000000000000000000000000000000..29cc2db4399ec21641033611c1284f5d720f21f7 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/bsd/free.h @@ -0,0 +1,60 @@ +/* +Copyright Rene Rivera 2012-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_BSD_FREE_H +#define MSGPACK_PREDEF_OS_BSD_FREE_H + +#include + +/*` +[heading `MSGPACK_OS_BSD_FREE`] + +[@http://en.wikipedia.org/wiki/Freebsd FreeBSD] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__FreeBSD__`] [__predef_detection__]] + + [[`__FreeBSD_version`] [V.R.P]] + ] + */ + +#define MSGPACK_OS_BSD_FREE MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(__FreeBSD__) \ + ) +# ifndef MSGPACK_OS_BSD_AVAILABLE +# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER_AVAILABLE +# define MSGPACK_OS_BSD_AVAILABLE +# endif +# undef MSGPACK_OS_BSD_FREE +# if defined(__FreeBSD_version) +# if __FreeBSD_version < 500000 +# define MSGPACK_OS_BSD_FREE \ + MSGPACK_PREDEF_MAKE_10_VRP000(__FreeBSD_version) +# else +# define MSGPACK_OS_BSD_FREE \ + MSGPACK_PREDEF_MAKE_10_VRR000(__FreeBSD_version) +# endif +# else +# define MSGPACK_OS_BSD_FREE MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_OS_BSD_FREE +# define MSGPACK_OS_BSD_FREE_AVAILABLE +# include +#endif + +#define MSGPACK_OS_BSD_FREE_NAME "Free BSD" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_BSD_FREE,MSGPACK_OS_BSD_FREE_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/bsd/net.h b/msgpackc/2.1.5/include/msgpack/predef/os/bsd/net.h new file mode 100755 index 0000000000000000000000000000000000000000..2b21b18e6fd4ad3f3443cbf695aa2f695cdad187 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/bsd/net.h @@ -0,0 +1,84 @@ +/* +Copyright Rene Rivera 2012-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_BSD_NET_H +#define MSGPACK_PREDEF_OS_BSD_NET_H + +#include + +/*` +[heading `MSGPACK_OS_BSD_NET`] + +[@http://en.wikipedia.org/wiki/Netbsd NetBSD] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__NETBSD__`] [__predef_detection__]] + [[`__NetBSD__`] [__predef_detection__]] + + [[`__NETBSD_version`] [V.R.P]] + [[`NetBSD0_8`] [0.8.0]] + [[`NetBSD0_9`] [0.9.0]] + [[`NetBSD1_0`] [1.0.0]] + [[`__NetBSD_Version`] [V.R.P]] + ] + */ + +#define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(__NETBSD__) || defined(__NetBSD__) \ + ) +# ifndef MSGPACK_OS_BSD_AVAILABLE +# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER_AVAILABLE +# define MSGPACK_OS_BSD_AVAILABLE +# endif +# undef MSGPACK_OS_BSD_NET +# if defined(__NETBSD__) +# if defined(__NETBSD_version) +# if __NETBSD_version < 500000 +# define MSGPACK_OS_BSD_NET \ + MSGPACK_PREDEF_MAKE_10_VRP000(__NETBSD_version) +# else +# define MSGPACK_OS_BSD_NET \ + MSGPACK_PREDEF_MAKE_10_VRR000(__NETBSD_version) +# endif +# else +# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +# elif defined(__NetBSD__) +# if !defined(MSGPACK_OS_BSD_NET) && defined(NetBSD0_8) +# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER(0,8,0) +# endif +# if !defined(MSGPACK_OS_BSD_NET) && defined(NetBSD0_9) +# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER(0,9,0) +# endif +# if !defined(MSGPACK_OS_BSD_NET) && defined(NetBSD1_0) +# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER(1,0,0) +# endif +# if !defined(MSGPACK_OS_BSD_NET) && defined(__NetBSD_Version) +# define MSGPACK_OS_BSD_NET \ + MSGPACK_PREDEF_MAKE_10_VVRR00PP00(__NetBSD_Version) +# endif +# if !defined(MSGPACK_OS_BSD_NET) +# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +# endif +#endif + +#if MSGPACK_OS_BSD_NET +# define MSGPACK_OS_BSD_NET_AVAILABLE +# include +#endif + +#define MSGPACK_OS_BSD_NET_NAME "DragonFly BSD" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_BSD_NET,MSGPACK_OS_BSD_NET_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/bsd/open.h b/msgpackc/2.1.5/include/msgpack/predef/os/bsd/open.h new file mode 100755 index 0000000000000000000000000000000000000000..3c14b01421d1214a13770bc6bbaceaa8ed83b94c --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/bsd/open.h @@ -0,0 +1,171 @@ +/* +Copyright Rene Rivera 2012-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_BSD_OPEN_H +#define MSGPACK_PREDEF_OS_BSD_OPEN_H + +#include + +/*` +[heading `MSGPACK_OS_BSD_OPEN`] + +[@http://en.wikipedia.org/wiki/Openbsd OpenBSD] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__OpenBSD__`] [__predef_detection__]] + + [[`OpenBSD2_0`] [2.0.0]] + [[`OpenBSD2_1`] [2.1.0]] + [[`OpenBSD2_2`] [2.2.0]] + [[`OpenBSD2_3`] [2.3.0]] + [[`OpenBSD2_4`] [2.4.0]] + [[`OpenBSD2_5`] [2.5.0]] + [[`OpenBSD2_6`] [2.6.0]] + [[`OpenBSD2_7`] [2.7.0]] + [[`OpenBSD2_8`] [2.8.0]] + [[`OpenBSD2_9`] [2.9.0]] + [[`OpenBSD3_0`] [3.0.0]] + [[`OpenBSD3_1`] [3.1.0]] + [[`OpenBSD3_2`] [3.2.0]] + [[`OpenBSD3_3`] [3.3.0]] + [[`OpenBSD3_4`] [3.4.0]] + [[`OpenBSD3_5`] [3.5.0]] + [[`OpenBSD3_6`] [3.6.0]] + [[`OpenBSD3_7`] [3.7.0]] + [[`OpenBSD3_8`] [3.8.0]] + [[`OpenBSD3_9`] [3.9.0]] + [[`OpenBSD4_0`] [4.0.0]] + [[`OpenBSD4_1`] [4.1.0]] + [[`OpenBSD4_2`] [4.2.0]] + [[`OpenBSD4_3`] [4.3.0]] + [[`OpenBSD4_4`] [4.4.0]] + [[`OpenBSD4_5`] [4.5.0]] + [[`OpenBSD4_6`] [4.6.0]] + [[`OpenBSD4_7`] [4.7.0]] + [[`OpenBSD4_8`] [4.8.0]] + [[`OpenBSD4_9`] [4.9.0]] + ] + */ + +#define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(__OpenBSD__) \ + ) +# ifndef MSGPACK_OS_BSD_AVAILABLE +# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER_AVAILABLE +# define MSGPACK_OS_BSD_AVAILABLE +# endif +# undef MSGPACK_OS_BSD_OPEN +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_0) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,0,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_1) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,1,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_2) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,2,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_3) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,3,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_4) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,4,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_5) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,5,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_6) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,6,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_7) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,7,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_8) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,8,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD2_9) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(2,9,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_0) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,0,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_1) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,1,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_2) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,2,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_3) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,3,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_4) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,4,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_5) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,5,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_6) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,6,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_7) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,7,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_8) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,8,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD3_9) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(3,9,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_0) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,0,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_1) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,1,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_2) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,2,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_3) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,3,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_4) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,4,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_5) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,5,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_6) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,6,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_7) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,7,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_8) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,8,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) && defined(OpenBSD4_9) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER(4,9,0) +# endif +# if !defined(MSGPACK_OS_BSD_OPEN) +# define MSGPACK_OS_BSD_OPEN MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_OS_BSD_OPEN +# define MSGPACK_OS_BSD_OPEN_AVAILABLE +# include +#endif + +#define MSGPACK_OS_BSD_OPEN_NAME "OpenBSD" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_BSD_OPEN,MSGPACK_OS_BSD_OPEN_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/cygwin.h b/msgpackc/2.1.5/include/msgpack/predef/os/cygwin.h new file mode 100755 index 0000000000000000000000000000000000000000..20ec7618a5890963f7714b4c6416b54c9e87a055 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/cygwin.h @@ -0,0 +1,45 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_CYGWIN_H +#define MSGPACK_PREDEF_OS_CYGWIN_H + +#include +#include + +/*` +[heading `MSGPACK_OS_CYGWIN`] + +[@http://en.wikipedia.org/wiki/Cygwin Cygwin] evironment. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__CYGWIN__`] [__predef_detection__]] + ] + */ + +#define MSGPACK_OS_CYGWIN MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(__CYGWIN__) \ + ) +# undef MSGPACK_OS_CYGWIN +# define MSGPACK_OS_CYGWIN MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_OS_CYGWIN +# define MSGPACK_OS_CYGWIN_AVAILABLE +# include +#endif + +#define MSGPACK_OS_CYGWIN_NAME "Cygwin" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_CYGWIN,MSGPACK_OS_CYGWIN_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/haiku.h b/msgpackc/2.1.5/include/msgpack/predef/os/haiku.h new file mode 100755 index 0000000000000000000000000000000000000000..53e9b517cd689c673cc6ea64d27b36b908a71093 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/haiku.h @@ -0,0 +1,46 @@ +/* +Copyright Jessica Hamilton 2014 +Copyright Rene Rivera 2014-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_HAIKU_H +#define MSGPACK_PREDEF_OS_HAIKU_H + +#include +#include + +/*` +[heading `MSGPACK_OS_HAIKU`] + +[@http://en.wikipedia.org/wiki/Haiku_(operating_system) Haiku] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__HAIKU__`] [__predef_detection__]] + ] + */ + +#define MSGPACK_OS_HAIKU MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(__HAIKU__) \ + ) +# undef MSGPACK_OS_HAIKU +# define MSGPACK_OS_HAIKU MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_OS_HAIKU +# define MSGPACK_OS_HAIKU_AVAILABLE +# include +#endif + +#define MSGPACK_OS_HAIKU_NAME "Haiku" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_HAIKU,MSGPACK_OS_HAIKU_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/hpux.h b/msgpackc/2.1.5/include/msgpack/predef/os/hpux.h new file mode 100755 index 0000000000000000000000000000000000000000..c3359e7717d4036e55c2cc0b79742cef941469fe --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/hpux.h @@ -0,0 +1,47 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_HPUX_H +#define MSGPACK_PREDEF_OS_HPUX_H + +#include +#include + +/*` +[heading `MSGPACK_OS_HPUX`] + +[@http://en.wikipedia.org/wiki/HP-UX HP-UX] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`hpux`] [__predef_detection__]] + [[`_hpux`] [__predef_detection__]] + [[`__hpux`] [__predef_detection__]] + ] + */ + +#define MSGPACK_OS_HPUX MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(hpux) || defined(_hpux) || defined(__hpux) \ + ) +# undef MSGPACK_OS_HPUX +# define MSGPACK_OS_HPUX MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_OS_HPUX +# define MSGPACK_OS_HPUX_AVAILABLE +# include +#endif + +#define MSGPACK_OS_HPUX_NAME "HP-UX" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_HPUX,MSGPACK_OS_HPUX_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/ios.h b/msgpackc/2.1.5/include/msgpack/predef/os/ios.h new file mode 100755 index 0000000000000000000000000000000000000000..cd14de7491bb76ee119aef8b859b368708c232bc --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/ios.h @@ -0,0 +1,51 @@ +/* +Copyright Franz Detro 2014 +Copyright Rene Rivera 2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_IOS_H +#define MSGPACK_PREDEF_OS_IOS_H + +#include +#include + +/*` +[heading `MSGPACK_OS_IOS`] + +[@http://en.wikipedia.org/wiki/iOS iOS] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__APPLE__`] [__predef_detection__]] + [[`__MACH__`] [__predef_detection__]] + [[`__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__`] [__predef_detection__]] + + [[`__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__`] [__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__*1000]] + ] + */ + +#define MSGPACK_OS_IOS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(__APPLE__) && defined(__MACH__) && \ + defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) \ + ) +# undef MSGPACK_OS_IOS +# define MSGPACK_OS_IOS (__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__*1000) +#endif + +#if MSGPACK_OS_IOS +# define MSGPACK_OS_IOS_AVAILABLE +# include +#endif + +#define MSGPACK_OS_IOS_NAME "iOS" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_IOS,MSGPACK_OS_IOS_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/irix.h b/msgpackc/2.1.5/include/msgpack/predef/os/irix.h new file mode 100755 index 0000000000000000000000000000000000000000..b36e2a506aacb8cadd6253e48f56377308bae5a9 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/irix.h @@ -0,0 +1,46 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_IRIX_H +#define MSGPACK_PREDEF_OS_IRIX_H + +#include +#include + +/*` +[heading `MSGPACK_OS_IRIX`] + +[@http://en.wikipedia.org/wiki/Irix IRIX] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`sgi`] [__predef_detection__]] + [[`__sgi`] [__predef_detection__]] + ] + */ + +#define MSGPACK_OS_IRIX MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(sgi) || defined(__sgi) \ + ) +# undef MSGPACK_OS_IRIX +# define MSGPACK_OS_IRIX MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_OS_IRIX +# define MSGPACK_OS_IRIX_AVAILABLE +# include +#endif + +#define MSGPACK_OS_IRIX_NAME "IRIX" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_IRIX,MSGPACK_OS_IRIX_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/linux.h b/msgpackc/2.1.5/include/msgpack/predef/os/linux.h new file mode 100755 index 0000000000000000000000000000000000000000..6c517c9d60760ed52eb479b02c739d0a2dd4d2db --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/linux.h @@ -0,0 +1,46 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_LINUX_H +#define MSGPACK_PREDEF_OS_LINUX_H + +#include +#include + +/*` +[heading `MSGPACK_OS_LINUX`] + +[@http://en.wikipedia.org/wiki/Linux Linux] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`linux`] [__predef_detection__]] + [[`__linux`] [__predef_detection__]] + ] + */ + +#define MSGPACK_OS_LINUX MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(linux) || defined(__linux) \ + ) +# undef MSGPACK_OS_LINUX +# define MSGPACK_OS_LINUX MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_OS_LINUX +# define MSGPACK_OS_LINUX_AVAILABLE +# include +#endif + +#define MSGPACK_OS_LINUX_NAME "Linux" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_LINUX,MSGPACK_OS_LINUX_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/macos.h b/msgpackc/2.1.5/include/msgpack/predef/os/macos.h new file mode 100755 index 0000000000000000000000000000000000000000..20dc60d7497199fe51494e19b239e4581087a04d --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/macos.h @@ -0,0 +1,65 @@ +/* +Copyright Rene Rivera 2008-2015 +Copyright Franz Detro 2014 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_MACOS_H +#define MSGPACK_PREDEF_OS_MACOS_H + +/* Special case: iOS will define the same predefs as MacOS, and additionally + '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__'. We can guard against that, + but only if we detect iOS first. Hence we will force include iOS detection + * before doing any MacOS detection. + */ +#include + +#include +#include + +/*` +[heading `MSGPACK_OS_MACOS`] + +[@http://en.wikipedia.org/wiki/Mac_OS Mac OS] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`macintosh`] [__predef_detection__]] + [[`Macintosh`] [__predef_detection__]] + [[`__APPLE__`] [__predef_detection__]] + [[`__MACH__`] [__predef_detection__]] + + [[`__APPLE__`, `__MACH__`] [10.0.0]] + [[ /otherwise/ ] [9.0.0]] + ] + */ + +#define MSGPACK_OS_MACOS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(macintosh) || defined(Macintosh) || \ + (defined(__APPLE__) && defined(__MACH__)) \ + ) +# undef MSGPACK_OS_MACOS +# if !defined(MSGPACK_OS_MACOS) && defined(__APPLE__) && defined(__MACH__) +# define MSGPACK_OS_MACOS MSGPACK_VERSION_NUMBER(10,0,0) +# endif +# if !defined(MSGPACK_OS_MACOS) +# define MSGPACK_OS_MACOS MSGPACK_VERSION_NUMBER(9,0,0) +# endif +#endif + +#if MSGPACK_OS_MACOS +# define MSGPACK_OS_MACOS_AVAILABLE +# include +#endif + +#define MSGPACK_OS_MACOS_NAME "Mac OS" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_MACOS,MSGPACK_OS_MACOS_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/os400.h b/msgpackc/2.1.5/include/msgpack/predef/os/os400.h new file mode 100755 index 0000000000000000000000000000000000000000..53ef52f8dce35e16519ec0114dc754abe78f8520 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/os400.h @@ -0,0 +1,45 @@ +/* +Copyright Rene Rivera 2011-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_OS400_H +#define MSGPACK_PREDEF_OS_OS400_H + +#include +#include + +/*` +[heading `MSGPACK_OS_OS400`] + +[@http://en.wikipedia.org/wiki/IBM_i IBM OS/400] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__OS400__`] [__predef_detection__]] + ] + */ + +#define MSGPACK_OS_OS400 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(__OS400__) \ + ) +# undef MSGPACK_OS_OS400 +# define MSGPACK_OS_OS400 MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_OS_OS400 +# define MSGPACK_OS_OS400_AVAILABLE +# include +#endif + +#define MSGPACK_OS_OS400_NAME "IBM OS/400" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_OS400,MSGPACK_OS_OS400_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/qnxnto.h b/msgpackc/2.1.5/include/msgpack/predef/os/qnxnto.h new file mode 100755 index 0000000000000000000000000000000000000000..80adaa2f3854b78855b5ef477191b95a5d642371 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/qnxnto.h @@ -0,0 +1,59 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_QNXNTO_H +#define MSGPACK_PREDEF_OS_QNXNTO_H + +#include +#include + +/*` +[heading `MSGPACK_OS_QNX`] + +[@http://en.wikipedia.org/wiki/QNX QNX] operating system. +Version number available as major, and minor if possible. And +version 4 is specifically detected. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__QNX__`] [__predef_detection__]] + [[`__QNXNTO__`] [__predef_detection__]] + + [[`_NTO_VERSION`] [V.R.0]] + [[`__QNX__`] [4.0.0]] + ] + */ + +#define MSGPACK_OS_QNX MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(__QNX__) || defined(__QNXNTO__) \ + ) +# undef MSGPACK_OS_QNX +# if !defined(MSGPACK_OS_QNX) && defined(_NTO_VERSION) +# define MSGPACK_OS_QNX MSGPACK_PREDEF_MAKE_10_VVRR(_NTO_VERSION) +# endif +# if !defined(MSGPACK_OS_QNX) && defined(__QNX__) +# define MSGPACK_OS_QNX MSGPACK_VERSION_NUMBER(4,0,0) +# endif +# if !defined(MSGPACK_OS_QNX) +# define MSGPACK_OS_QNX MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_OS_QNX +# define MSGPACK_OS_QNX_AVAILABLE +# include +#endif + +#define MSGPACK_OS_QNX_NAME "QNX" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_QNX,MSGPACK_OS_QNX_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/solaris.h b/msgpackc/2.1.5/include/msgpack/predef/os/solaris.h new file mode 100755 index 0000000000000000000000000000000000000000..f7ccb9c7320caa6dc79007666b00503a05bbbce5 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/solaris.h @@ -0,0 +1,46 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_SOLARIS_H +#define MSGPACK_PREDEF_OS_SOLARIS_H + +#include +#include + +/*` +[heading `MSGPACK_OS_SOLARIS`] + +[@http://en.wikipedia.org/wiki/Solaris_Operating_Environment Solaris] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`sun`] [__predef_detection__]] + [[`__sun`] [__predef_detection__]] + ] + */ + +#define MSGPACK_OS_SOLARIS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(sun) || defined(__sun) \ + ) +# undef MSGPACK_OS_SOLARIS +# define MSGPACK_OS_SOLARIS MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_OS_SOLARIS +# define MSGPACK_OS_SOLARIS_AVAILABLE +# include +#endif + +#define MSGPACK_OS_SOLARIS_NAME "Solaris" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_SOLARIS,MSGPACK_OS_SOLARIS_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/unix.h b/msgpackc/2.1.5/include/msgpack/predef/os/unix.h new file mode 100755 index 0000000000000000000000000000000000000000..b55970d14e74f08802800b3822e38946399b3d64 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/unix.h @@ -0,0 +1,76 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_UNIX_H +#define MSGPACK_PREDEF_OS_UNIX_H + +#include +#include + +/*` +[heading `MSGPACK_OS_UNIX`] + +[@http://en.wikipedia.org/wiki/Unix Unix Environment] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`unix`] [__predef_detection__]] + [[`__unix`] [__predef_detection__]] + [[`_XOPEN_SOURCE`] [__predef_detection__]] + [[`_POSIX_SOURCE`] [__predef_detection__]] + ] + */ + +#define MSGPACK_OS_UNIX MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(unix) || defined(__unix) || \ + defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE) +# undef MSGPACK_OS_UNIX +# define MSGPACK_OS_UNIX MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_OS_UNIX +# define MSGPACK_OS_UNIX_AVAILABLE +#endif + +#define MSGPACK_OS_UNIX_NAME "Unix Environment" + +/*` +[heading `MSGPACK_OS_SVR4`] + +[@http://en.wikipedia.org/wiki/UNIX_System_V SVR4 Environment] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__sysv__`] [__predef_detection__]] + [[`__SVR4`] [__predef_detection__]] + [[`__svr4__`] [__predef_detection__]] + [[`_SYSTYPE_SVR4`] [__predef_detection__]] + ] + */ + +#define MSGPACK_OS_SVR4 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__sysv__) || defined(__SVR4) || \ + defined(__svr4__) || defined(_SYSTYPE_SVR4) +# undef MSGPACK_OS_SVR4 +# define MSGPACK_OS_SVR4 MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_OS_SVR4 +# define MSGPACK_OS_SVR4_AVAILABLE +#endif + +#define MSGPACK_OS_SVR4_NAME "SVR4 Environment" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_UNIX,MSGPACK_OS_UNIX_NAME) +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_SVR4,MSGPACK_OS_SVR4_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/vms.h b/msgpackc/2.1.5/include/msgpack/predef/os/vms.h new file mode 100755 index 0000000000000000000000000000000000000000..bf87684e9bfb4f04cf740c91d229c7e288a5cf82 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/vms.h @@ -0,0 +1,52 @@ +/* +Copyright Rene Rivera 2011-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_VMS_H +#define MSGPACK_PREDEF_OS_VMS_H + +#include +#include + +/*` +[heading `MSGPACK_OS_VMS`] + +[@http://en.wikipedia.org/wiki/Vms VMS] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`VMS`] [__predef_detection__]] + [[`__VMS`] [__predef_detection__]] + + [[`__VMS_VER`] [V.R.P]] + ] + */ + +#define MSGPACK_OS_VMS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(VMS) || defined(__VMS) \ + ) +# undef MSGPACK_OS_VMS +# if defined(__VMS_VER) +# define MSGPACK_OS_VMS MSGPACK_PREDEF_MAKE_10_VVRR00PP00(__VMS_VER) +# else +# define MSGPACK_OS_VMS MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#if MSGPACK_OS_VMS +# define MSGPACK_OS_VMS_AVAILABLE +# include +#endif + +#define MSGPACK_OS_VMS_NAME "VMS" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_VMS,MSGPACK_OS_VMS_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/os/windows.h b/msgpackc/2.1.5/include/msgpack/predef/os/windows.h new file mode 100755 index 0000000000000000000000000000000000000000..bf73943766cfa292e184bc97dcd5b501c6a508c8 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/os/windows.h @@ -0,0 +1,51 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_OS_WINDOWS_H +#define MSGPACK_PREDEF_OS_WINDOWS_H + +#include +#include + +/*` +[heading `MSGPACK_OS_WINDOWS`] + +[@http://en.wikipedia.org/wiki/Category:Microsoft_Windows Microsoft Windows] operating system. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`_WIN32`] [__predef_detection__]] + [[`_WIN64`] [__predef_detection__]] + [[`__WIN32__`] [__predef_detection__]] + [[`__TOS_WIN__`] [__predef_detection__]] + [[`__WINDOWS__`] [__predef_detection__]] + ] + */ + +#define MSGPACK_OS_WINDOWS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \ + defined(_WIN32) || defined(_WIN64) || \ + defined(__WIN32__) || defined(__TOS_WIN__) || \ + defined(__WINDOWS__) \ + ) +# undef MSGPACK_OS_WINDOWS +# define MSGPACK_OS_WINDOWS MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_OS_WINDOWS +# define MSGPACK_OS_WINDOWS_AVAILABLE +# include +#endif + +#define MSGPACK_OS_WINDOWS_NAME "Microsoft Windows" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_WINDOWS,MSGPACK_OS_WINDOWS_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/other.h b/msgpackc/2.1.5/include/msgpack/predef/other.h new file mode 100755 index 0000000000000000000000000000000000000000..5434c5b5f09545f5bafcdd09d9876296777bbb80 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/other.h @@ -0,0 +1,16 @@ +/* +Copyright Rene Rivera 2013-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#if !defined(MSGPACK_PREDEF_OTHER_H) || defined(MSGPACK_PREDEF_INTERNAL_GENERATE_TESTS) +#ifndef MSGPACK_PREDEF_OTHER_H +#define MSGPACK_PREDEF_OTHER_H +#endif + +#include +/*#include */ + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/other/endian.h b/msgpackc/2.1.5/include/msgpack/predef/other/endian.h new file mode 100755 index 0000000000000000000000000000000000000000..3c609fa411283255eed12611701ef2fbe2630331 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/other/endian.h @@ -0,0 +1,204 @@ +/* +Copyright Rene Rivera 2013-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_ENDIAN_H +#define MSGPACK_PREDEF_ENDIAN_H + +#include +#include +#include +#include +#include +#include + +/*` +[heading `MSGPACK_ENDIAN_*`] + +Detection of endian memory ordering. There are four defined macros +in this header that define the various generally possible endian +memory orderings: + +* `MSGPACK_ENDIAN_BIG_BYTE`, byte-swapped big-endian. +* `MSGPACK_ENDIAN_BIG_WORD`, word-swapped big-endian. +* `MSGPACK_ENDIAN_LITTLE_BYTE`, byte-swapped little-endian. +* `MSGPACK_ENDIAN_LITTLE_WORD`, word-swapped little-endian. + +The detection is conservative in that it only identifies endianness +that it knows for certain. In particular bi-endianness is not +indicated as is it not practically possible to determine the +endianness from anything but an operating system provided +header. And the currently known headers do not define that +programatic bi-endianness is available. + +This implementation is a compilation of various publicly available +information and acquired knowledge: + +# The indispensable documentation of "Pre-defined Compiler Macros" + [@http://sourceforge.net/p/predef/wiki/Endianness Endianness]. +# The various endian specifications available in the + [@http://wikipedia.org/ Wikipedia] computer architecture pages. +# Generally available searches for headers that define endianness. + */ + +#define MSGPACK_ENDIAN_BIG_BYTE MSGPACK_VERSION_NUMBER_NOT_AVAILABLE +#define MSGPACK_ENDIAN_BIG_WORD MSGPACK_VERSION_NUMBER_NOT_AVAILABLE +#define MSGPACK_ENDIAN_LITTLE_BYTE MSGPACK_VERSION_NUMBER_NOT_AVAILABLE +#define MSGPACK_ENDIAN_LITTLE_WORD MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +/* GNU libc provides a header defining __BYTE_ORDER, or _BYTE_ORDER. + * And some OSs provide some for of endian header also. + */ +#if !MSGPACK_ENDIAN_BIG_BYTE && !MSGPACK_ENDIAN_BIG_WORD && \ + !MSGPACK_ENDIAN_LITTLE_BYTE && !MSGPACK_ENDIAN_LITTLE_WORD +# if MSGPACK_LIB_C_GNU || MSGPACK_OS_ANDROID +# include +# else +# if MSGPACK_OS_MACOS +# include +# else +# if MSGPACK_OS_BSD +# if MSGPACK_OS_BSD_OPEN +# include +# else +# include +# endif +# endif +# endif +# endif +# if defined(__BYTE_ORDER) +# if defined(__BIG_ENDIAN) && (__BYTE_ORDER == __BIG_ENDIAN) +# undef MSGPACK_ENDIAN_BIG_BYTE +# define MSGPACK_ENDIAN_BIG_BYTE MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +# if defined(__LITTLE_ENDIAN) && (__BYTE_ORDER == __LITTLE_ENDIAN) +# undef MSGPACK_ENDIAN_LITTLE_BYTE +# define MSGPACK_ENDIAN_LITTLE_BYTE MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +# if defined(__PDP_ENDIAN) && (__BYTE_ORDER == __PDP_ENDIAN) +# undef MSGPACK_ENDIAN_LITTLE_WORD +# define MSGPACK_ENDIAN_LITTLE_WORD MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +# endif +# if !defined(__BYTE_ORDER) && defined(_BYTE_ORDER) +# if defined(_BIG_ENDIAN) && (_BYTE_ORDER == _BIG_ENDIAN) +# undef MSGPACK_ENDIAN_BIG_BYTE +# define MSGPACK_ENDIAN_BIG_BYTE MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +# if defined(_LITTLE_ENDIAN) && (_BYTE_ORDER == _LITTLE_ENDIAN) +# undef MSGPACK_ENDIAN_LITTLE_BYTE +# define MSGPACK_ENDIAN_LITTLE_BYTE MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +# if defined(_PDP_ENDIAN) && (_BYTE_ORDER == _PDP_ENDIAN) +# undef MSGPACK_ENDIAN_LITTLE_WORD +# define MSGPACK_ENDIAN_LITTLE_WORD MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +# endif +#endif + +/* Built-in byte-swpped big-endian macros. + */ +#if !MSGPACK_ENDIAN_BIG_BYTE && !MSGPACK_ENDIAN_BIG_WORD && \ + !MSGPACK_ENDIAN_LITTLE_BYTE && !MSGPACK_ENDIAN_LITTLE_WORD +# if (defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__)) || \ + (defined(_BIG_ENDIAN) && !defined(_LITTLE_ENDIAN)) || \ + defined(__ARMEB__) || \ + defined(__THUMBEB__) || \ + defined(__AARCH64EB__) || \ + defined(_MIPSEB) || \ + defined(__MIPSEB) || \ + defined(__MIPSEB__) +# undef MSGPACK_ENDIAN_BIG_BYTE +# define MSGPACK_ENDIAN_BIG_BYTE MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +/* Built-in byte-swpped little-endian macros. + */ +#if !MSGPACK_ENDIAN_BIG_BYTE && !MSGPACK_ENDIAN_BIG_WORD && \ + !MSGPACK_ENDIAN_LITTLE_BYTE && !MSGPACK_ENDIAN_LITTLE_WORD +# if (defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__)) || \ + (defined(_LITTLE_ENDIAN) && !defined(_BIG_ENDIAN)) || \ + defined(__ARMEL__) || \ + defined(__THUMBEL__) || \ + defined(__AARCH64EL__) || \ + defined(_MIPSEL) || \ + defined(__MIPSEL) || \ + defined(__MIPSEL__) +# undef MSGPACK_ENDIAN_LITTLE_BYTE +# define MSGPACK_ENDIAN_LITTLE_BYTE MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +/* Some architectures are strictly one endianess (as opposed + * the current common bi-endianess). + */ +#if !MSGPACK_ENDIAN_BIG_BYTE && !MSGPACK_ENDIAN_BIG_WORD && \ + !MSGPACK_ENDIAN_LITTLE_BYTE && !MSGPACK_ENDIAN_LITTLE_WORD +# include +# if MSGPACK_ARCH_M68K || \ + MSGPACK_ARCH_PARISC || \ + MSGPACK_ARCH_SPARC || \ + MSGPACK_ARCH_SYS370 || \ + MSGPACK_ARCH_SYS390 || \ + MSGPACK_ARCH_Z +# undef MSGPACK_ENDIAN_BIG_BYTE +# define MSGPACK_ENDIAN_BIG_BYTE MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +# if MSGPACK_ARCH_AMD64 || \ + MSGPACK_ARCH_IA64 || \ + MSGPACK_ARCH_X86 || \ + MSGPACK_ARCH_BLACKFIN +# undef MSGPACK_ENDIAN_LITTLE_BYTE +# define MSGPACK_ENDIAN_LITTLE_BYTE MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +/* Windows on ARM, if not otherwise detected/specified, is always + * byte-swaped little-endian. + */ +#if !MSGPACK_ENDIAN_BIG_BYTE && !MSGPACK_ENDIAN_BIG_WORD && \ + !MSGPACK_ENDIAN_LITTLE_BYTE && !MSGPACK_ENDIAN_LITTLE_WORD +# if MSGPACK_ARCH_ARM +# include +# if MSGPACK_OS_WINDOWS +# undef MSGPACK_ENDIAN_LITTLE_BYTE +# define MSGPACK_ENDIAN_LITTLE_BYTE MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +# endif +#endif + +#if MSGPACK_ENDIAN_BIG_BYTE +# define MSGPACK_ENDIAN_BIG_BYTE_AVAILABLE +#endif +#if MSGPACK_ENDIAN_BIG_WORD +# define MSGPACK_ENDIAN_BIG_WORD_BYTE_AVAILABLE +#endif +#if MSGPACK_ENDIAN_LITTLE_BYTE +# define MSGPACK_ENDIAN_LITTLE_BYTE_AVAILABLE +#endif +#if MSGPACK_ENDIAN_LITTLE_WORD +# define MSGPACK_ENDIAN_LITTLE_WORD_BYTE_AVAILABLE +#endif + +#define MSGPACK_ENDIAN_BIG_BYTE_NAME "Byte-Swapped Big-Endian" +#define MSGPACK_ENDIAN_BIG_WORD_NAME "Word-Swapped Big-Endian" +#define MSGPACK_ENDIAN_LITTLE_BYTE_NAME "Byte-Swapped Little-Endian" +#define MSGPACK_ENDIAN_LITTLE_WORD_NAME "Word-Swapped Little-Endian" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ENDIAN_BIG_BYTE,MSGPACK_ENDIAN_BIG_BYTE_NAME) + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ENDIAN_BIG_WORD,MSGPACK_ENDIAN_BIG_WORD_NAME) + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ENDIAN_LITTLE_BYTE,MSGPACK_ENDIAN_LITTLE_BYTE_NAME) + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_ENDIAN_LITTLE_WORD,MSGPACK_ENDIAN_LITTLE_WORD_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/platform.h b/msgpackc/2.1.5/include/msgpack/predef/platform.h new file mode 100755 index 0000000000000000000000000000000000000000..34255c2bc6648b483cfe9ba77e8848c9f2a677a6 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/platform.h @@ -0,0 +1,21 @@ +/* +Copyright Rene Rivera 2013-2015 +Copyright (c) Microsoft Corporation 2014 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#if !defined(MSGPACK_PREDEF_PLATFORM_H) || defined(MSGPACK_PREDEF_INTERNAL_GENERATE_TESTS) +#ifndef MSGPACK_PREDEF_PLATFORM_H +#define MSGPACK_PREDEF_PLATFORM_H +#endif + +#include +#include +#include +#include +#include +/*#include */ + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/platform/mingw.h b/msgpackc/2.1.5/include/msgpack/predef/platform/mingw.h new file mode 100755 index 0000000000000000000000000000000000000000..213f932cac05212a8a096379bba415072b60eaf2 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/platform/mingw.h @@ -0,0 +1,69 @@ +/* +Copyright Rene Rivera 2008-2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_COMPILER_MINGW_H +#define MSGPACK_PREDEF_COMPILER_MINGW_H + +#include +#include + +/*` +[heading `MSGPACK_PLAT_MINGW`] + +[@http://en.wikipedia.org/wiki/MinGW MinGW] platform. +Version number available as major, minor, and patch. + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`__MINGW32__`] [__predef_detection__]] + [[`__MINGW64__`] [__predef_detection__]] + + [[`__MINGW64_VERSION_MAJOR`, `__MINGW64_VERSION_MINOR`] [V.R.0]] + [[`__MINGW32_VERSION_MAJOR`, `__MINGW32_VERSION_MINOR`] [V.R.0]] + ] + */ + +#define MSGPACK_PLAT_MINGW MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__MINGW32__) || defined(__MINGW64__) +# include <_mingw.h> +# if !defined(MSGPACK_PLAT_MINGW_DETECTION) && (defined(__MINGW64_VERSION_MAJOR) && defined(__MINGW64_VERSION_MINOR)) +# define MSGPACK_PLAT_MINGW_DETECTION \ + MSGPACK_VERSION_NUMBER(__MINGW64_VERSION_MAJOR,__MINGW64_VERSION_MINOR,0) +# endif +# if !defined(MSGPACK_PLAT_MINGW_DETECTION) && (defined(__MINGW32_VERSION_MAJOR) && defined(__MINGW32_VERSION_MINOR)) +# define MSGPACK_PLAT_MINGW_DETECTION \ + MSGPACK_VERSION_NUMBER(__MINGW32_MAJOR_VERSION,__MINGW32_MINOR_VERSION,0) +# endif +# if !defined(MSGPACK_PLAT_MINGW_DETECTION) +# define MSGPACK_PLAT_MINGW_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE +# endif +#endif + +#ifdef MSGPACK_PLAT_MINGW_DETECTION +# define MSGPACK_PLAT_MINGW_AVAILABLE +# if defined(MSGPACK_PREDEF_DETAIL_PLAT_DETECTED) +# define MSGPACK_PLAT_MINGW_EMULATED MSGPACK_PLAT_MINGW_DETECTION +# else +# undef MSGPACK_PLAT_MINGW +# define MSGPACK_PLAT_MINGW MSGPACK_PLAT_MINGW_DETECTION +# endif +# include +#endif + +#define MSGPACK_PLAT_MINGW_NAME "MinGW" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_PLAT_MINGW,MSGPACK_PLAT_MINGW_NAME) + +#ifdef MSGPACK_PLAT_MINGW_EMULATED +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_PLAT_MINGW_EMULATED,MSGPACK_PLAT_MINGW_NAME) +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/platform/windows_desktop.h b/msgpackc/2.1.5/include/msgpack/predef/platform/windows_desktop.h new file mode 100755 index 0000000000000000000000000000000000000000..9f0c4f1fc23fbb32593f015fe095518c20bfd0e9 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/platform/windows_desktop.h @@ -0,0 +1,45 @@ +/* +Copyright (c) Microsoft Corporation 2014 +Copyright Rene Rivera 2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_PLAT_WINDOWS_DESKTOP_H +#define MSGPACK_PREDEF_PLAT_WINDOWS_DESKTOP_H + +#include +#include +#include + +/*` +[heading `MSGPACK_PLAT_WINDOWS_DESKTOP`] + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`!WINAPI_FAMILY`] [__predef_detection__]] + [[`WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP`] [__predef_detection__]] + ] + */ + +#define MSGPACK_PLAT_WINDOWS_DESKTOP MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if MSGPACK_OS_WINDOWS && \ + ( !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP) ) +# undef MSGPACK_PLAT_WINDOWS_DESKTOP +# define MSGPACK_PLAT_WINDOWS_DESKTOP MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_PLAT_WINDOWS_DESKTOP +# define MSGPACK_PLAT_WINDOWS_DESKTOP_AVAILABLE +# include +#endif + +#define MSGPACK_PLAT_WINDOWS_DESKTOP_NAME "Windows Desktop" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_PLAT_WINDOWS_DESKTOP,MSGPACK_PLAT_WINDOWS_DESKTOP_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/platform/windows_phone.h b/msgpackc/2.1.5/include/msgpack/predef/platform/windows_phone.h new file mode 100755 index 0000000000000000000000000000000000000000..a224f69c9b89d1539cc094237af5487f2950a7d4 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/platform/windows_phone.h @@ -0,0 +1,43 @@ +/* +Copyright (c) Microsoft Corporation 2014 +Copyright Rene Rivera 2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_PLAT_WINDOWS_PHONE_H +#define MSGPACK_PREDEF_PLAT_WINDOWS_PHONE_H + +#include +#include +#include + +/*` +[heading `MSGPACK_PLAT_WINDOWS_PHONE`] + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP`] [__predef_detection__]] + ] + */ + +#define MSGPACK_PLAT_WINDOWS_PHONE MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if MSGPACK_OS_WINDOWS && defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP +# undef MSGPACK_PLAT_WINDOWS_PHONE +# define MSGPACK_PLAT_WINDOWS_PHONE MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_PLAT_WINDOWS_PHONE +# define MSGPACK_PLAT_WINDOWS_PHONE_AVAILABLE +# include +#endif + +#define MSGPACK_PLAT_WINDOWS_PHONE_NAME "Windows Phone" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_PLAT_WINDOWS_PHONE,MSGPACK_PLAT_WINDOWS_PHONE_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/platform/windows_runtime.h b/msgpackc/2.1.5/include/msgpack/predef/platform/windows_runtime.h new file mode 100755 index 0000000000000000000000000000000000000000..759b2f8658c4f072600a3b77b77007104352f850 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/platform/windows_runtime.h @@ -0,0 +1,45 @@ +/* +Copyright (c) Microsoft Corporation 2014 +Copyright Rene Rivera 2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_PLAT_WINDOWS_RUNTIME_H +#define MSGPACK_PREDEF_PLAT_WINDOWS_RUNTIME_H + +#include +#include +#include + +/*` +[heading `MSGPACK_PLAT_WINDOWS_RUNTIME`] + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`WINAPI_FAMILY == WINAPI_FAMILY_APP`] [__predef_detection__]] + [[`WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP`] [__predef_detection__]] + ] + */ + +#define MSGPACK_PLAT_WINDOWS_RUNTIME MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if MSGPACK_OS_WINDOWS && defined(WINAPI_FAMILY) && \ + ( WINAPI_FAMILY == WINAPI_FAMILY_APP || WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP ) +# undef MSGPACK_PLAT_WINDOWS_RUNTIME +# define MSGPACK_PLAT_WINDOWS_RUNTIME MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_PLAT_WINDOWS_RUNTIME +# define MSGPACK_PLAT_WINDOWS_RUNTIME_AVAILABLE +# include +#endif + +#define MSGPACK_PLAT_WINDOWS_RUNTIME_NAME "Windows Runtime" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_PLAT_WINDOWS_RUNTIME,MSGPACK_PLAT_WINDOWS_RUNTIME_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/platform/windows_store.h b/msgpackc/2.1.5/include/msgpack/predef/platform/windows_store.h new file mode 100755 index 0000000000000000000000000000000000000000..c538c9b3e8f2e7a7f61ed2de1c852573d42db74d --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/platform/windows_store.h @@ -0,0 +1,43 @@ +/* +Copyright (c) Microsoft Corporation 2014 +Copyright Rene Rivera 2015 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_PLAT_WINDOWS_STORE_H +#define MSGPACK_PREDEF_PLAT_WINDOWS_STORE_H + +#include +#include +#include + +/*` +[heading `MSGPACK_PLAT_WINDOWS_STORE`] + +[table + [[__predef_symbol__] [__predef_version__]] + + [[`WINAPI_FAMILY == WINAPI_FAMILY_APP`] [__predef_detection__]] + ] + */ + +#define MSGPACK_PLAT_WINDOWS_STORE MSGPACK_VERSION_NUMBER_NOT_AVAILABLE + +#if MSGPACK_OS_WINDOWS && defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_APP +# undef MSGPACK_PLAT_WINDOWS_STORE +# define MSGPACK_PLAT_WINDOWS_STORE MSGPACK_VERSION_NUMBER_AVAILABLE +#endif + +#if MSGPACK_PLAT_WINDOWS_STORE +# define MSGPACK_PLAT_WINDOWS_STORE_AVAILABLE +# include +#endif + +#define MSGPACK_PLAT_WINDOWS_STORE_NAME "Windows Store" + +#endif + +#include +MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_PLAT_WINDOWS_STORE,MSGPACK_PLAT_WINDOWS_STORE_NAME) diff --git a/msgpackc/2.1.5/include/msgpack/predef/version.h b/msgpackc/2.1.5/include/msgpack/predef/version.h new file mode 100755 index 0000000000000000000000000000000000000000..12a3382244b421b4a5e1911d1741a5e22f1796a8 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/version.h @@ -0,0 +1,15 @@ +/* +Copyright Rene Rivera 2015-2016 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_VERSION_H +#define MSGPACK_PREDEF_VERSION_H + +#include + +#define MSGPACK_PREDEF_VERSION MSGPACK_VERSION_NUMBER(1,4,1) + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/predef/version_number.h b/msgpackc/2.1.5/include/msgpack/predef/version_number.h new file mode 100755 index 0000000000000000000000000000000000000000..be8ff5527bda47be6dfe7814d298506b3aa71bd2 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/predef/version_number.h @@ -0,0 +1,53 @@ +/* +Copyright Rene Rivera 2005, 2008-2013 +Distributed under the Boost Software License, Version 1.0. +(See accompanying file LICENSE_1_0.txt or copy at +http://www.boost.org/LICENSE_1_0.txt) +*/ + +#ifndef MSGPACK_PREDEF_VERSION_NUMBER_H +#define MSGPACK_PREDEF_VERSION_NUMBER_H + +/*` +[heading `MSGPACK_VERSION_NUMBER`] + +`` +MSGPACK_VERSION_NUMBER(major,minor,patch) +`` + +Defines standard version numbers, with these properties: + +* Decimal base whole numbers in the range \[0,1000000000). + The number range is designed to allow for a (2,2,5) triplet. + Which fits within a 32 bit value. +* The `major` number can be in the \[0,99\] range. +* The `minor` number can be in the \[0,99\] range. +* The `patch` number can be in the \[0,99999\] range. +* Values can be specified in any base. As the defined value + is an constant expression. +* Value can be directly used in both preprocessor and compiler + expressions for comparison to other similarly defined values. +* The implementation enforces the individual ranges for the + major, minor, and patch numbers. And values over the ranges + are truncated (modulo). + +*/ +#define MSGPACK_VERSION_NUMBER(major,minor,patch) \ + ( (((major)%100)*10000000) + (((minor)%100)*100000) + ((patch)%100000) ) + +#define MSGPACK_VERSION_NUMBER_MAX \ + MSGPACK_VERSION_NUMBER(99,99,99999) + +#define MSGPACK_VERSION_NUMBER_ZERO \ + MSGPACK_VERSION_NUMBER(0,0,0) + +#define MSGPACK_VERSION_NUMBER_MIN \ + MSGPACK_VERSION_NUMBER(0,0,1) + +#define MSGPACK_VERSION_NUMBER_AVAILABLE \ + MSGPACK_VERSION_NUMBER_MIN + +#define MSGPACK_VERSION_NUMBER_NOT_AVAILABLE \ + MSGPACK_VERSION_NUMBER_ZERO + +#endif diff --git a/msgpackc/2.1.5/include/msgpack/sysdep.h b/msgpackc/2.1.5/include/msgpack/sysdep.h new file mode 100755 index 0000000000000000000000000000000000000000..569ae4cdf7f308dbe8bd948c0f5abc1ddec3bb20 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/sysdep.h @@ -0,0 +1,201 @@ +/* + * MessagePack system dependencies + * + * Copyright (C) 2008-2010 FURUHASHI Sadayuki + * + * Distributed under the Boost Software License, Version 1.0. + * (See accompanying file LICENSE_1_0.txt or copy at + * http://www.boost.org/LICENSE_1_0.txt) + */ +#ifndef MSGPACK_SYSDEP_H +#define MSGPACK_SYSDEP_H + +#include + +#include +#include + +#if defined(_MSC_VER) && _MSC_VER <= 1800 +# define snprintf(buf, len, format,...) _snprintf_s(buf, len, len, format, __VA_ARGS__) +#endif + +#if defined(_MSC_VER) && _MSC_VER < 1600 + typedef signed __int8 int8_t; + typedef unsigned __int8 uint8_t; + typedef signed __int16 int16_t; + typedef unsigned __int16 uint16_t; + typedef signed __int32 int32_t; + typedef unsigned __int32 uint32_t; + typedef signed __int64 int64_t; + typedef unsigned __int64 uint64_t; +#elif defined(_MSC_VER) // && _MSC_VER >= 1600 +# include +#else +# include +# include +#endif + +#if !defined(MSGPACK_DLLEXPORT) +#if defined(_MSC_VER) +# define MSGPACK_DLLEXPORT __declspec(dllexport) +#else /* _MSC_VER */ +# define MSGPACK_DLLEXPORT +#endif /* _MSC_VER */ +#endif + +#ifdef _WIN32 +# define _msgpack_atomic_counter_header +# if !defined(WIN32_LEAN_AND_MEAN) +# define WIN32_LEAN_AND_MEAN +# endif /* WIN32_LEAN_AND_MEAN */ + typedef long _msgpack_atomic_counter_t; +# define _msgpack_sync_decr_and_fetch(ptr) InterlockedDecrement(ptr) +# define _msgpack_sync_incr_and_fetch(ptr) InterlockedIncrement(ptr) +#elif defined(__GNUC__) && ((__GNUC__*10 + __GNUC_MINOR__) < 41) + +# if defined(__cplusplus) +# define _msgpack_atomic_counter_header "msgpack/gcc_atomic.hpp" +# else +# define _msgpack_atomic_counter_header "msgpack/gcc_atomic.h" +# endif + +#else + typedef unsigned int _msgpack_atomic_counter_t; +# define _msgpack_sync_decr_and_fetch(ptr) __sync_sub_and_fetch(ptr, 1) +# define _msgpack_sync_incr_and_fetch(ptr) __sync_add_and_fetch(ptr, 1) +#endif + +#ifdef _WIN32 + +# ifdef __cplusplus + /* numeric_limits::min,max */ +# ifdef max +# undef max +# endif +# ifdef min +# undef min +# endif +# endif + +#elif defined(unix) || defined(__unix) || defined(__APPLE__) || defined(__OpenBSD__) + +#include /* __BYTE_ORDER */ +# if defined(linux) +# include +# endif + +#endif + +#if MSGPACK_ENDIAN_LITTLE_BYTE + +# if defined(unix) || defined(__unix) || defined(__APPLE__) || defined(__OpenBSD__) +# define _msgpack_be16(x) ntohs(x) +# else +# if defined(ntohs) +# define _msgpack_be16(x) ntohs(x) +# elif defined(_byteswap_ushort) || (defined(_MSC_VER) && _MSC_VER >= 1400) +# define _msgpack_be16(x) ((uint16_t)_byteswap_ushort((unsigned short)x)) +# else +# define _msgpack_be16(x) ( \ + ((((uint16_t)x) << 8) ) | \ + ((((uint16_t)x) >> 8) ) ) +# endif +# endif + +# if defined(unix) || defined(__unix) || defined(__APPLE__) || defined(__OpenBSD__) +# define _msgpack_be32(x) ntohl(x) +# else +# if defined(ntohl) +# define _msgpack_be32(x) ntohl(x) +# elif defined(_byteswap_ulong) || (defined(_MSC_VER) && _MSC_VER >= 1400) +# define _msgpack_be32(x) ((uint32_t)_byteswap_ulong((unsigned long)x)) +# else +# define _msgpack_be32(x) \ + ( ((((uint32_t)x) << 24) ) | \ + ((((uint32_t)x) << 8) & 0x00ff0000U ) | \ + ((((uint32_t)x) >> 8) & 0x0000ff00U ) | \ + ((((uint32_t)x) >> 24) ) ) +# endif +# endif + +# if defined(_byteswap_uint64) || (defined(_MSC_VER) && _MSC_VER >= 1400) +# define _msgpack_be64(x) (_byteswap_uint64(x)) +# elif defined(bswap_64) +# define _msgpack_be64(x) bswap_64(x) +# elif defined(__DARWIN_OSSwapInt64) +# define _msgpack_be64(x) __DARWIN_OSSwapInt64(x) +# else +# define _msgpack_be64(x) \ + ( ((((uint64_t)x) << 56) ) | \ + ((((uint64_t)x) << 40) & 0x00ff000000000000ULL ) | \ + ((((uint64_t)x) << 24) & 0x0000ff0000000000ULL ) | \ + ((((uint64_t)x) << 8) & 0x000000ff00000000ULL ) | \ + ((((uint64_t)x) >> 8) & 0x00000000ff000000ULL ) | \ + ((((uint64_t)x) >> 24) & 0x0000000000ff0000ULL ) | \ + ((((uint64_t)x) >> 40) & 0x000000000000ff00ULL ) | \ + ((((uint64_t)x) >> 56) ) ) +# endif + +#elif MSGPACK_ENDIAN_BIG_BYTE + +# define _msgpack_be16(x) (x) +# define _msgpack_be32(x) (x) +# define _msgpack_be64(x) (x) + +#else +# error msgpack-c supports only big endian and little endian +#endif /* MSGPACK_ENDIAN_LITTLE_BYTE */ + +#define _msgpack_load16(cast, from, to) do { \ + memcpy((cast*)(to), (from), sizeof(cast)); \ + *(to) = _msgpack_be16(*(to)); \ + } while (0); + +#define _msgpack_load32(cast, from, to) do { \ + memcpy((cast*)(to), (from), sizeof(cast)); \ + *(to) = _msgpack_be32(*(to)); \ + } while (0); +#define _msgpack_load64(cast, from, to) do { \ + memcpy((cast*)(to), (from), sizeof(cast)); \ + *(to) = _msgpack_be64(*(to)); \ + } while (0); + +#define _msgpack_store16(to, num) \ + do { uint16_t val = _msgpack_be16(num); memcpy(to, &val, 2); } while(0) +#define _msgpack_store32(to, num) \ + do { uint32_t val = _msgpack_be32(num); memcpy(to, &val, 4); } while(0) +#define _msgpack_store64(to, num) \ + do { uint64_t val = _msgpack_be64(num); memcpy(to, &val, 8); } while(0) + +/* +#define _msgpack_load16(cast, from) \ + ({ cast val; memcpy(&val, (char*)from, 2); _msgpack_be16(val); }) +#define _msgpack_load32(cast, from) \ + ({ cast val; memcpy(&val, (char*)from, 4); _msgpack_be32(val); }) +#define _msgpack_load64(cast, from) \ + ({ cast val; memcpy(&val, (char*)from, 8); _msgpack_be64(val); }) +*/ + + +#if !defined(__cplusplus) && defined(_MSC_VER) +# if !defined(FALSE) +# define FALSE (0) +# endif +# if !defined(TRUE) +# define TRUE (!FALSE) +# endif +# if _MSC_VER >= 1800 +# include +# else +# define bool int +# define true TRUE +# define false FALSE +# endif +# define inline __inline +#endif + +#ifdef __APPLE__ +# include +#endif + +#endif /* msgpack/sysdep.h */ diff --git a/msgpackc/2.1.5/include/msgpack/unpack_define.h b/msgpackc/2.1.5/include/msgpack/unpack_define.h new file mode 100755 index 0000000000000000000000000000000000000000..c7decf65994aa73b42c2312417d5357567f70e90 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/unpack_define.h @@ -0,0 +1,89 @@ +/* + * MessagePack unpacking routine template + * + * Copyright (C) 2008-2010 FURUHASHI Sadayuki + * + * Distributed under the Boost Software License, Version 1.0. + * (See accompanying file LICENSE_1_0.txt or copy at + * http://www.boost.org/LICENSE_1_0.txt) + */ +#ifndef MSGPACK_UNPACK_DEFINE_H +#define MSGPACK_UNPACK_DEFINE_H + +#include "msgpack/sysdep.h" +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + + +#ifndef MSGPACK_EMBED_STACK_SIZE +#define MSGPACK_EMBED_STACK_SIZE 32 +#endif + + +typedef enum { + MSGPACK_CS_HEADER = 0x00, // nil + + //MSGPACK_CS_ = 0x01, + //MSGPACK_CS_ = 0x02, // false + //MSGPACK_CS_ = 0x03, // true + + MSGPACK_CS_BIN_8 = 0x04, + MSGPACK_CS_BIN_16 = 0x05, + MSGPACK_CS_BIN_32 = 0x06, + + MSGPACK_CS_EXT_8 = 0x07, + MSGPACK_CS_EXT_16 = 0x08, + MSGPACK_CS_EXT_32 = 0x09, + + MSGPACK_CS_FLOAT = 0x0a, + MSGPACK_CS_DOUBLE = 0x0b, + MSGPACK_CS_UINT_8 = 0x0c, + MSGPACK_CS_UINT_16 = 0x0d, + MSGPACK_CS_UINT_32 = 0x0e, + MSGPACK_CS_UINT_64 = 0x0f, + MSGPACK_CS_INT_8 = 0x10, + MSGPACK_CS_INT_16 = 0x11, + MSGPACK_CS_INT_32 = 0x12, + MSGPACK_CS_INT_64 = 0x13, + + MSGPACK_CS_FIXEXT_1 = 0x14, + MSGPACK_CS_FIXEXT_2 = 0x15, + MSGPACK_CS_FIXEXT_4 = 0x16, + MSGPACK_CS_FIXEXT_8 = 0x17, + MSGPACK_CS_FIXEXT_16 = 0x18, + + MSGPACK_CS_STR_8 = 0x19, // str8 + MSGPACK_CS_STR_16 = 0x1a, // str16 + MSGPACK_CS_STR_32 = 0x1b, // str32 + MSGPACK_CS_ARRAY_16 = 0x1c, + MSGPACK_CS_ARRAY_32 = 0x1d, + MSGPACK_CS_MAP_16 = 0x1e, + MSGPACK_CS_MAP_32 = 0x1f, + + //MSGPACK_ACS_BIG_INT_VALUE, + //MSGPACK_ACS_BIG_FLOAT_VALUE, + MSGPACK_ACS_STR_VALUE, + MSGPACK_ACS_BIN_VALUE, + MSGPACK_ACS_EXT_VALUE +} msgpack_unpack_state; + + +typedef enum { + MSGPACK_CT_ARRAY_ITEM, + MSGPACK_CT_MAP_KEY, + MSGPACK_CT_MAP_VALUE +} msgpack_container_type; + + +#ifdef __cplusplus +} +#endif + +#endif /* msgpack/unpack_define.h */ + diff --git a/msgpackc/2.1.5/include/msgpack/unpack_template.h b/msgpackc/2.1.5/include/msgpack/unpack_template.h new file mode 100755 index 0000000000000000000000000000000000000000..e557bb6df9cc9ffaded363bf59525fd2ef4eddd1 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/unpack_template.h @@ -0,0 +1,466 @@ +/* + * MessagePack unpacking routine template + * + * Copyright (C) 2008-2010 FURUHASHI Sadayuki + * + * Distributed under the Boost Software License, Version 1.0. + * (See accompanying file LICENSE_1_0.txt or copy at + * http://www.boost.org/LICENSE_1_0.txt) + */ + +#ifndef msgpack_unpack_func +#error msgpack_unpack_func template is not defined +#endif + +#ifndef msgpack_unpack_callback +#error msgpack_unpack_callback template is not defined +#endif + +#ifndef msgpack_unpack_struct +#error msgpack_unpack_struct template is not defined +#endif + +#ifndef msgpack_unpack_struct_decl +#define msgpack_unpack_struct_decl(name) msgpack_unpack_struct(name) +#endif + +#ifndef msgpack_unpack_object +#error msgpack_unpack_object type is not defined +#endif + +#ifndef msgpack_unpack_user +#error msgpack_unpack_user type is not defined +#endif + +#ifndef USE_CASE_RANGE +#if !defined(_MSC_VER) +#define USE_CASE_RANGE +#endif +#endif + +msgpack_unpack_struct_decl(_stack) { + msgpack_unpack_object obj; + size_t count; + unsigned int ct; + msgpack_unpack_object map_key; +}; + +msgpack_unpack_struct_decl(_context) { + msgpack_unpack_user user; + unsigned int cs; + unsigned int trail; + unsigned int top; + /* + msgpack_unpack_struct(_stack)* stack; + unsigned int stack_size; + msgpack_unpack_struct(_stack) embed_stack[MSGPACK_EMBED_STACK_SIZE]; + */ + msgpack_unpack_struct(_stack) stack[MSGPACK_EMBED_STACK_SIZE]; +}; + + +msgpack_unpack_func(void, _init)(msgpack_unpack_struct(_context)* ctx) +{ + ctx->cs = MSGPACK_CS_HEADER; + ctx->trail = 0; + ctx->top = 0; + /* + ctx->stack = ctx->embed_stack; + ctx->stack_size = MSGPACK_EMBED_STACK_SIZE; + */ + ctx->stack[0].obj = msgpack_unpack_callback(_root)(&ctx->user); +} + +/* +msgpack_unpack_func(void, _destroy)(msgpack_unpack_struct(_context)* ctx) +{ + if(ctx->stack_size != MSGPACK_EMBED_STACK_SIZE) { + free(ctx->stack); + } +} +*/ + +msgpack_unpack_func(msgpack_unpack_object, _data)(msgpack_unpack_struct(_context)* ctx) +{ + return (ctx)->stack[0].obj; +} + + +msgpack_unpack_func(int, _execute)(msgpack_unpack_struct(_context)* ctx, const char* data, size_t len, size_t* off) +{ + assert(len >= *off); + { + const unsigned char* p = (unsigned char*)data + *off; + const unsigned char* const pe = (unsigned char*)data + len; + const void* n = NULL; + + unsigned int trail = ctx->trail; + unsigned int cs = ctx->cs; + unsigned int top = ctx->top; + msgpack_unpack_struct(_stack)* stack = ctx->stack; + /* + unsigned int stack_size = ctx->stack_size; + */ + msgpack_unpack_user* user = &ctx->user; + + msgpack_unpack_object obj; + msgpack_unpack_struct(_stack)* c = NULL; + + int ret; + +#define push_simple_value(func) \ + ret = msgpack_unpack_callback(func)(user, &obj); \ + if(ret < 0) { goto _failed; } \ + goto _push +#define push_fixed_value(func, arg) \ + ret = msgpack_unpack_callback(func)(user, arg, &obj); \ + if(ret < 0) { goto _failed; } \ + goto _push +#define push_variable_value(func, base, pos, len) \ + ret = msgpack_unpack_callback(func)(user, \ + (const char*)base, (const char*)pos, len, &obj); \ + if(ret < 0) { goto _failed; } \ + goto _push + +#define again_fixed_trail(_cs, trail_len) \ + trail = trail_len; \ + cs = _cs; \ + goto _fixed_trail_again +#define again_fixed_trail_if_zero(_cs, trail_len, ifzero) \ + trail = trail_len; \ + if(trail == 0) { goto ifzero; } \ + cs = _cs; \ + goto _fixed_trail_again + +#define start_container(func, count_, ct_) \ + if(top >= MSGPACK_EMBED_STACK_SIZE) { \ + ret = MSGPACK_UNPACK_NOMEM_ERROR; \ + goto _failed; \ + } /* FIXME */ \ + ret = msgpack_unpack_callback(func)(user, count_, &stack[top].obj); \ + if(ret < 0) { goto _failed; } \ + if((count_) == 0) { obj = stack[top].obj; goto _push; } \ + stack[top].ct = ct_; \ + stack[top].count = count_; \ + ++top; \ + goto _header_again + +#define NEXT_CS(p) \ + ((unsigned int)*p & 0x1f) + +#ifdef USE_CASE_RANGE +#define SWITCH_RANGE_BEGIN switch(*p) { +#define SWITCH_RANGE(FROM, TO) case FROM ... TO: +#define SWITCH_RANGE_DEFAULT default: +#define SWITCH_RANGE_END } +#else +#define SWITCH_RANGE_BEGIN { if(0) { +#define SWITCH_RANGE(FROM, TO) } else if(FROM <= *p && *p <= TO) { +#define SWITCH_RANGE_DEFAULT } else { +#define SWITCH_RANGE_END } } +#endif + + if(p == pe) { goto _out; } + do { + switch(cs) { + case MSGPACK_CS_HEADER: + SWITCH_RANGE_BEGIN + SWITCH_RANGE(0x00, 0x7f) // Positive Fixnum + push_fixed_value(_uint8, *(uint8_t*)p); + SWITCH_RANGE(0xe0, 0xff) // Negative Fixnum + push_fixed_value(_int8, *(int8_t*)p); + SWITCH_RANGE(0xc0, 0xdf) // Variable + switch(*p) { + case 0xc0: // nil + push_simple_value(_nil); + //case 0xc1: // string + // again_terminal_trail(NEXT_CS(p), p+1); + case 0xc2: // false + push_simple_value(_false); + case 0xc3: // true + push_simple_value(_true); + case 0xc4: // bin 8 + case 0xc5: // bin 16 + case 0xc6: // bin 32 + again_fixed_trail(NEXT_CS(p), 1 << (((unsigned int)*p) & 0x03)); + case 0xc7: // ext 8 + case 0xc8: // ext 16 + case 0xc9: // ext 32 + again_fixed_trail(NEXT_CS(p), 1 << ((((unsigned int)*p) + 1) & 0x03)); + case 0xca: // float + case 0xcb: // double + case 0xcc: // unsigned int 8 + case 0xcd: // unsigned int 16 + case 0xce: // unsigned int 32 + case 0xcf: // unsigned int 64 + case 0xd0: // signed int 8 + case 0xd1: // signed int 16 + case 0xd2: // signed int 32 + case 0xd3: // signed int 64 + again_fixed_trail(NEXT_CS(p), 1 << (((unsigned int)*p) & 0x03)); + case 0xd4: // fixext 1 + case 0xd5: // fixext 2 + case 0xd6: // fixext 4 + case 0xd7: // fixext 8 + again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, + (1 << (((unsigned int)*p) & 0x03)) + 1, _ext_zero); + case 0xd8: // fixext 16 + again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, 16+1, _ext_zero); + + case 0xd9: // str 8 + case 0xda: // str 16 + case 0xdb: // str 32 + again_fixed_trail(NEXT_CS(p), 1 << ((((unsigned int)*p) & 0x03) - 1)); + case 0xdc: // array 16 + case 0xdd: // array 32 + case 0xde: // map 16 + case 0xdf: // map 32 + again_fixed_trail(NEXT_CS(p), 2u << (((unsigned int)*p) & 0x01)); + default: + ret = MSGPACK_UNPACK_PARSE_ERROR; + goto _failed; + } + SWITCH_RANGE(0xa0, 0xbf) // FixStr + again_fixed_trail_if_zero(MSGPACK_ACS_STR_VALUE, ((unsigned int)*p & 0x1f), _str_zero); + SWITCH_RANGE(0x90, 0x9f) // FixArray + start_container(_array, ((unsigned int)*p) & 0x0f, MSGPACK_CT_ARRAY_ITEM); + SWITCH_RANGE(0x80, 0x8f) // FixMap + start_container(_map, ((unsigned int)*p) & 0x0f, MSGPACK_CT_MAP_KEY); + + SWITCH_RANGE_DEFAULT + ret = MSGPACK_UNPACK_PARSE_ERROR; + goto _failed; + SWITCH_RANGE_END + // end MSGPACK_CS_HEADER + + + _fixed_trail_again: + ++p; + // fallthrough + + default: + if((size_t)(pe - p) < trail) { goto _out; } + n = p; p += trail - 1; + switch(cs) { + //case MSGPACK_CS_ + //case MSGPACK_CS_ + case MSGPACK_CS_FLOAT: { + union { uint32_t i; float f; } mem; + _msgpack_load32(uint32_t, n, &mem.i); + push_fixed_value(_float, mem.f); } + case MSGPACK_CS_DOUBLE: { + union { uint64_t i; double f; } mem; + _msgpack_load64(uint64_t, n, &mem.i); +#if defined(TARGET_OS_IPHONE) + // ok +#elif defined(__arm__) && !(__ARM_EABI__) // arm-oabi + // https://github.com/msgpack/msgpack-perl/pull/1 + mem.i = (mem.i & 0xFFFFFFFFUL) << 32UL | (mem.i >> 32UL); +#endif + push_fixed_value(_double, mem.f); } + case MSGPACK_CS_UINT_8: + push_fixed_value(_uint8, *(uint8_t*)n); + case MSGPACK_CS_UINT_16:{ + uint16_t tmp; + _msgpack_load16(uint16_t,n,&tmp); + push_fixed_value(_uint16, tmp); + } + case MSGPACK_CS_UINT_32:{ + uint32_t tmp; + _msgpack_load32(uint32_t,n,&tmp); + push_fixed_value(_uint32, tmp); + } + case MSGPACK_CS_UINT_64:{ + uint64_t tmp; + _msgpack_load64(uint64_t,n,&tmp); + push_fixed_value(_uint64, tmp); + } + case MSGPACK_CS_INT_8: + push_fixed_value(_int8, *(int8_t*)n); + case MSGPACK_CS_INT_16:{ + int16_t tmp; + _msgpack_load16(int16_t,n,&tmp); + push_fixed_value(_int16, tmp); + } + case MSGPACK_CS_INT_32:{ + int32_t tmp; + _msgpack_load32(int32_t,n,&tmp); + push_fixed_value(_int32, tmp); + } + case MSGPACK_CS_INT_64:{ + int64_t tmp; + _msgpack_load64(int64_t,n,&tmp); + push_fixed_value(_int64, tmp); + } + case MSGPACK_CS_FIXEXT_1: + again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, 1+1, _ext_zero); + case MSGPACK_CS_FIXEXT_2: + again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, 2+1, _ext_zero); + case MSGPACK_CS_FIXEXT_4: + again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, 4+1, _ext_zero); + case MSGPACK_CS_FIXEXT_8: + again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, 8+1, _ext_zero); + case MSGPACK_CS_FIXEXT_16: + again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, 16+1, _ext_zero); + case MSGPACK_CS_STR_8: + again_fixed_trail_if_zero(MSGPACK_ACS_STR_VALUE, *(uint8_t*)n, _str_zero); + case MSGPACK_CS_BIN_8: + again_fixed_trail_if_zero(MSGPACK_ACS_BIN_VALUE, *(uint8_t*)n, _bin_zero); + case MSGPACK_CS_EXT_8: + again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, (*(uint8_t*)n) + 1, _ext_zero); + case MSGPACK_CS_STR_16:{ + uint16_t tmp; + _msgpack_load16(uint16_t,n,&tmp); + again_fixed_trail_if_zero(MSGPACK_ACS_STR_VALUE, tmp, _str_zero); + } + case MSGPACK_CS_BIN_16:{ + uint16_t tmp; + _msgpack_load16(uint16_t,n,&tmp); + again_fixed_trail_if_zero(MSGPACK_ACS_BIN_VALUE, tmp, _bin_zero); + } + case MSGPACK_CS_EXT_16:{ + uint16_t tmp; + _msgpack_load16(uint16_t,n,&tmp); + again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, tmp + 1, _ext_zero); + } + case MSGPACK_CS_STR_32:{ + uint32_t tmp; + _msgpack_load32(uint32_t,n,&tmp); + again_fixed_trail_if_zero(MSGPACK_ACS_STR_VALUE, tmp, _str_zero); + } + case MSGPACK_CS_BIN_32:{ + uint32_t tmp; + _msgpack_load32(uint32_t,n,&tmp); + again_fixed_trail_if_zero(MSGPACK_ACS_BIN_VALUE, tmp, _bin_zero); + } + case MSGPACK_CS_EXT_32:{ + uint32_t tmp; + _msgpack_load32(uint32_t,n,&tmp); + again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, tmp + 1, _ext_zero); + } + case MSGPACK_ACS_STR_VALUE: + _str_zero: + push_variable_value(_str, data, n, trail); + case MSGPACK_ACS_BIN_VALUE: + _bin_zero: + push_variable_value(_bin, data, n, trail); + case MSGPACK_ACS_EXT_VALUE: + _ext_zero: + push_variable_value(_ext, data, n, trail); + + case MSGPACK_CS_ARRAY_16:{ + uint16_t tmp; + _msgpack_load16(uint16_t,n,&tmp); + start_container(_array, tmp, MSGPACK_CT_ARRAY_ITEM); + } + case MSGPACK_CS_ARRAY_32:{ + /* FIXME security guard */ + uint32_t tmp; + _msgpack_load32(uint32_t,n,&tmp); + start_container(_array, tmp, MSGPACK_CT_ARRAY_ITEM); + } + + case MSGPACK_CS_MAP_16:{ + uint16_t tmp; + _msgpack_load16(uint16_t,n,&tmp); + start_container(_map, tmp, MSGPACK_CT_MAP_KEY); + } + case MSGPACK_CS_MAP_32:{ + /* FIXME security guard */ + uint32_t tmp; + _msgpack_load32(uint32_t,n,&tmp); + start_container(_map, tmp, MSGPACK_CT_MAP_KEY); + } + + default: + ret = MSGPACK_UNPACK_PARSE_ERROR; + goto _failed; + } + } + + _push: + if(top == 0) { goto _finish; } + c = &stack[top-1]; + switch(c->ct) { + case MSGPACK_CT_ARRAY_ITEM: + ret = msgpack_unpack_callback(_array_item)(user, &c->obj, obj); \ + if(ret < 0) { goto _failed; } + if(--c->count == 0) { + obj = c->obj; + --top; + /*printf("stack pop %d\n", top);*/ + goto _push; + } + goto _header_again; + case MSGPACK_CT_MAP_KEY: + c->map_key = obj; + c->ct = MSGPACK_CT_MAP_VALUE; + goto _header_again; + case MSGPACK_CT_MAP_VALUE: + ret = msgpack_unpack_callback(_map_item)(user, &c->obj, c->map_key, obj); \ + if(ret < 0) { goto _failed; } + if(--c->count == 0) { + obj = c->obj; + --top; + /*printf("stack pop %d\n", top);*/ + goto _push; + } + c->ct = MSGPACK_CT_MAP_KEY; + goto _header_again; + + default: + ret = MSGPACK_UNPACK_PARSE_ERROR; + goto _failed; + } + + _header_again: + cs = MSGPACK_CS_HEADER; + ++p; + } while(p != pe); + goto _out; + + + _finish: + stack[0].obj = obj; + ++p; + ret = 1; + /*printf("-- finish --\n"); */ + goto _end; + + _failed: + /*printf("** FAILED **\n"); */ + goto _end; + + _out: + ret = 0; + goto _end; + + _end: + ctx->cs = cs; + ctx->trail = trail; + ctx->top = top; + *off = (size_t)(p - (const unsigned char*)data); + + return ret; + } +} + +#undef msgpack_unpack_func +#undef msgpack_unpack_callback +#undef msgpack_unpack_struct +#undef msgpack_unpack_object +#undef msgpack_unpack_user + +#undef push_simple_value +#undef push_fixed_value +#undef push_variable_value +#undef again_fixed_trail +#undef again_fixed_trail_if_zero +#undef start_container + +#undef NEXT_CS + +#undef SWITCH_RANGE_BEGIN +#undef SWITCH_RANGE +#undef SWITCH_RANGE_DEFAULT +#undef SWITCH_RANGE_END diff --git a/msgpackc/2.1.5/include/msgpack/version_master.h b/msgpackc/2.1.5/include/msgpack/version_master.h new file mode 100755 index 0000000000000000000000000000000000000000..45569412e27373ede3dd0a704382dce14fc1a1d5 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/version_master.h @@ -0,0 +1,3 @@ +#define MSGPACK_VERSION_MAJOR 2 +#define MSGPACK_VERSION_MINOR 1 +#define MSGPACK_VERSION_REVISION 5 diff --git a/msgpackc/2.1.5/include/msgpack/zbuffer.h b/msgpackc/2.1.5/include/msgpack/zbuffer.h new file mode 100755 index 0000000000000000000000000000000000000000..e6f742b6ff5dbab3d59bb4268d8881bbb1097f20 --- /dev/null +++ b/msgpackc/2.1.5/include/msgpack/zbuffer.h @@ -0,0 +1,200 @@ +/* + * MessagePack for C deflate buffer implementation + * + * Copyright (C) 2010 FURUHASHI Sadayuki + * + * Distributed under the Boost Software License, Version 1.0. + * (See accompanying file LICENSE_1_0.txt or copy at + * http://www.boost.org/LICENSE_1_0.txt) + */ +#ifndef MSGPACK_ZBUFFER_H +#define MSGPACK_ZBUFFER_H + +#include "sysdep.h" +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + + +/** + * @defgroup msgpack_zbuffer Compressed buffer + * @ingroup msgpack_buffer + * @{ + */ + +typedef struct msgpack_zbuffer { + z_stream stream; + char* data; + size_t init_size; +} msgpack_zbuffer; + +#ifndef MSGPACK_ZBUFFER_INIT_SIZE +#define MSGPACK_ZBUFFER_INIT_SIZE 8192 +#endif + +static inline bool msgpack_zbuffer_init( + msgpack_zbuffer* zbuf, int level, size_t init_size); +static inline void msgpack_zbuffer_destroy(msgpack_zbuffer* zbuf); + +static inline msgpack_zbuffer* msgpack_zbuffer_new(int level, size_t init_size); +static inline void msgpack_zbuffer_free(msgpack_zbuffer* zbuf); + +static inline char* msgpack_zbuffer_flush(msgpack_zbuffer* zbuf); + +static inline const char* msgpack_zbuffer_data(const msgpack_zbuffer* zbuf); +static inline size_t msgpack_zbuffer_size(const msgpack_zbuffer* zbuf); + +static inline bool msgpack_zbuffer_reset(msgpack_zbuffer* zbuf); +static inline void msgpack_zbuffer_reset_buffer(msgpack_zbuffer* zbuf); +static inline char* msgpack_zbuffer_release_buffer(msgpack_zbuffer* zbuf); + + +#ifndef MSGPACK_ZBUFFER_RESERVE_SIZE +#define MSGPACK_ZBUFFER_RESERVE_SIZE 512 +#endif + +static inline int msgpack_zbuffer_write(void* data, const char* buf, size_t len); + +static inline bool msgpack_zbuffer_expand(msgpack_zbuffer* zbuf); + + +static inline bool msgpack_zbuffer_init(msgpack_zbuffer* zbuf, + int level, size_t init_size) +{ + memset(zbuf, 0, sizeof(msgpack_zbuffer)); + zbuf->init_size = init_size; + if(deflateInit(&zbuf->stream, level) != Z_OK) { + free(zbuf->data); + return false; + } + return true; +} + +static inline void msgpack_zbuffer_destroy(msgpack_zbuffer* zbuf) +{ + deflateEnd(&zbuf->stream); + free(zbuf->data); +} + +static inline msgpack_zbuffer* msgpack_zbuffer_new(int level, size_t init_size) +{ + msgpack_zbuffer* zbuf = (msgpack_zbuffer*)malloc(sizeof(msgpack_zbuffer)); + if (zbuf == NULL) return NULL; + if(!msgpack_zbuffer_init(zbuf, level, init_size)) { + free(zbuf); + return NULL; + } + return zbuf; +} + +static inline void msgpack_zbuffer_free(msgpack_zbuffer* zbuf) +{ + if(zbuf == NULL) { return; } + msgpack_zbuffer_destroy(zbuf); + free(zbuf); +} + +static inline bool msgpack_zbuffer_expand(msgpack_zbuffer* zbuf) +{ + size_t used = (char*)zbuf->stream.next_out - zbuf->data; + size_t csize = used + zbuf->stream.avail_out; + size_t nsize = (csize == 0) ? zbuf->init_size : csize * 2; + + char* tmp = (char*)realloc(zbuf->data, nsize); + if(tmp == NULL) { + return false; + } + + zbuf->data = tmp; + zbuf->stream.next_out = (Bytef*)(tmp + used); + zbuf->stream.avail_out = nsize - used; + + return true; +} + +static inline int msgpack_zbuffer_write(void* data, const char* buf, size_t len) +{ + msgpack_zbuffer* zbuf = (msgpack_zbuffer*)data; + + zbuf->stream.next_in = (Bytef*)buf; + zbuf->stream.avail_in = len; + + while(zbuf->stream.avail_in > 0) { + if(zbuf->stream.avail_out < MSGPACK_ZBUFFER_RESERVE_SIZE) { + if(!msgpack_zbuffer_expand(zbuf)) { + return -1; + } + } + + if(deflate(&zbuf->stream, Z_NO_FLUSH) != Z_OK) { + return -1; + } + } + + return 0; +} + +static inline char* msgpack_zbuffer_flush(msgpack_zbuffer* zbuf) +{ + while(true) { + switch(deflate(&zbuf->stream, Z_FINISH)) { + case Z_STREAM_END: + return zbuf->data; + case Z_OK: + if(!msgpack_zbuffer_expand(zbuf)) { + return NULL; + } + break; + default: + return NULL; + } + } +} + +static inline const char* msgpack_zbuffer_data(const msgpack_zbuffer* zbuf) +{ + return zbuf->data; +} + +static inline size_t msgpack_zbuffer_size(const msgpack_zbuffer* zbuf) +{ + return (char*)zbuf->stream.next_out - zbuf->data; +} + +static inline void msgpack_zbuffer_reset_buffer(msgpack_zbuffer* zbuf) +{ + zbuf->stream.avail_out += (char*)zbuf->stream.next_out - zbuf->data; + zbuf->stream.next_out = (Bytef*)zbuf->data; +} + +static inline bool msgpack_zbuffer_reset(msgpack_zbuffer* zbuf) +{ + if(deflateReset(&zbuf->stream) != Z_OK) { + return false; + } + msgpack_zbuffer_reset_buffer(zbuf); + return true; +} + +static inline char* msgpack_zbuffer_release_buffer(msgpack_zbuffer* zbuf) +{ + char* tmp = zbuf->data; + zbuf->data = NULL; + zbuf->stream.next_out = NULL; + zbuf->stream.avail_out = 0; + return tmp; +} + +/** @} */ + + +#ifdef __cplusplus +} +#endif + +#endif /* msgpack/zbuffer.h */ + diff --git a/qlibc/2.4.2/SunOS-sun4v/SunOS-sun4v.tar b/qlibc/2.4.2/SunOS-sun4v/SunOS-sun4v.tar index b30ffabc1be02c2f0e215742ef5d4fbfba941e22..85c017afb25cbc5439c0d1b14a689a889d251308 100644 Binary files a/qlibc/2.4.2/SunOS-sun4v/SunOS-sun4v.tar and b/qlibc/2.4.2/SunOS-sun4v/SunOS-sun4v.tar differ diff --git a/qlibc/2.4.2/SunOS-sun4v/libqlibc.so b/qlibc/2.4.2/SunOS-sun4v/libqlibc.so index 8bbd7c5ffe0fbe0b21642855e09c650459a72607..607ea9bcd708f45182240427316bfada1c6289db 120000 --- a/qlibc/2.4.2/SunOS-sun4v/libqlibc.so +++ b/qlibc/2.4.2/SunOS-sun4v/libqlibc.so @@ -1 +1 @@ -libqlibc.so.2 \ No newline at end of file +libqlibc.so.1 \ No newline at end of file diff --git a/qlibc/2.4.2/SunOS-sun4v/libqlibc.so.2 b/qlibc/2.4.2/SunOS-sun4v/libqlibc.so.1 similarity index 100% rename from qlibc/2.4.2/SunOS-sun4v/libqlibc.so.2 rename to qlibc/2.4.2/SunOS-sun4v/libqlibc.so.1 diff --git a/qlibc/2.4.2/SunOS-sun4v/libqlibcext.so b/qlibc/2.4.2/SunOS-sun4v/libqlibcext.so index 2dffc966962521cea0fa85c9ecf2cc3de99b2e0a..607ea9bcd708f45182240427316bfada1c6289db 120000 --- a/qlibc/2.4.2/SunOS-sun4v/libqlibcext.so +++ b/qlibc/2.4.2/SunOS-sun4v/libqlibcext.so @@ -1 +1 @@ -libqlibcext.so.2 \ No newline at end of file +libqlibc.so.1 \ No newline at end of file diff --git a/qlibc/2.4.2/SunOS-sun4v/libqlibcext.so.2 b/qlibc/2.4.2/SunOS-sun4v/libqlibcext.so.1 similarity index 100% rename from qlibc/2.4.2/SunOS-sun4v/libqlibcext.so.2 rename to qlibc/2.4.2/SunOS-sun4v/libqlibcext.so.1