From 6481bd7f3a503573c31b224dfde229dce2e9b68f Mon Sep 17 00:00:00 2001 From: Andrew Sidwell Date: Sat, 9 Aug 2008 19:34:52 +0000 Subject: Propagate the use of hubbub_error up into at least a bit of the treebuilder. svn path=/trunk/hubbub/; revision=4979 --- test/tokeniser.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/tokeniser.c') diff --git a/test/tokeniser.c b/test/tokeniser.c index 0ccf264..77635bc 100644 --- a/test/tokeniser.c +++ b/test/tokeniser.c @@ -11,7 +11,7 @@ #include "testutils.h" -static void token_handler(const hubbub_token *token, void *pw); +static hubbub_error token_handler(const hubbub_token *token, void *pw); static void *myrealloc(void *ptr, size_t len, void *pw) { @@ -98,7 +98,7 @@ int main(int argc, char **argv) return 0; } -void token_handler(const hubbub_token *token, void *pw) +hubbub_error token_handler(const hubbub_token *token, void *pw) { static const char *token_names[] = { "DOCTYPE", "START TAG", "END TAG", @@ -177,4 +177,6 @@ void token_handler(const hubbub_token *token, void *pw) printf("\n"); break; } + + return HUBBUB_OK; } -- cgit v1.2.3