openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/dbus-broker/19-r0/dbus-broker-19/subprojects/c-list/src/c-list.h
static inline void c_list_swap(CList* list1, CList* list2)
{
    CList t;

    /* make neighbors of list1 point to list2, and vice versa */
    t = *list1;
    t.next->prev = list2;
    t.prev->next = list2;
    t = *list2;
    t.next->prev = list1;
    t.prev->next = list1;

    /* swap list1 and list2 now that their neighbors were fixed up */
    t = *list1;
    *list1 = *list2;
    *list2 = t;
}
/**
 * c_list_swap() - exchange the contents of two lists
 * @list1:      the list to operate on
 * @list2:      the list to operate on
 *
 * This replaces the contents of the list @list1 with the contents
 * of @list2, and vice versa.
 */
exchange the contents of two lists
@list1:      the list to operate on
@list2:      the list to operate on

This replaces the contents of the list @list1 with the contents
of @list2, and vice versa.
exchange the contents of two lists @list1 : the list to operate on @list2 : the list to operate on This replaces the contents of the list @list1 with the contents of @list2 and vice versa .
static inline void c_list_swap(CList* list1, CList* list2)
{
    CList t;
    t = *list1;
    t.next->prev = list2;
    t.prev->next = list2;
    t = *list2;
    t.next->prev = list1;
    t.prev->next = list1;
    t = *list1;
    *list1 = *list2;
    *list2 = t;
}
static inline void c_list_swap ( CList * list1 , CList * list2 ) { CList t ; t = * list1 ; t . next -> prev = list2 ; t . prev -> next = list2 ; t = * list2 ; t . next -> prev = list1 ; t . prev -> next = list1 ; t = * list1 ; * list1 = * list2 ; * list2 = t ; }
c_list_swap() - exchange the contents of two lists
 @list1:      the list to operate on
 @list2:      the list to operate on
c_list_swap () - exchange the contents of two lists @list1 : the list to operate on @list2 : the list to operate on
/* make neighbors of list1 point to list2, and vice versa */ /* swap list1 and list2 now that their neighbors were fixed up */