aboutsummaryrefslogtreecommitdiff
path: root/linked_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'linked_list.h')
-rw-r--r--linked_list.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/linked_list.h b/linked_list.h
index 5bf3db15..515fa4af 100644
--- a/linked_list.h
+++ b/linked_list.h
@@ -22,6 +22,9 @@ typedef struct {
int length;
} LLIST(TYPE);
+#define FIRST(lst) (lst)->head->after
+#define LAST(lst) (lst)->tail->before
+
INIT_F ( LLIST(TYPE) );
FREE_F ( LLIST(TYPE) );