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.inc.h | |
parent | Remove GC. (diff) | |
download | calp-af3cc906185d7273cf82b1339b63843062898120.tar.gz calp-af3cc906185d7273cf82b1339b63843062898120.tar.xz |
Code cleanup and add documentation.
Diffstat (limited to '')
-rw-r--r-- | linked_list.inc.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/linked_list.inc.h b/linked_list.inc.h index 1522a685..e91cdc9f 100644 --- a/linked_list.inc.h +++ b/linked_list.inc.h @@ -17,15 +17,12 @@ INIT_F ( LLIST(TYPE) ) { FREE_F (LINK(TYPE)) { if (this->before != NULL) this->before->after = NULL; if (this->after != NULL) this->after->before = NULL; - // TODO how much of value do I really wanna free? - // Should I implement some form of shared pointer? if (this->value != NULL) FFREE(TYPE, this->value); return 0; } FREE_F( LLIST(TYPE) ) { - LINK(TYPE) *n, *next; n = this->head; while ( n != NULL ) { |