| 662 | } |
| 663 | |
| 664 | tal_t *tal_next(const tal_t *prev) |
| 665 | { |
| 666 | struct tal_hdr *next, *prevhdr = debug_tal(to_tal_hdr(prev)); |
| 667 | struct list_head *head; |
| 668 | |
| 669 | head = &ignore_destroying_bit(prevhdr->parent_child)->children; |
| 670 | next = list_next(head, prevhdr, list); |
| 671 | if (!next) |
| 672 | return NULL; |
| 673 | return from_tal_hdr(next); |
| 674 | } |
| 675 | |
| 676 | tal_t *tal_parent(const tal_t *ctx) |
| 677 | { |