#define SH_CIRCLEQ_INSERT_HEAD ( head,
elm,
field,
type   ) 

Value:

do {            \
        (elm)->field.scqe_prev = SH_PTR_TO_OFF(elm, head);              \
        (elm)->field.scqe_next = (head)->scqh_first +                   \
                (elm)->field.scqe_prev;                                 \
        if ((head)->scqh_last == 0)                                     \
                (head)->scqh_last = -(elm)->field.scqe_prev;            \
        else                                                            \
                SH_CIRCLEQ_FIRSTP(head, type)->field.scqe_prev =        \
                    SH_PTR_TO_OFF(SH_CIRCLEQ_FIRSTP(head, type), elm);  \
        (head)->scqh_first = -(elm)->field.scqe_prev;                   \
} while (0)

Definition at line 302 of file shqueue.h.


Generated on Sun Jun 8 10:56:56 2008 for GNUmifluz by  doxygen 1.5.5