diff options
author | Lloyd Hilaiel <lloyd@hilaiel.com> | 2009-12-17 12:08:22 -0800 |
---|---|---|
committer | Lloyd Hilaiel <lloyd@hilaiel.com> | 2009-12-17 12:08:22 -0800 |
commit | 02673898ebc130b972b51a4f4652bff357d81d11 (patch) | |
tree | 4f1c5b7ddeff0b5052fcd99678c5003abadf6f45 | |
parent | f02de6765e5b8415fda1b080aeff2875a81ef6b1 (diff) | |
download | yajl-02673898ebc130b972b51a4f4652bff357d81d11.tar.gz |
prune a now unused parameter (tanks' @agentdero)
-rw-r--r-- | src/yajl.c | 2 | ||||
-rw-r--r-- | src/yajl_parser.c | 6 | ||||
-rw-r--r-- | src/yajl_parser.h | 4 |
3 files changed, 6 insertions, 6 deletions
@@ -118,7 +118,7 @@ yajl_parse(yajl_handle hand, const unsigned char * jsonText, unsigned int jsonTextLen) { yajl_status status; - status = yajl_do_parse(hand, 0, jsonText, jsonTextLen); + status = yajl_do_parse(hand, jsonText, jsonTextLen); return status; } diff --git a/src/yajl_parser.c b/src/yajl_parser.c index 122b823..1f20fae 100644 --- a/src/yajl_parser.c +++ b/src/yajl_parser.c @@ -136,15 +136,15 @@ yajl_render_error_string(yajl_handle hand, const unsigned char * jsonText, yajl_status -yajl_do_parse(yajl_handle hand, unsigned int offsetStart, - const unsigned char * jsonText, unsigned int jsonTextLen) +yajl_do_parse(yajl_handle hand, const unsigned char * jsonText, + unsigned int jsonTextLen) { yajl_tok tok; const unsigned char * buf; unsigned int bufLen; unsigned int * offset = &(hand->bytesConsumed); - *offset = offsetStart; + *offset = 0; around_again: diff --git a/src/yajl_parser.h b/src/yajl_parser.h index d0bcece..bece78b 100644 --- a/src/yajl_parser.h +++ b/src/yajl_parser.h @@ -71,8 +71,8 @@ struct yajl_handle_t { }; yajl_status -yajl_do_parse(yajl_handle handle, unsigned int offset, - const unsigned char * jsonText, unsigned int jsonTextLen); +yajl_do_parse(yajl_handle handle, const unsigned char * jsonText, + unsigned int jsonTextLen); unsigned char * yajl_render_error_string(yajl_handle hand, const unsigned char * jsonText, |