src/slist.h
static inline void
slist_insert_head(struct slist *list, struct slist_node *node)
{
    if (slist_empty(list)) {
        list->last = node;
    }

    node->next = list->first;
    list->first = node;
}
/*
 * Insert a node at the head of a list.
 */
Insert a node at the head of a list.
Insert a node at the head of a list .
static inline void
slist_insert_head(struct slist *list, struct slist_node *node)
{
    if (slist_empty(list)) {
        list->last = node;
    }
    node->next = list->first;
    list->first = node;
}
static inline void slist_insert_head ( struct slist * list , struct slist_node * node ) { if ( slist_empty ( list ) ) { list -> last = node ; } node -> next = list -> first ; list -> first = node ; }
Insert a node at the head of a list.
Insert a node at the head of a list .