Problemas com os relocs
[pspdecompiler.git] / llist.h
blob6c0ce7a1d5df5c751b431a95724c75fb4f687188
2 #ifndef __LLIST_H
3 #define __LLIST_H
6 #define LLIST_ADD(pool, list, value) \
7 (list) = llist_add ((pool), (list), (value))
9 typedef
10 struct _llist {
11 struct _llist *next;
12 void *value;
13 } *llist;
15 struct _llist_pool;
17 typedef struct _llist_pool *llist_pool;
19 llist_pool llist_create (void);
20 llist llist_alloc (llist_pool pool);
21 llist llist_add (llist_pool pool, llist l, void *val);
22 void llist_free (llist_pool pool, llist el);
23 void llist_freeall (llist_pool pool, llist l);
24 void llist_destroy (llist_pool pool);
26 #endif /* __LLIST_H */