summaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
authorfrsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731>2009-02-15 09:09:57 +0000
committerfrsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731>2009-02-15 09:09:57 +0000
commit1278eb3c63e2371283e07c0360b044728d72c704 (patch)
treeaa9f840ff56445b5cbb31fd40391f29a3607e859 /c
parenta0a798d79e5c11bae1b0b6a94b25e0dee0c19b77 (diff)
downloadmsgpack-python-1278eb3c63e2371283e07c0360b044728d72c704.tar.gz
lang/c/msgpack: fix types
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@63 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
Diffstat (limited to 'c')
-rw-r--r--c/bench.c2
-rw-r--r--c/bench_inline.c2
-rw-r--r--c/unpack.h2
-rw-r--r--c/unpack_inline.c2
4 files changed, 3 insertions, 5 deletions
diff --git a/c/bench.c b/c/bench.c
index 91f0c21..6b8466f 100644
--- a/c/bench.c
+++ b/c/bench.c
@@ -55,7 +55,7 @@ static void* unpack_array_start(void* data, unsigned int n) { return NULL; }
static void unpack_array_item(void* data, void* c, void* o) { }
static void* unpack_map_start(void* data, unsigned int n) { return NULL; }
static void unpack_map_item(void* data, void* c, void* k, void* v) { }
-static void* unpack_raw(void* data, const void* b, const void* p, size_t l) { /*printf("unpack raw %p %lu\n",p,l);*/ return NULL; }
+static void* unpack_raw(void* data, const char* b, const char* p, unsigned int l) { /*printf("unpack raw %p %lu\n",p,l);*/ return NULL; }
typedef struct {
size_t allocated;
diff --git a/c/bench_inline.c b/c/bench_inline.c
index 5390319..bb3c431 100644
--- a/c/bench_inline.c
+++ b/c/bench_inline.c
@@ -56,8 +56,6 @@ static inline void* msgpack_unpack_signed_int_32(msgpack_unpack_context* x, int3
static inline void* msgpack_unpack_signed_int_64(msgpack_unpack_context* x, int64_t d) { return NULL; }
static inline void* msgpack_unpack_float(msgpack_unpack_context* x, float d) { return NULL; }
static inline void* msgpack_unpack_double(msgpack_unpack_context* x, double d) { return NULL; }
-static inline void* msgpack_unpack_big_int(msgpack_unpack_context* x, const void* b, unsigned int l) { return NULL; }
-static inline void* msgpack_unpack_big_float(msgpack_unpack_context* x, const void* b, unsigned int l) { return NULL; }
static inline void* msgpack_unpack_nil(msgpack_unpack_context* x) { return NULL; }
static inline void* msgpack_unpack_true(msgpack_unpack_context* x) { return NULL; }
static inline void* msgpack_unpack_false(msgpack_unpack_context* x) { return NULL; }
diff --git a/c/unpack.h b/c/unpack.h
index 094328e..6367439 100644
--- a/c/unpack.h
+++ b/c/unpack.h
@@ -39,7 +39,7 @@ typedef struct {
void (*unpack_array_item)(void* data, void* c, void* o);
void* (*unpack_map_start)(void* data, unsigned int n);
void (*unpack_map_item)(void* data, void* c, void* k, void* v);
- void* (*unpack_raw)(void* data, const void* b, const void* p, size_t l);
+ void* (*unpack_raw)(void* data, const char* b, const char* p, unsigned int l);
} msgpack_unpack_callback;
typedef struct {
diff --git a/c/unpack_inline.c b/c/unpack_inline.c
index d758d3e..5282282 100644
--- a/c/unpack_inline.c
+++ b/c/unpack_inline.c
@@ -71,7 +71,7 @@ static inline void* msgpack_unpack_map_start(msgpack_unpack_t* x, unsigned int n
static inline void msgpack_unpack_map_item(msgpack_unpack_t* x, void* c, void* k, void* v)
{ x->callback.unpack_map_item(x->data, c, k, v); }
-static inline void* msgpack_unpack_raw(msgpack_unpack_t* x, const void* b, const void* p, size_t l)
+static inline void* msgpack_unpack_raw(msgpack_unpack_t* x, const char* b, const char* p, unsigned int l)
{ return x->callback.unpack_raw(x->data, b, p, l); }