| 21 | } |
| 22 | |
| 23 | void list_remove(struct list_node *node) |
| 24 | { |
| 25 | /* Cannot remove the head node. */ |
| 26 | assert(PREV(node) && NEXT(node)); |
| 27 | NEXT(PREV(node)) = NEXT(node); |
| 28 | PREV(NEXT(node)) = PREV(node); |
| 29 | } |
| 30 | |
| 31 | void list_insert_after(struct list_node *node, struct list_node *after) |
| 32 | { |
no outgoing calls