]> git.ozlabs.org Git - ccan/blobdiff - ccan/tlist/_info
tlist: Use TCON_WRAP instead of TCON
[ccan] / ccan / tlist / _info
index e18e2efb23b654924d0ec726765eb35340118cfa..c3c116d2ead01bbead5865e3321034ea45f298b3 100644 (file)
@@ -1,6 +1,6 @@
+#include "config.h"
 #include <stdio.h>
 #include <string.h>
-#include "config.h"
 
 /**
  * tlist - typesafe double linked list routines
  *     #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;
- *             struct tlist_children children;
  *             unsigned int num_children;
+ *             struct tlist_children children;
  *     };
  *
  *     struct child {