* @brief insert a node before a list * * @param n new node to be inserted * @param l list to insert it */
| 74 | * @param l list to insert it |
| 75 | */ |
| 76 | rt_inline void rt_list_insert_before(rt_list_t *l, rt_list_t *n) |
| 77 | { |
| 78 | l->prev->next = n; |
| 79 | n->prev = l->prev; |
| 80 | |
| 81 | l->prev = n; |
| 82 | n->next = l; |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * @brief remove node from list. |
no outgoing calls
no test coverage detected