diff options
Diffstat (limited to 'lib/llist.c')
-rw-r--r-- | lib/llist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/llist.c b/lib/llist.c index 45fe014d..e82cb954 100644 --- a/lib/llist.c +++ b/lib/llist.c @@ -82,6 +82,7 @@ void *dlist_lpop(void *list) return v; } +// Append to list in-order (*list unchanged unless empty, ->prev is new node) void dlist_add_nomalloc(struct double_list **list, struct double_list *new) { if (*list) { @@ -92,7 +93,6 @@ void dlist_add_nomalloc(struct double_list **list, struct double_list *new) } else *list = new->next = new->prev = new; } - // Add an entry to the end of a doubly linked list struct double_list *dlist_add(struct double_list **list, char *data) { |