src/slist.h
static inline void
slist_insert_after(struct slist *list, struct slist_node *node,
                   struct slist_node *prev)
{
    node->next = prev->next;
    prev->next = node;

    if (list->last == prev) {
        list->last = node;
    }
}
/*
 * Insert a node after another node.
 *
 * The prev node must be valid.
 */
Insert a node after another node.
The prev node must be valid.
Insert a node after another node . The prev node must be valid .
static inline void
slist_insert_after(struct slist *list, struct slist_node *node,
                   struct slist_node *prev)
{
    node->next = prev->next;
    prev->next = node;
    if (list->last == prev) {
        list->last = node;
    }
}
static inline void slist_insert_after ( struct slist * list , struct slist_node * node , struct slist_node * prev ) { node -> next = prev -> next ; prev -> next = node ; if ( list -> last == prev ) { list -> last = node ; } }
Insert a node after another node.
Insert a node after another node .