From 8708b0abdabb56af70cc8f2dbff9ebd5934481b7 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 5 Sep 2008 11:44:12 +0000 Subject: Minor changes. svn path=/trunk/libcss/; revision=5255 --- test/parse.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'test/parse.c') diff --git a/test/parse.c b/test/parse.c index dff11a1..25d1759 100644 --- a/test/parse.c +++ b/test/parse.c @@ -11,6 +11,19 @@ #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) { UNUSED(pw); @@ -31,7 +44,7 @@ static css_error event_handler(css_parser_event type, UNUSED(pw); - printf("%s%d", tokens != NULL ? " " : "", type); + printf("%s%s", tokens != NULL ? " " : "", event_names[type]); if (tokens == NULL) { printf("\n"); -- cgit v1.2.3