From 528795a5daf767532a42b492db29deeadebcb249 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 14 Dec 2013 23:15:34 +0000 Subject: Remove client allocation function and update for new lpu API. --- test/tokeniser2.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'test/tokeniser2.c') diff --git a/test/tokeniser2.c b/test/tokeniser2.c index 443b71d..c8ab9c0 100644 --- a/test/tokeniser2.c +++ b/test/tokeniser2.c @@ -32,13 +32,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; @@ -135,10 +128,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 */ -- cgit v1.2.3