summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e95f4e7)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
__list_del (elem->prev, elem->next);
}
__list_del (elem->prev, elem->next);
}
+/* delete from list, add to another list as head */
+static inline void
+list_move (list_t *elem, list_t *head)
+{
+ __list_del (elem->prev, elem->next);
+ list_add (elem, head);
+}
/* Join two lists. */
static inline void
/* Join two lists. */
static inline void