X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=innduct.git;a=blobdiff_plain;f=include%2Finn%2Flist.h;fp=include%2Finn%2Flist.h;h=0000000000000000000000000000000000000000;hp=99004e43cd6e3c05ba20dbb8fdc18edd825c0693;hb=b7a32e2d73e3ab1add8208d3e157f7269a31ef4d;hpb=ac902a8299ff4469b356836f431ead31c3377377 diff --git a/include/inn/list.h b/include/inn/list.h deleted file mode 100644 index 99004e4..0000000 --- a/include/inn/list.h +++ /dev/null @@ -1,51 +0,0 @@ -/* $Id: list.h 6168 2003-01-21 06:27:32Z alexk $ -** -*/ - -#ifndef INN_LIST_H -#define INN_LIST_H 1 - -#include - -struct node { - struct node *succ; - struct node *pred; -}; - -struct list { - struct node *head; - struct node *tail; - struct node *tailpred; -}; - -BEGIN_DECLS - -/* initialise a new list */ -void list_new(struct list *list); - -/* add a node to the head of the list */ -struct node *list_addhead(struct list *list, struct node *node); - -/* add a node to the tail of the list */ -struct node *list_addtail(struct list *list, struct node *node); - -/* return a pointer to the first node on the list */ -struct node *list_head(struct list *list); - -/* return a pointer to the last node on the list */ -struct node *list_tail(struct list *list); - -struct node *list_succ(struct node *node); -struct node *list_pred(struct node *node); - -struct node *list_remhead(struct list *list); -struct node *list_remove(struct node *node); -struct node *list_remtail(struct list *list); -struct node *list_insert(struct list *list, struct node *node, - struct node *pred); - -bool list_isempty(struct list *list); - -END_DECLS - -#endif /* INN_LIST_H */