list.c (584B)
1 #include "list.h" 2 3 extern inline void 4 list_node_link(struct list_node *node, 5 struct list_node *prev, 6 struct list_node *next); 7 8 extern inline struct list_node * 9 list_node_unlink(struct list_node *node); 10 11 extern inline void 12 list_push_head(struct list_node *restrict list, 13 struct list_node *restrict node); 14 15 extern inline void 16 list_push_tail(struct list_node *restrict list, 17 struct list_node *restrict node); 18 19 extern inline struct list_node * 20 list_pop_head(struct list_node *list); 21 22 extern inline struct list_node * 23 list_pop_tail(struct list_node *list);