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/parser.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/parser.c')
-rw-r--r-- | test/parser.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/test/parser.c b/test/parser.c index 93bdad2..6b0db45 100644 --- a/test/parser.c +++ b/test/parser.c @@ -12,13 +12,6 @@ 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); -} - static int run_test(int argc, char **argv, unsigned int CHUNK_SIZE) { hubbub_parser *parser; @@ -31,8 +24,7 @@ static int run_test(int argc, char **argv, unsigned int CHUNK_SIZE) UNUSED(argc); - assert(hubbub_parser_create("UTF-8", false, myrealloc, NULL, &parser) == - HUBBUB_OK); + assert(hubbub_parser_create("UTF-8", false, &parser) == HUBBUB_OK); params.token_handler.handler = token_handler; params.token_handler.pw = NULL; |