summaryrefslogtreecommitdiff
path: root/src/parse/parse.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-08-04 18:26:34 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-08-04 18:26:34 +0000
commit22f18932fb790295e6047ca1301687ade5546e94 (patch)
tree987cc975f7419e2a00ec9a5f504791b2750ff11a /src/parse/parse.c
parent4680b309e825db1d669b04056bc3cbdf273f5d80 (diff)
downloadlibcss-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 'src/parse/parse.c')
-rw-r--r--src/parse/parse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parse/parse.c b/src/parse/parse.c
index b66642b..c603d6b 100644
--- a/src/parse/parse.c
+++ b/src/parse/parse.c
@@ -995,7 +995,7 @@ css_error parseAtRuleEnd(css_parser *parser)
if (parser->event != NULL) {
if (parser->event(CSS_PARSER_START_ATRULE,
parser->tokens, parser->event_pw) ==
- false) {
+ CSS_INVALID) {
parser_state to = { sMalformedAtRule, Initial };
return transitionNoRet(parser, to);
@@ -1267,7 +1267,8 @@ css_error parseSelector(css_parser *parser)
if (parser->event != NULL) {
if (parser->event(CSS_PARSER_SELECTOR,
parser->tokens,
- parser->event_pw) == false) {
+ parser->event_pw) ==
+ CSS_INVALID) {
/* parse error */
parser->parseError = true;
}