mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-05-28 15:14:11 +02:00
Removed the last comma at enum definitions to support C++03 strictly.
This commit is contained in:
parent
4ef69da25d
commit
b6b2ef5e57
@ -35,12 +35,12 @@ extern "C" {
|
||||
typedef enum {
|
||||
MSGPACK_OBJECT_NIL = 0x00,
|
||||
MSGPACK_OBJECT_BOOLEAN = 0x01,
|
||||
MSGPACK_OBJECT_POSITIVE_INTEGER = 0x02,
|
||||
MSGPACK_OBJECT_NEGATIVE_INTEGER = 0x03,
|
||||
MSGPACK_OBJECT_POSITIVE_INTEGER = 0x02,
|
||||
MSGPACK_OBJECT_NEGATIVE_INTEGER = 0x03,
|
||||
MSGPACK_OBJECT_DOUBLE = 0x04,
|
||||
MSGPACK_OBJECT_RAW = 0x05,
|
||||
MSGPACK_OBJECT_ARRAY = 0x06,
|
||||
MSGPACK_OBJECT_MAP = 0x07,
|
||||
MSGPACK_OBJECT_MAP = 0x07
|
||||
} msgpack_object_type;
|
||||
|
||||
|
||||
|
@ -42,7 +42,7 @@ namespace type {
|
||||
DOUBLE = MSGPACK_OBJECT_DOUBLE,
|
||||
RAW = MSGPACK_OBJECT_RAW,
|
||||
ARRAY = MSGPACK_OBJECT_ARRAY,
|
||||
MAP = MSGPACK_OBJECT_MAP,
|
||||
MAP = MSGPACK_OBJECT_MAP
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -178,8 +178,8 @@ static inline size_t msgpack_unpacker_message_size(const msgpack_unpacker* mpac)
|
||||
typedef enum {
|
||||
MSGPACK_UNPACK_SUCCESS = 2,
|
||||
MSGPACK_UNPACK_EXTRA_BYTES = 1,
|
||||
MSGPACK_UNPACK_CONTINUE = 0,
|
||||
MSGPACK_UNPACK_PARSE_ERROR = -1,
|
||||
MSGPACK_UNPACK_CONTINUE = 0,
|
||||
MSGPACK_UNPACK_PARSE_ERROR = -1
|
||||
} msgpack_unpack_return;
|
||||
|
||||
// obsolete
|
||||
|
@ -680,7 +680,7 @@ typedef enum {
|
||||
UNPACK_SUCCESS = 2,
|
||||
UNPACK_EXTRA_BYTES = 1,
|
||||
UNPACK_CONTINUE = 0,
|
||||
UNPACK_PARSE_ERROR = -1,
|
||||
UNPACK_PARSE_ERROR = -1
|
||||
} unpack_return;
|
||||
|
||||
// obsolete
|
||||
|
@ -76,14 +76,14 @@ typedef enum {
|
||||
|
||||
//ACS_BIG_INT_VALUE,
|
||||
//ACS_BIG_FLOAT_VALUE,
|
||||
ACS_RAW_VALUE,
|
||||
ACS_RAW_VALUE
|
||||
} msgpack_unpack_state;
|
||||
|
||||
|
||||
typedef enum {
|
||||
CT_ARRAY_ITEM,
|
||||
CT_MAP_KEY,
|
||||
CT_MAP_VALUE,
|
||||
CT_MAP_VALUE
|
||||
} msgpack_container_type;
|
||||
|
||||
|
||||
|
@ -50,7 +50,7 @@ public:
|
||||
|
||||
enum flags_t {
|
||||
A = 0,
|
||||
B = 1,
|
||||
B = 1
|
||||
};
|
||||
|
||||
flags_t flag;
|
||||
|
Loading…
x
Reference in New Issue
Block a user