From 83c070f67a2c26672f0ddad9b7e9104c16d7015f Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 9 Nov 2008 20:09:50 +0000 Subject: Port libcss to new lpu API. Make lexer, core parser, and css21 parser constructors&destructors return errors svn path=/trunk/libcss/; revision=5674 --- test/parse.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/parse.c') diff --git a/test/parse.c b/test/parse.c index 1752dc2..4ff9a6e 100644 --- a/test/parse.c +++ b/test/parse.c @@ -86,9 +86,8 @@ int main(int argc, char **argv) /* Initialise library */ assert(css_initialise(argv[1], myrealloc, NULL) == CSS_OK); - parser = css_parser_create("UTF-8", CSS_CHARSET_DICTATED, - myrealloc, NULL); - assert(parser != NULL); + assert(css_parser_create("UTF-8", CSS_CHARSET_DICTATED, + myrealloc, NULL, &parser) == CSS_OK); params.event_handler.handler = event_handler; params.event_handler.pw = NULL; -- cgit v1.2.3