summaryrefslogtreecommitdiff
path: root/test/parse.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-08-01 02:04:47 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-08-01 02:04:47 +0000
commit70f8503b0fcf4253c905b01aec4a72363147ab6f (patch)
treeac37a2254af5cb56f37cfcbb7e065cbb36ab6992 /test/parse.c
parentdcc225eaba4e97d37bc738bdd9308d553e901a66 (diff)
downloadlibcss-70f8503b0fcf4253c905b01aec4a72363147ab6f.tar.gz
libcss-70f8503b0fcf4253c905b01aec4a72363147ab6f.tar.bz2
Allow silencing of parser test driver.
svn path=/trunk/libcss/; revision=4852
Diffstat (limited to 'test/parse.c')
-rw-r--r--test/parse.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/parse.c b/test/parse.c
index 730ba44..ac89a4e 100644
--- a/test/parse.c
+++ b/test/parse.c
@@ -21,6 +21,11 @@ static void *myrealloc(void *ptr, size_t len, void *pw)
static bool event_handler(css_parser_event type,
const parserutils_vector *tokens, void *pw)
{
+#if 0
+ UNUSED(type);
+ UNUSED(tokens);
+ UNUSED(pw);
+#else
int32_t ctx = 0;
const css_token *token;
@@ -45,6 +50,7 @@ static bool event_handler(css_parser_event type,
} while (token != NULL);
printf("\n");
+#endif
return true;
}