From 22f18932fb790295e6047ca1301687ade5546e94 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 4 Aug 2008 18:26:34 +0000 Subject: Change API of event callback to return css_error (this is more useful than bool) Implement all the context-related event handlers in the stage 2 parser. svn path=/trunk/libcss/; revision=4898 --- test/parse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/parse.c b/test/parse.c index 7ee705b..dff11a1 100644 --- a/test/parse.c +++ b/test/parse.c @@ -18,7 +18,7 @@ static void *myrealloc(void *ptr, size_t len, void *pw) return realloc(ptr, len); } -static bool event_handler(css_parser_event type, +static css_error event_handler(css_parser_event type, const parserutils_vector *tokens, void *pw) { #if 0 @@ -35,7 +35,7 @@ static bool event_handler(css_parser_event type, if (tokens == NULL) { printf("\n"); - return true; + return CSS_OK; } do { @@ -52,7 +52,7 @@ static bool event_handler(css_parser_event type, printf("\n"); #endif - return true; + return CSS_OK; } int main(int argc, char **argv) -- cgit v1.2.3