diff options
author | Lloyd Hilaiel <lloyd@hilaiel.com> | 2011-04-25 11:39:43 -0600 |
---|---|---|
committer | Lloyd Hilaiel <lloyd@hilaiel.com> | 2011-04-25 11:39:43 -0600 |
commit | 8b203acbff93612f2e504a9e725ad8a995eaeffc (patch) | |
tree | 81ffb5d8eb411a21958316d0374048785b396b3c /src | |
parent | c152ba0ab3b4de220ae86f0c2ab702e197e81b3c (diff) | |
download | yajl-8b203acbff93612f2e504a9e725ad8a995eaeffc.tar.gz |
remove usage of inttypes, cause its winblows hostile
Diffstat (limited to 'src')
-rw-r--r-- | src/api/yajl_gen.h | 2 | ||||
-rw-r--r-- | src/yajl_tree.c | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/api/yajl_gen.h b/src/api/yajl_gen.h index 61c0bd1..8f88ef4 100644 --- a/src/api/yajl_gen.h +++ b/src/api/yajl_gen.h @@ -101,8 +101,6 @@ extern "C" { YAJL_API int yajl_gen_config(yajl_gen g, yajl_gen_option opt, ...); /** allocate a generator handle - * \param config a pointer to a structure containing parameters which - * configure the behavior of the json generator * \param allocFuncs an optional pointer to a structure which allows * the client to overide the memory allocation * used by yajl. May be NULL, in which case diff --git a/src/yajl_tree.c b/src/yajl_tree.c index f48ddb6..e05e41b 100644 --- a/src/yajl_tree.c +++ b/src/yajl_tree.c @@ -19,7 +19,6 @@ #include <string.h> #include <errno.h> #include <assert.h> -#include <inttypes.h> #include "api/yajl_tree.h" #include "api/yajl_parse.h" @@ -236,7 +235,7 @@ static int context_add_value (context_t *ctx, yajl_val v) { if (!YAJL_IS_STRING (v)) RETURN_ERROR (ctx, EINVAL, "context_add_value: " - "Object key is not a string (%#04"PRIx8")", + "Object key is not a string (%#04x)", v->type); ctx->stack->key = v->u.string; @@ -260,7 +259,7 @@ static int context_add_value (context_t *ctx, yajl_val v) else { RETURN_ERROR (ctx, EINVAL, "context_add_value: Cannot add value to " - "a value of type %#04"PRIx8" (not a composite type)", + "a value of type %#04x (not a composite type)", ctx->stack->value->type); } } |