From 1b95fec601a3d006ba6b99e1dea3f61c3c8318fc Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 13 Dec 2013 20:16:52 +0000 Subject: 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. --- test/parse.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'test/parse.c') diff --git a/test/parse.c b/test/parse.c index 887eebc..dbbf91f 100644 --- a/test/parse.c +++ b/test/parse.c @@ -29,13 +29,6 @@ static const char *event_names[] = { }; #endif -static void *myrealloc(void *data, size_t len, void *pw) -{ - UNUSED(pw); - - return realloc(data, len); -} - static css_error event_handler(css_parser_event type, const parserutils_vector *tokens, void *pw) { @@ -91,7 +84,7 @@ int main(int argc, char **argv) for (i = 0; i < ITERATIONS; i++) { assert(css__parser_create("UTF-8", CSS_CHARSET_DICTATED, - myrealloc, NULL, &parser) == CSS_OK); + &parser) == CSS_OK); params.event_handler.handler = event_handler; params.event_handler.pw = NULL; -- cgit v1.2.3