diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2014-05-17 12:37:09 +0300 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2014-05-17 12:37:09 +0300 |
| commit | 2836fa60045bcdd8c1c8c5ed775d711cc7f385a9 (patch) | |
| tree | 7892216d6ae7f0c51bd6c147dadc0bb88f06070c /list.h | |
| parent | 6814f6b99562620e70538787b6f8d66c80f7b990 (diff) | |
| download | lispish-2836fa60045bcdd8c1c8c5ed775d711cc7f385a9.tar.gz lispish-2836fa60045bcdd8c1c8c5ed775d711cc7f385a9.zip | |
refactor code to use LIST from sys/queue.h
It's now easier and more natural to work with the code. :-P
Diffstat (limited to 'list.h')
| -rw-r--r-- | list.h | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -1,19 +0,0 @@ -#ifndef LIST_H -#define LIST_H - -struct list -{ - void *data; - struct list *next; -}; - -typedef void (*list_free_cb)(void *data, void *userdata); - -void list_init(struct list *list); -struct list *list_new(void *data); -struct list *list_append(struct list *list, void *data); -struct list *list_get_last(struct list *list); -struct list *list_pop_front(struct list **list); -void list_free(struct list *list, list_free_cb free_cb, void *userdata); - -#endif |
