Skip to content

Commit

Permalink
remove usage of inttypes, cause its winblows hostile
Browse files Browse the repository at this point in the history
  • Loading branch information
lloyd committed Apr 25, 2011
1 parent c152ba0 commit 8b203ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/api/yajl_gen.h
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions src/yajl_tree.c
Expand Up @@ -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"
Expand Down Expand Up @@ -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;
Expand All @@ -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);
}
}
Expand Down

0 comments on commit 8b203ac

Please sign in to comment.