]> git.ozlabs.org Git - ccan/blobdiff - ccan/tlist/_info
htable: reduce size of htable by calculating max every time.
[ccan] / ccan / tlist / _info
index e18e2efb23b654924d0ec726765eb35340118cfa..19fc4bd9fb3d731a6127d960b8df74c272569e9d 100644 (file)
@@ -1,12 +1,12 @@
+#include "config.h"
 #include <stdio.h>
 #include <string.h>
-#include "config.h"
 
 /**
  * tlist - typesafe double linked list routines
  *
  * The list header contains routines for manipulating double linked lists;
- * this extends it so you can create list head types which only accomodate
+ * this extends it so you can create list head types which only accommodate
  * a specific entry type.
  *
  * Example:
  *     #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 {