diff options
author | lloydh <lloydh@e775cfb5-b74b-0410-aad5-5bebe4a96390> | 2007-07-25 06:58:52 +0000 |
---|---|---|
committer | lloydh <lloydh@e775cfb5-b74b-0410-aad5-5bebe4a96390> | 2007-07-25 06:58:52 +0000 |
commit | f4f23d8f42e781bc11a184fe5fcfc5b30ff73653 (patch) | |
tree | dd288f274a5e4c23782cacd652b5a30311b0c505 /verify/json_verify.c | |
parent | aa80518b07e6a21e6d875830e8864530458cd8dd (diff) | |
download | yajl-f4f23d8f42e781bc11a184fe5fcfc5b30ff73653.tar.gz |
support comments, configurable with an argument to yajl_alloc.
git-svn-id: http://yajl-c.googlecode.com/svn/yajl/trunk@63 e775cfb5-b74b-0410-aad5-5bebe4a96390
Diffstat (limited to 'verify/json_verify.c')
-rw-r--r-- | verify/json_verify.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/verify/json_verify.c b/verify/json_verify.c index 9ec04b9..943c975 100644 --- a/verify/json_verify.c +++ b/verify/json_verify.c @@ -53,8 +53,10 @@ main(int argc, char ** argv) static unsigned char fileData[8192]; int quiet = 0; int retval; + yajl_parser_config cfg = { 0 }; /* check arguments.*/ + /* XXX: comment flag! */ if (argc == 2 && !strcmp("-q", argv[1])) { quiet = 1; } else if (argc != 1) { @@ -62,7 +64,7 @@ main(int argc, char ** argv) } /* allocate a parser */ - hand = yajl_alloc(NULL, NULL); + hand = yajl_alloc(NULL, &cfg, NULL); rd = fread((void *) fileData, 1, sizeof(fileData) - 1, stdin); |