mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
Update common on CCAN_TAL_DEBUG
We don't need this any more: every CCAN object has a valid tal_bytelen(). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
480e32a236
commit
e3d95f3768
2
Makefile
2
Makefile
@@ -19,7 +19,7 @@ VG_TEST_ARGS = --track-origins=yes --leak-check=full --show-reachable=yes --erro
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(DEVELOPER),1)
|
ifeq ($(DEVELOPER),1)
|
||||||
DEV_CFLAGS=-DCCAN_TAL_DEBUG=1 -DCCAN_TAKE_DEBUG=1
|
DEV_CFLAGS=-DCCAN_TAKE_DEBUG=1
|
||||||
else
|
else
|
||||||
DEV_CFLAGS=
|
DEV_CFLAGS=
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -58,11 +58,6 @@ void *notleak_(const void *ptr, bool plus_children)
|
|||||||
return cast_const(void *, ptr);
|
return cast_const(void *, ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This only works if all objects have tal_len() */
|
|
||||||
#ifndef CCAN_TAL_DEBUG
|
|
||||||
#error CCAN_TAL_DEBUG must be set
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static size_t hash_ptr(const void *elem, void *unused UNNEEDED)
|
static size_t hash_ptr(const void *elem, void *unused UNNEEDED)
|
||||||
{
|
{
|
||||||
static struct siphash_seed seed;
|
static struct siphash_seed seed;
|
||||||
@@ -96,8 +91,7 @@ static void children_into_htable(const void *exclude1, const void *exclude2,
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* ccan/io allocates pollfd array. */
|
/* ccan/io allocates pollfd array. */
|
||||||
if (streq(name,
|
if (streq(name, "struct pollfd[]") && !tal_parent(i))
|
||||||
"ccan/ccan/io/poll.c:40:struct pollfd[]"))
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Don't add tmpctx. */
|
/* Don't add tmpctx. */
|
||||||
|
|||||||
Reference in New Issue
Block a user