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:
frsyuki 2009-02-15 09:09:57 +00:00
parent a0a798d79e
commit 1278eb3c63
17 changed files with 85 additions and 71 deletions

View file

@ -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);

View file

@ -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;

View file

@ -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