diff options
Diffstat (limited to 'linked_list.h')
-rw-r--r-- | linked_list.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linked_list.h b/linked_list.h index 515fa4af..5f9e2711 100644 --- a/linked_list.h +++ b/linked_list.h @@ -26,6 +26,12 @@ typedef struct { #define LAST(lst) (lst)->tail->before INIT_F ( LLIST(TYPE) ); + +/* + * NOTE freeing a linked list alsa FFREE's all its contents. + * TODO some form of shared pointer to ensure nothing is free'd twice + * would be a good idea. + */ FREE_F ( LLIST(TYPE) ); INIT_F ( LINK(TYPE) ); |