diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-08-04 18:26:34 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-08-04 18:26:34 +0000 |
commit | 22f18932fb790295e6047ca1301687ade5546e94 (patch) | |
tree | 987cc975f7419e2a00ec9a5f504791b2750ff11a /test | |
parent | 4680b309e825db1d669b04056bc3cbdf273f5d80 (diff) | |
download | libcss-22f18932fb790295e6047ca1301687ade5546e94.tar.gz libcss-22f18932fb790295e6047ca1301687ade5546e94.tar.bz2 |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) |