diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-12-13 20:16:52 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-12-13 20:16:52 +0000 |
commit | 1b95fec601a3d006ba6b99e1dea3f61c3c8318fc (patch) | |
tree | 1a0c3a78afe1db919ff6b4c56a6c3f2e01d03607 /test/css21.c | |
parent | e3372335ec1628e1d6ef1a4fd63b11bb47f2e0e6 (diff) | |
download | libcss-1b95fec601a3d006ba6b99e1dea3f61c3c8318fc.tar.gz libcss-1b95fec601a3d006ba6b99e1dea3f61c3c8318fc.tar.bz2 |
Various changes which modify API and ABI:
- Remove client allocation function.
- Change node_classes callback not to yield array ownership to libcss.
- Node bloom filters now built by, during selection libcss.
- Added selection callbacks to get and set data on document nodes.
Test suite, example, and documentation updated to match.
Diffstat (limited to 'test/css21.c')
-rw-r--r-- | test/css21.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/test/css21.c b/test/css21.c index 7a2997a..cc9acab 100644 --- a/test/css21.c +++ b/test/css21.c @@ -13,13 +13,6 @@ #include "testutils.h" -static void *myrealloc(void *ptr, size_t len, void *pw) -{ - UNUSED(pw); - - return realloc(ptr, len); -} - static css_error resolve_url(void *pw, const char *base, lwc_string *rel, lwc_string **abs) { @@ -66,8 +59,7 @@ int main(int argc, char **argv) for (count = 0; count < ITERATIONS; count++) { - assert(css_stylesheet_create(¶ms, myrealloc, NULL, - &sheet) == CSS_OK); + assert(css_stylesheet_create(¶ms, &sheet) == CSS_OK); fp = fopen(argv[1], "rb"); if (fp == NULL) { @@ -124,7 +116,7 @@ int main(int argc, char **argv) params.url = buf; assert(css_stylesheet_create(¶ms, - myrealloc, NULL, &import) == CSS_OK); + &import) == CSS_OK); assert(css_stylesheet_data_done(import) == CSS_OK); |