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_splice(CList* target, CList* source)
{
    if (!c_list_is_empty(source))
    {
        /* attach the front of @source to the tail of @target */
        source->next->prev = target->prev;
        target->prev->next = source->next;

        /* attach the tail of @source to the front of @target */
        source->prev->next = target;
        target->prev = source->prev;

        /* clear source */
        *source = (CList)C_LIST_INIT(*source);
    }
}
/**
 * c_list_splice() - splice one list into another
 * @target:     the list to splice into
 * @source:     the list to splice
 *
 * This removes all the entries from @source and splice them into @target.
 * The order of the two lists is preserved and the source is appended
 * to the end of target.
 *
 * On return, the source list will be empty.
 */
splice one list into another
@target:     the list to splice into
@source:     the list to splice

This removes all the entries from @source and splice them into @target.
The order of the two lists is preserved and the source is appended
to the end of target.

On return, the source list will be empty.
splice one list into another @target : the list to splice into @source : the list to splice This removes all the entries from @source and splice them into @target . The order of the two lists is preserved and the source is appended to the end of target . On return the source list will be empty .
static inline void c_list_splice(CList* target, CList* source)
{
    if (!c_list_is_empty(source))
    {
        source->next->prev = target->prev;
        target->prev->next = source->next;
        source->prev->next = target;
        target->prev = source->prev;
        *source = (CList)C_LIST_INIT(*source);
    }
}
static inline void c_list_splice ( CList * target , CList * source ) { if ( ! c_list_is_empty ( source ) ) { source -> next -> prev = target -> prev ; target -> prev -> next = source -> next ; source -> prev -> next = target ; target -> prev = source -> prev ; * source = ( CList ) C_LIST_INIT ( * source ) ; } }
c_list_splice() - splice one list into another
 @target:     the list to splice into
 @source:     the list to splice
c_list_splice () - splice one list into another @target : the list to splice into @source : the list to splice
/* attach the front of @source to the tail of @target */ /* attach the tail of @source to the front of @target */ /* clear source */