aboutsummaryrefslogtreecommitdiff
path: root/linked_list.inc.h
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-06 12:08:58 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-06 12:08:58 +0100
commitaf3cc906185d7273cf82b1339b63843062898120 (patch)
tree01d9cff85d6c4dfee3185a2402745d721f3636e8 /linked_list.inc.h
parentRemove GC. (diff)
downloadcalp-af3cc906185d7273cf82b1339b63843062898120.tar.gz
calp-af3cc906185d7273cf82b1339b63843062898120.tar.xz
Code cleanup and add documentation.
Diffstat (limited to 'linked_list.inc.h')
-rw-r--r--linked_list.inc.h3
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 ) {