]> git.ozlabs.org Git - ccan-lca-2011.git/commit
talloc: allow replacement allocator
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 10 Jan 2011 03:36:40 +0000 (14:06 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 10 Jan 2011 03:36:40 +0000 (14:06 +1030)
commitc520b4adbbfba5a663b94e71216b90eddd0bf877
treefaefd3da65d18cdee0638f177879cea6520a4fa5
parent1e962ba9b5808dafc0be9cc562b25e3ae068ca5d
talloc: allow replacement allocator

This allows us to both allocators which handle failure themselves, and
allocators which insert failures.
ccan/talloc/talloc.c
ccan/talloc/talloc.h
ccan/talloc/test/run-set_allocator.c [new file with mode: 0644]