diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-12-14 23:15:34 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-12-14 23:15:34 +0000 |
commit | 528795a5daf767532a42b492db29deeadebcb249 (patch) | |
tree | 06b6fba37d2a740341139131cfbd47eb0b59ab7f /test/tokeniser3.c | |
parent | d509919a3bc507f3898e2166978462badbaab599 (diff) | |
download | libhubbub-528795a5daf767532a42b492db29deeadebcb249.tar.gz libhubbub-528795a5daf767532a42b492db29deeadebcb249.tar.bz2 |
Remove client allocation function and update for new lpu API.
Diffstat (limited to 'test/tokeniser3.c')
-rw-r--r-- | test/tokeniser3.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/test/tokeniser3.c b/test/tokeniser3.c index 9f0f84e..949ddd0 100644 --- a/test/tokeniser3.c +++ b/test/tokeniser3.c @@ -30,13 +30,6 @@ typedef struct context { static void run_test(context *ctx); static hubbub_error token_handler(const hubbub_token *token, void *pw); -static void *myrealloc(void *ptr, size_t len, void *pw) -{ - UNUSED(pw); - - return realloc(ptr, len); -} - int main(int argc, char **argv) { struct json_object *json; @@ -133,10 +126,9 @@ void run_test(context *ctx) ctx->char_off = 0; assert(parserutils_inputstream_create("UTF-8", 0, NULL, - myrealloc, NULL, &stream) == PARSERUTILS_OK); + &stream) == PARSERUTILS_OK); - assert(hubbub_tokeniser_create(stream, myrealloc, NULL, &tok) == - HUBBUB_OK); + assert(hubbub_tokeniser_create(stream, &tok) == HUBBUB_OK); if (ctx->last_start_tag != NULL) { /* Fake up a start tag, in PCDATA state */ |