From 80cfe125983eb126a9f8afd974196cf0bf347877 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 27 Mar 2010 16:10:57 +0000 Subject: Fix libcss to use new libwapcaplet behaviour. TODO: update the tests to include a refcounting proof svn path=/trunk/libcss/; revision=10162 --- test/parse.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'test/parse.c') diff --git a/test/parse.c b/test/parse.c index ec17001..3618f34 100644 --- a/test/parse.c +++ b/test/parse.c @@ -82,7 +82,6 @@ int main(int argc, char **argv) #define CHUNK_SIZE (4096) uint8_t buf[CHUNK_SIZE]; css_error error; - lwc_context *ctx; int i; if (argc != 3) { @@ -92,11 +91,10 @@ int main(int argc, char **argv) /* Initialise library */ assert(css_initialise(argv[1], myrealloc, NULL) == CSS_OK); - assert(lwc_create_context(myrealloc, NULL, &ctx) == lwc_error_ok); - lwc_context_ref(ctx); + assert(lwc_initialise(myrealloc, NULL, 0) == lwc_error_ok); for (i = 0; i < ITERATIONS; i++) { - assert(css_parser_create("UTF-8", CSS_CHARSET_DICTATED, ctx, + assert(css_parser_create("UTF-8", CSS_CHARSET_DICTATED, myrealloc, NULL, &parser) == CSS_OK); params.event_handler.handler = event_handler; @@ -146,8 +144,6 @@ int main(int argc, char **argv) printf("PASS\n"); - lwc_context_unref(ctx); - return 0; } -- cgit v1.2.3