Go to the source code of this file.
|
#define | initDR(ring) ((ring).prev = (ring).next = &(ring)) |
|
#define | init2DR(elem, ring) |
|
#define | removeDR(ring) |
|
◆ init2DR
#define init2DR |
( |
|
elem, |
|
|
|
ring |
|
) |
| |
Value:{ \
(elem).next = (ring).next; \
(elem).next->prev = &(elem); \
(elem).prev = &(ring); \
(ring).next = &(elem); \
}
Definition at line 34 of file cring.h.
◆ initDR
#define initDR |
( |
|
ring | ) |
((ring).prev = (ring).next = &(ring)) |
◆ removeDR
Value:{ \
(ring).next->prev = (ring).prev; \
(ring).prev->next = (ring).next; \
}
Definition at line 42 of file cring.h.