diff options
author | Lloyd Hilaiel <lloyd@hilaiel.com> | 2011-04-22 19:17:44 -0600 |
---|---|---|
committer | Lloyd Hilaiel <lloyd@hilaiel.com> | 2011-04-22 19:17:44 -0600 |
commit | 69a9c263b5e3c2019dc258d3e75c95ad7267ea16 (patch) | |
tree | 46f88aa049c3016e68a93463ff265fcdd38d879a /example | |
parent | d24690ee5cc09ea2cf6bbd152f2627e8ee1986e7 (diff) | |
download | yajl-69a9c263b5e3c2019dc258d3e75c95ad7267ea16.tar.gz |
change types from preprocessor macros to an enum, add yajl_t_any for use with yajl_tree_get()
Diffstat (limited to 'example')
-rw-r--r-- | example/parse_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/parse_config.c b/example/parse_config.c index e5e32b4..acce032 100644 --- a/example/parse_config.c +++ b/example/parse_config.c @@ -59,7 +59,7 @@ main(void) /* now extract a nested value from the config file */ { const char * path[] = { "Logging", "timeFormat", (const char *) 0 }; - yajl_val v = yajl_tree_get(node, path, YAJL_TYPE_STRING); + yajl_val v = yajl_tree_get(node, path, yajl_t_string); if (v) printf("Logging/timeFomat: %s\n", YAJL_GET_STRING(v)); else printf("no such node: %s/%s\n", path[0], path[1]); } |