mirror of
https://github.com/fluencelabs/redis
synced 2025-07-31 16:31:58 +00:00
Modules TSC: Handling of RM_Reply* functions.
This commit is contained in:
12
src/adlist.c
12
src/adlist.c
@@ -341,3 +341,15 @@ void listRotate(list *list) {
|
||||
tail->next = list->head;
|
||||
list->head = tail;
|
||||
}
|
||||
|
||||
/* Add all the elements of the list 'o' at the end of the
|
||||
* list 'l'. The list 'other' remains empty but otherwise valid. */
|
||||
void listJoin(list *l, list *o) {
|
||||
l->tail->next = o->head;
|
||||
o->head->prev = l->tail;
|
||||
l->tail = o->tail;
|
||||
|
||||
/* Setup other as an empty list. */
|
||||
o->head = l->tail = NULL;
|
||||
o->len = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user