diff options
author | Lloyd Hilaiel <lloyd@hilaiel.com> | 2009-04-01 18:05:07 +0300 |
---|---|---|
committer | Lloyd Hilaiel <lloyd@hilaiel.com> | 2009-04-01 18:05:07 +0300 |
commit | b78dd790825e3347422ef8ac56d2ad557a473e8f (patch) | |
tree | e1caa8c32bad3281b704d334b1a4d94c561af2ce /verify | |
parent | af305526e77828621de645c4dd4c93f2d76b821b (diff) | |
download | yajl-b78dd790825e3347422ef8ac56d2ad557a473e8f.tar.gz |
* BREAKING API CHANGE: allow client to specify memory allocation routines
* bump yajl version to 1.0.0
* update TODO list, removing completed tasks
* update yajl_test to override allocation routines and count allocations/frees, providing an automated standalone way to validate we're not leaky
* update all copyright dates
* update all .gold files with new test output
* update ChangeLog in preparation for 1.0.0 release
Diffstat (limited to 'verify')
-rw-r--r-- | verify/CMakeLists.txt | 2 | ||||
-rw-r--r-- | verify/json_verify.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/verify/CMakeLists.txt b/verify/CMakeLists.txt index 17efd83..68aaff9 100644 --- a/verify/CMakeLists.txt +++ b/verify/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright 2007, Lloyd Hilaiel. +# Copyright 2007-2009, Lloyd Hilaiel. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are diff --git a/verify/json_verify.c b/verify/json_verify.c index f76fbe9..11d0285 100644 --- a/verify/json_verify.c +++ b/verify/json_verify.c @@ -1,5 +1,5 @@ /* - * Copyright 2007, Lloyd Hilaiel. + * Copyright 2007-2009, Lloyd Hilaiel. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -80,7 +80,7 @@ main(int argc, char ** argv) } /* allocate a parser */ - hand = yajl_alloc(NULL, &cfg, NULL); + hand = yajl_alloc(NULL, &cfg, NULL, NULL); while (!done) { rd = fread((void *) fileData, 1, sizeof(fileData) - 1, stdin); @@ -112,7 +112,7 @@ main(int argc, char ** argv) if (!quiet) { unsigned char * str = yajl_get_error(hand, 1, fileData, rd); fprintf(stderr, (const char *) str); - yajl_free_error(str); + yajl_free_error(hand, str); } retval = 1; break; |