X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftlist%2F_info;h=19fc4bd9fb3d731a6127d960b8df74c272569e9d;hb=9e92552b1b2a1b631bde1c379b9f2950725b1245;hp=e18e2efb23b654924d0ec726765eb35340118cfa;hpb=be2b527792d574ef8cf506d1a168d92354e23cc5;p=ccan diff --git a/ccan/tlist/_info b/ccan/tlist/_info index e18e2efb..19fc4bd9 100644 --- a/ccan/tlist/_info +++ b/ccan/tlist/_info @@ -1,12 +1,12 @@ +#include "config.h" #include #include -#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: @@ -15,15 +15,11 @@ * #include * #include * - * // 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 {