diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-06 12:08:58 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-06 12:08:58 +0100 |
commit | af3cc906185d7273cf82b1339b63843062898120 (patch) | |
tree | 01d9cff85d6c4dfee3185a2402745d721f3636e8 /linked_list.h | |
parent | Remove GC. (diff) | |
download | calp-af3cc906185d7273cf82b1339b63843062898120.tar.gz calp-af3cc906185d7273cf82b1339b63843062898120.tar.xz |
Code cleanup and add documentation.
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) ); |