dpkg 1.21.11
Macros
dlist.h File Reference

(bb4ae26e3)

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LIST_UNLINK_PART(list, node, part)
 
#define LIST_LINK_TAIL_PART(list, node, part)
 

Macro Definition Documentation

◆ LIST_LINK_TAIL_PART

#define LIST_LINK_TAIL_PART (   list,
  node,
  part 
)
Value:
do { \
(node)->part.next = NULL; \
(node)->part.prev = (list).tail; \
if ((list).tail) \
(list).tail->part.next = (node); \
else (list).head = (node); \
(list).tail = (node); \
} while (0)
struct trigfileint * next
Definition: triglib.h:61
struct trigfileint * tail
Definition: triglib.c:415

◆ LIST_UNLINK_PART

#define LIST_UNLINK_PART (   list,
  node,
  part 
)
Value:
do { \
if ((node)->part.prev) \
(node)->part.prev->part.next = (node)->part.next; \
else \
(list).head = (node)->part.next; \
if ((node)->part.next) \
(node)->part.next->part.prev = (node)->part.prev; \
else \
(list).tail = (node)->part.prev; \
} while (0)
struct trigfileint * prev
Definition: triglib.h:61
struct trigfileint * head
Definition: triglib.c:415