|
- remove yajl_status_parse_incomplete, replace with three
flag settings
- yajl_allow_multiple_values
- yajl_forbid_trailing_garbage
- yajl_forbid_partial_values
In the new model, callers must consistently call yajl_parse_complete
and check it's return. Two new parse errors have been introduced:
"premature EOF" and "trailing garbage".
yajl_test.c demonstrates the simplifying effect on calling code.
adds 3 flags to yajl_test
-g forbids trailing garbage
-p forbids partial values
-m allows multiple values to be parsed.
and complementary tests.
lth: Addresses the majority of issue #24. gno is awesomesauce.
Signed-off-by: Lloyd Hilaiel <lloyd@hilaiel.com>
|