lib/ccan/likely: use htable_type
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 5 Dec 2011 06:12:48 +0000 (16:42 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 5 Dec 2011 06:12:48 +0000 (16:42 +1030)
commit5917d979911b024714d2d3a7b64255bffa37ec60
treee010d41c30e9fd777032110c63d6f4bbdcd9a229
parente1374049678842f5086f174d97ae916345686f87
lib/ccan/likely: use htable_type

Also general cleanups:
(1) Don't assume that strings are folded by the compiler.
(2) Implement likely_stats_reset().
(3) Return non-const string from likely_stats(), as caller must free it.
(4) Don't use struct info indirection (that was from when we used callbacks?)
(5) Close memory leak in run-debug.c

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 0e5d0e30b30bb07b6605843e5ff224210d8083d8)
lib/ccan/likely/likely.c
lib/ccan/likely/likely.h
lib/ccan/likely/test/run-debug.c