X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=list%2F_info.c;fp=list%2F_info.c;h=0000000000000000000000000000000000000000;hb=650c775ff00cccd03fc84e7789a03c51d9839004;hp=0402b4908ceaf30ac28e54605c0f6e84342655de;hpb=c8acddea39d222312102952e91c32cfe4dd2cea0;p=ccan diff --git a/list/_info.c b/list/_info.c deleted file mode 100644 index 0402b490..00000000 --- a/list/_info.c +++ /dev/null @@ -1,63 +0,0 @@ -#include -#include -#include "config.h" - -/** - * list - double linked list routines - * - * The list header contains routines for manipulating double linked lists. - * It defines two types: struct list_head used for anchoring lists, and - * struct list_node which is usually embedded in the structure which is placed - * in the list. - * - * Example: - * #include - * #include "list/list.h" - * - * struct parent { - * const char *name; - * struct list_head children; - * unsigned int num_children; - * }; - * - * struct child { - * const char *name; - * struct list_node list; - * }; - * - * int main(int argc, char *argv[]) - * { - * struct parent p; - * struct child *c; - * unsigned int i; - * - * if (argc < 2) - * errx(1, "Usage: %s parent children...", argv[0]); - * - * p.name = argv[1]; - * for (i = 2; i < argc, i++) { - * c = malloc(sizeof(*c)); - * c->name = argv[i]; - * list_add(&p.children, &c->list); - * p.num_children++; - * } - * - * printf("%s has %u children:", p.name, p.num_children); - * list_for_each(&p.children, c, list) - * printf("%s ", c->name); - * printf("\n"); - * return 0; - * } - */ -int main(int argc, char *argv[]) -{ - if (argc != 2) - return 1; - - if (strcmp(argv[1], "depends") == 0) { - printf("container_of\n"); - return 0; - } - - return 1; -}