diff options
| author | William Casarin <jb55@jb55.com> | 2018-07-09 22:28:25 -0700 |
|---|---|---|
| committer | William Casarin <jb55@jb55.com> | 2018-07-09 22:31:48 -0700 |
| commit | 9593fc545950782ed75f12f53238b07885559b2b (patch) | |
| tree | 9c7c2f7cbb427c54e9184cb61eedce737a6cbc6f /ccan/tal/str/test/helper.h | |
| parent | bd8c223756d2f912526ecef53bae0cc8e0c63442 (diff) | |
remove ccan for now
Diffstat (limited to 'ccan/tal/str/test/helper.h')
| -rw-r--r-- | ccan/tal/str/test/helper.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/ccan/tal/str/test/helper.h b/ccan/tal/str/test/helper.h deleted file mode 100644 index 5f0b68f..0000000 --- a/ccan/tal/str/test/helper.h +++ /dev/null @@ -1,22 +0,0 @@ -/* tal/talloc can't implement tal_first/tal_next. */ -#ifdef TAL_USE_TALLOC -static inline bool no_children(const void *ctx) -{ - return talloc_total_blocks(ctx) == 1; -} - -static inline bool single_child(const void *ctx, const void *child) -{ - return talloc_total_blocks(ctx) == 2 && tal_parent(child) == ctx; -} -#else -static inline bool no_children(const void *ctx) -{ - return !tal_first(ctx); -} - -static inline bool single_child(const void *ctx, const void *child) -{ - return tal_first(ctx) == child && !tal_next(child) && !tal_first(child); -} -#endif |
