]> git.ozlabs.org Git - ccan/blobdiff - ccan/tlist/_info
tlist: Use TCON_WRAP instead of TCON
[ccan] / ccan / tlist / _info
index 4c3394c977b5459eec1f7a3ec826cf8142f1728e..c3c116d2ead01bbead5865e3321034ea45f298b3 100644 (file)
  *     #include <stdlib.h>
  *     #include <ccan/tlist/tlist.h>
  *
- *     // We could use TLIST_TYPE(children, struct child) to define this.
- *     struct tlist_children {
- *             struct list_head raw;
- *             TCON(struct child *canary);
- *     };
+ *     TLIST_TYPE(children, struct child);
  *     struct parent {
  *             const char *name;
  *             unsigned int num_children;