summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@gnome.org>2004-02-13 23:08:08 +0000
committerDodji Seketeli <dodji@src.gnome.org>2004-02-13 23:08:08 +0000
commit7e0fccbf68db9dc79f502a2c5685718194404d60 (patch)
tree28e2ba954a92779300ca02072193edbe6b6c743b /tests
parent63f60598e030911846c399c3aab45e0cc8ee2993 (diff)
downloadlibcroco-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 'tests')
-rw-r--r--tests/test4-main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test4-main.c b/tests/test4-main.c
index 5db1383..4d0b68e 100644
--- a/tests/test4-main.c
+++ b/tests/test4-main.c
@@ -3,8 +3,6 @@
/*
* This file is part of The Croco Library
*
- * Copyright (C) 2002-2003 Dodji Seketeli <dodji@seketeli.org>
- *
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2.1 of the GNU Lesser General Public
* License as published by the Free Software Foundation.
@@ -18,6 +16,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
+ *
+ * See COPYRIGHTS file for copyrights information.
*/
/*
@@ -39,7 +39,7 @@ const guchar * gv_decl_buf =
"toto: tutu, tata" ;
const guchar * gv_decl_list_buf =
-"toto: titi; prop1:val1 ; prop2:val2" ;
+"toto: titi; prop1:val1 ; prop2:val2;" ;
const guchar *gv_ruleset_buf =
"s1 > s2 {toto: tutu, tata} "