From 5ac614a09854ff6e0d9602bd2e2ae37cd198d3b5 Mon Sep 17 00:00:00 2001 From: Michael Cardell Widerkrantz Date: Fri, 4 Mar 2011 14:24:20 +0100 Subject: We don't need movetonext(). --- list.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'list.h') diff --git a/list.h b/list.h index ee16e7e..ecd2bfb 100644 --- a/list.h +++ b/list.h @@ -5,8 +5,24 @@ struct item struct item *next; }; +/* + * Move element in item to the head of list mainlist. + */ void movetohead(struct item **mainlist, struct item *item); -void movetonext(struct item **mainlist, struct item *item, struct item *next); + +/* + * Create space for a new item and add it to the head of mainlist. + * + * Returns item or NULL if out of memory. + */ struct item *additem(struct item **mainlist); + +/* + * + */ void delitem(struct item **mainlist, struct item *item); + +/* + * + */ void listitems(struct item *mainlist); -- cgit v1.2.3