mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 02:09:59 +00:00
lang/c/msgpack: fix types
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@63 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
This commit is contained in:
parent
a0a798d79e
commit
1278eb3c63
17 changed files with 85 additions and 71 deletions
|
|
@ -20,5 +20,5 @@ msgpack_object msgpack_unpack_array_start(msgpack_unpack_context* x, unsigned in
|
|||
msgpack_object msgpack_unpack_map_start(msgpack_unpack_context* x, unsigned int n);
|
||||
void msgpack_unpack_map_item(msgpack_unpack_context* x, msgpack_object c, msgpack_object k, msgpack_object v);
|
||||
msgpack_object msgpack_unpack_string(msgpack_unpack_context* x, const void* b, size_t l);
|
||||
msgpack_object msgpack_unpack_raw(msgpack_unpack_context* x, const void* b, const void* p, size_t l);
|
||||
msgpack_object msgpack_unpack_raw(msgpack_unpack_context* x, const char* b, const char* p, unsigned int l);
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ typedef struct {
|
|||
typedef struct {
|
||||
msgpack_unpack_context user; // must be first
|
||||
unsigned int cs;
|
||||
size_t trail;
|
||||
unsigned int trail;
|
||||
unsigned int top;
|
||||
msgpack_unpacker_stack stack[MSG_STACK_SIZE];
|
||||
} msgpack_unpacker;
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ int msgpack_unpacker_execute(msgpack_unpacker* ctx, const char* data, size_t len
|
|||
const unsigned char* const pe = (unsigned char*)data + len;
|
||||
const void* n = NULL;
|
||||
|
||||
size_t trail = ctx->trail;
|
||||
unsigned int trail = ctx->trail;
|
||||
unsigned int cs = ctx->cs;
|
||||
unsigned int top = ctx->top;
|
||||
msgpack_unpacker_stack* stack = ctx->stack;
|
||||
|
|
@ -187,7 +187,7 @@ int msgpack_unpacker_execute(msgpack_unpacker* ctx, const char* data, size_t len
|
|||
/*printf("obj %d\n",obj);*/ \
|
||||
goto _push
|
||||
#define push_variable_value(func, base, pos, len) \
|
||||
obj = func(user, (const void*)base, (const void*)pos, len); \
|
||||
obj = func(user, (const char*)base, (const char*)pos, len); \
|
||||
/*printf("obj %d\n",obj);*/ \
|
||||
goto _push
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue