Skip to content

Commit

Permalink
move unnec. includes out of public api, more yajl_type propogation
Browse files Browse the repository at this point in the history
  • Loading branch information
lloyd committed Apr 23, 2011
1 parent 69a9c26 commit 9bf2ad8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/api/yajl_tree.h
Expand Up @@ -26,9 +26,6 @@
#ifndef YAJL_TREE_H
#define YAJL_TREE_H 1

#include <stdint.h>
#include <inttypes.h>

#include <yajl/yajl_common.h>

/* Forward declaration, because "yajl_val_object_t" and "yajl_val_array"
Expand Down Expand Up @@ -105,7 +102,7 @@ struct yajl_val_s
{
/** Type of the value contained. Use the "YAJL_IS_*" macors to check for a
* specific type. */
uint8_t type;
yajl_type type;
/** Type-specific data. Use the "YAJL_TO_*" macros to access these
* members. */
union
Expand Down
3 changes: 2 additions & 1 deletion src/yajl_tree.c
Expand Up @@ -19,6 +19,7 @@
#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 @@ -50,7 +51,7 @@ typedef struct context_s context_t;
return (retval); \
} while (0) \

static yajl_val value_alloc (uint8_t type)
static yajl_val value_alloc (yajl_type type)
{
yajl_val v;

Expand Down

0 comments on commit 9bf2ad8

Please sign in to comment.