diff options
author | Michael Cardell Widerkrantz <mc@hack.org> | 2011-03-04 14:24:20 +0100 |
---|---|---|
committer | Michael Cardell Widerkrantz <mc@hack.org> | 2011-03-08 12:14:38 +0100 |
commit | 5ac614a09854ff6e0d9602bd2e2ae37cd198d3b5 (patch) | |
tree | fbaf3f6653fa228a84346c144d82cf9f7cfb9763 /list.h | |
parent | 0c99c2a608283603238943147cff341ae7629514 (diff) | |
download | mcwm-5ac614a09854ff6e0d9602bd2e2ae37cd198d3b5.zip |
We don't need movetonext().
Diffstat (limited to 'list.h')
-rw-r--r-- | list.h | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -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); |