r5255 jmb - in /trunk/libcss: src/parse/css21.c test/parse.c

netsurf at semichrome.net netsurf at semichrome.net
Fri Sep 5 12:44:12 BST 2008


Author: jmb
Date: Fri Sep  5 06:44:12 2008
New Revision: 5255

URL: http://source.netsurf-browser.org?rev=5255&view=rev
Log:
Minor changes.

Modified:
    trunk/libcss/src/parse/css21.c
    trunk/libcss/test/parse.c

Modified: trunk/libcss/src/parse/css21.c
URL: http://source.netsurf-browser.org/trunk/libcss/src/parse/css21.c?rev=5255&r1=5254&r2=5255&view=diff
==============================================================================
--- trunk/libcss/src/parse/css21.c (original)
+++ trunk/libcss/src/parse/css21.c Fri Sep  5 06:44:12 2008
@@ -289,8 +289,6 @@
 	parserutils_error perror;
 	context_entry entry = { CSS_PARSER_START_ATRULE, NULL };
 
-	UNUSED(vector);
-
 	assert(c != NULL);
 
 	/* vector contains: ATKEYWORD ws any0 */

Modified: trunk/libcss/test/parse.c
URL: http://source.netsurf-browser.org/trunk/libcss/test/parse.c?rev=5255&r1=5254&r2=5255&view=diff
==============================================================================
--- trunk/libcss/test/parse.c (original)
+++ trunk/libcss/test/parse.c Fri Sep  5 06:44:12 2008
@@ -10,6 +10,19 @@
 #include "parse/parse.h"
 
 #include "testutils.h"
+
+static const char *event_names[] = {
+	"START_STYLESHEET",
+	"END_STYLESHEET",
+	"START_RULESET",
+	"END_RULESET",
+	"START_ATRULE",
+	"END_ATRULE",
+	"START_BLOCK",
+	"END_BLOCK",
+	"BLOCK_CONTENT",
+	"DECLARATION"
+};
 
 static void *myrealloc(void *ptr, size_t len, void *pw)
 {
@@ -31,7 +44,7 @@
 
 	UNUSED(pw);
 
-	printf("%s%d", tokens != NULL ? "  " : "", type);
+	printf("%s%s", tokens != NULL ? "  " : "", event_names[type]);
 
 	if (tokens == NULL) {
 		printf("\n");




More information about the netsurf-commits mailing list