#include <stddef.h>
Go to the source code of this file.
|
#define | QUEUE_NEXT(q) (*(QUEUE **) &((*(q))[0])) |
|
#define | QUEUE_PREV(q) (*(QUEUE **) &((*(q))[1])) |
|
#define | QUEUE_PREV_NEXT(q) (QUEUE_NEXT(QUEUE_PREV(q))) |
|
#define | QUEUE_NEXT_PREV(q) (QUEUE_PREV(QUEUE_NEXT(q))) |
|
#define | QUEUE_DATA(ptr, type, field) ((type *) ((char *) (ptr) - offsetof(type, field))) |
|
#define | QUEUE_FOREACH(q, h) for ((q) = QUEUE_NEXT(h); (q) != (h); (q) = QUEUE_NEXT(q)) |
|
#define | QUEUE_EMPTY(q) ((const QUEUE *) (q) == (const QUEUE *) QUEUE_NEXT(q)) |
|
#define | QUEUE_HEAD(q) (QUEUE_NEXT(q)) |
|
#define | QUEUE_INIT(q) |
|
#define | QUEUE_ADD(h, n) |
|
#define | QUEUE_SPLIT(h, q, n) |
|
#define | QUEUE_MOVE(h, n) |
|
#define | QUEUE_INSERT_HEAD(h, q) |
|
#define | QUEUE_INSERT_TAIL(h, q) |
|
#define | QUEUE_REMOVE(q) |
|
◆ QUEUE_ADD
#define QUEUE_ADD |
( |
|
h, |
|
|
|
n |
|
) |
| |
Value: do { \
QUEUE_PREV_NEXT(
h) = (
h); \
} \
while (0)
Definition at line 52 of file queue.h.
◆ QUEUE_DATA
◆ QUEUE_EMPTY
◆ QUEUE_FOREACH
◆ QUEUE_HEAD
◆ QUEUE_INIT
Value: do { \
QUEUE_NEXT(q) = (q); \
QUEUE_PREV(q) = (q); \
} \
while (0)
Definition at line 45 of file queue.h.
◆ QUEUE_INSERT_HEAD
#define QUEUE_INSERT_HEAD |
( |
|
h, |
|
|
|
q |
|
) |
| |
Value: do { \
QUEUE_NEXT_PREV(q) = (q); \
} \
while (0)
Definition at line 83 of file queue.h.
◆ QUEUE_INSERT_TAIL
#define QUEUE_INSERT_TAIL |
( |
|
h, |
|
|
|
q |
|
) |
| |
Value: do { \
QUEUE_PREV_NEXT(q) = (q); \
} \
while (0)
Definition at line 92 of file queue.h.
◆ QUEUE_MOVE
#define QUEUE_MOVE |
( |
|
h, |
|
|
|
n |
|
) |
| |
Value: do { \
else { \
} \
} \
while (0)
Definition at line 72 of file queue.h.
◆ QUEUE_NEXT
#define QUEUE_NEXT |
( |
|
q | ) |
(*(QUEUE **) &((*(q))[0])) |
◆ QUEUE_NEXT_PREV
◆ QUEUE_PREV
#define QUEUE_PREV |
( |
|
q | ) |
(*(QUEUE **) &((*(q))[1])) |
◆ QUEUE_PREV_NEXT
◆ QUEUE_REMOVE
#define QUEUE_REMOVE |
( |
|
q | ) |
|
◆ QUEUE_SPLIT
#define QUEUE_SPLIT |
( |
|
h, |
|
|
|
q, |
|
|
|
n |
|
) |
| |
Value: do { \
QUEUE_PREV_NEXT(
n) = (
n); \
QUEUE_PREV_NEXT(
h) = (
h); \
} \
while (0)
Definition at line 61 of file queue.h.
◆ QUEUE