aboutsummaryrefslogtreecommitdiff
path: root/linked_list.inc.h
diff options
context:
space:
mode:
Diffstat (limited to 'linked_list.inc.h')
-rw-r--r--linked_list.inc.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/linked_list.inc.h b/linked_list.inc.h
index 8ae720ba..410fddba 100644
--- a/linked_list.inc.h
+++ b/linked_list.inc.h
@@ -1,26 +1,3 @@
-#ifndef TYPE
-#error "Set TYPE before including self file"
-#else
-
-INIT_F ( LLIST(TYPE) ) {
- self->length = 0;
- NEW(LINK(TYPE), head);
- NEW(LINK(TYPE), tail);
- self->head = head;
- self->tail = tail;
- head->after = tail;
- tail->before = head;
- self->cur = head;
- return 0;
-}
-
-FREE_F (LINK(TYPE)) {
- UNLINK(LINK(TYPE))(self);
-
- if (self->value != NULL) FFREE(TYPE, self->value);
- return 0;
-}
-
FREE_F( LLIST(TYPE) ) {
LINK(TYPE) *n, *next;
n = self->head;