diff options
author | Dodji Seketeli <dodji@gnome.org> | 2004-02-13 23:08:08 +0000 |
---|---|---|
committer | Dodji Seketeli <dodji@src.gnome.org> | 2004-02-13 23:08:08 +0000 |
commit | 7e0fccbf68db9dc79f502a2c5685718194404d60 (patch) | |
tree | 28e2ba954a92779300ca02072193edbe6b6c743b /ChangeLog | |
parent | 63f60598e030911846c399c3aab45e0cc8ee2993 (diff) | |
download | libcroco-7e0fccbf68db9dc79f502a2c5685718194404d60.tar.gz |
when we encounter an EOF right after a ';' don't return an error. fix a
2004-02-13 Dodji Seketeli <dodji@gnome.org>
* src/cr-declaration.c:
(cr_declaration_parse_list_from_buf): when we encounter an EOF
right after a ';' don't return an error.
* src/cr-parser.c:
(CHECK_PARSING_STATUS_ERR): fix a possibly nasty typo.
(cr_parser_parse_property): when there is an error here,
return the underlying error instead of returning just CR_PARSING_ERROR.
(cr_parser_parse_declaration): when we encounter an EOF just at
the beginning of parsing, return CR_END_OF_INPUT_ERROR instead
of CR_PARSING_ERROR. More generaly, we should always return
CR_END_OF_INPUT_ERROR when we encounter that error, and not return
CR_PARSING_ERROR instead.
tests/test4-main.c:
(test_cr_declaration_parse_list): updated this to reflect catch
trailing ';' at the end of declaration list.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -1,3 +1,21 @@ +2004-02-13 Dodji Seketeli <dodji@gnome.org> + + * src/cr-declaration.c: + (cr_declaration_parse_list_from_buf): when we encounter an EOF + right after a ';' don't return an error. + * src/cr-parser.c: + (CHECK_PARSING_STATUS_ERR): fix a possibly nasty typo. + (cr_parser_parse_property): when there is an error here, + return the underlying error instead of returning just CR_PARSING_ERROR. + (cr_parser_parse_declaration): when we encounter an EOF just at + the beginning of parsing, return CR_END_OF_INPUT_ERROR instead + of CR_PARSING_ERROR. More generaly, we should always return + CR_END_OF_INPUT_ERROR when we encounter that error, and not return + CR_PARSING_ERROR instead. + tests/test4-main.c: + (test_cr_declaration_parse_list): updated this to reflect catch + trailing ';' at the end of declaration list. + 2004-02-12 Dodji Seketeli <dodji@gnome.org> * src/cr-declaration.[ch]: |