Stupid and slow, but machines are fast! */
| 2154 | |
| 2155 | /* Stupid and slow, but machines are fast! */ |
| 2156 | static const tal_t *find_tal_ptr(const tal_t *root, const tal_t *p) |
| 2157 | { |
| 2158 | if (root == p) |
| 2159 | return root; |
| 2160 | |
| 2161 | for (tal_t *t = tal_first(root); t; t = tal_next(t)) { |
| 2162 | const tal_t *ret = find_tal_ptr(t, p); |
| 2163 | if (ret) |
| 2164 | return ret; |
| 2165 | } |
| 2166 | return NULL; |
| 2167 | } |
| 2168 | |
| 2169 | /* Looks up ptr in hash tree, to try to find name */ |
| 2170 | static const char *try_tal_name(const tal_t *ctx, const void *p) |
no test coverage detected