From 5e887908b34b804a19b2b7370b0aa358d0e55973 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Fri, 30 Apr 2010 16:06:03 +0000 Subject: Consolidate several 'myrealloc' functions into ns_realloc, rename one which *is* different, thereby eliminating the word 'myrealloc' from the NS codebase svn path=/trunk/netsurf/; revision=10530 --- render/hubbub_binding.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'render/hubbub_binding.c') diff --git a/render/hubbub_binding.c b/render/hubbub_binding.c index bc509b4eb..f050862a0 100644 --- a/render/hubbub_binding.c +++ b/render/hubbub_binding.c @@ -126,7 +126,7 @@ static hubbub_tree_handler tree_handler = { NULL }; -static void *myrealloc(void *ptr, size_t len, void *pw) +static void *ns_talloc_based_realloc(void *ptr, size_t len, void *pw) { /* talloc_realloc_size(pw, ptr, 0) == talloc_free(ptr) */ return talloc_realloc_size(pw, ptr, len); @@ -152,8 +152,8 @@ binding_error binding_create_tree(void *arena, const char *charset, void **ctx) c->quirks = BINDING_QUIRKS_MODE_NONE; c->forms = NULL; - error = hubbub_parser_create(charset, true, myrealloc, arena, - &c->parser); + error = hubbub_parser_create(charset, true, ns_talloc_based_realloc, + arena, &c->parser); if (error != HUBBUB_OK) { free(c); if (error == HUBBUB_BADENCODING) -- cgit v1.2.3