Rev 2479 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2479 | Rev 2879 | ||
---|---|---|---|
Line 110... | Line 110... | ||
110 | link->next = head; |
110 | link->next = head; |
111 | head->prev->next = link; |
111 | head->prev->next = link; |
112 | head->prev = link; |
112 | head->prev = link; |
113 | } |
113 | } |
114 | 114 | ||
- | 115 | /** Insert item before another item in doubly-linked circular list. */ |
|
- | 116 | static inline void list_insert_before(link_t *l, link_t *r) |
|
- | 117 | { |
|
- | 118 | list_append(l, r); |
|
- | 119 | } |
|
- | 120 | ||
- | 121 | /** Insert item after another item in doubly-linked circular list. */ |
|
- | 122 | static inline void list_insert_after(link_t *r, link_t *l) |
|
- | 123 | { |
|
- | 124 | list_prepend(l, r); |
|
- | 125 | } |
|
- | 126 | ||
115 | /** Remove item from doubly-linked circular list |
127 | /** Remove item from doubly-linked circular list |
116 | * |
128 | * |
117 | * Remove item from doubly-linked circular list. |
129 | * Remove item from doubly-linked circular list. |
118 | * |
130 | * |
119 | * @param link Pointer to link_t structure to be removed from the list it is contained in. |
131 | * @param link Pointer to link_t structure to be removed from the list it is contained in. |