| 652 | } |
| 653 | |
| 654 | tal_t *tal_first(const tal_t *root) |
| 655 | { |
| 656 | struct tal_hdr *c, *t = debug_tal(to_tal_hdr_or_null(root)); |
| 657 | |
| 658 | c = first_child(t); |
| 659 | if (!c) |
| 660 | return NULL; |
| 661 | return from_tal_hdr(c); |
| 662 | } |
| 663 | |
| 664 | tal_t *tal_next(const tal_t *prev) |
| 665 | { |