Macros
utlist.h File Reference

Go to the source code of this file.

Macros

#define DL_APPEND(head, add)
 
#define DL_DELETE(head, del)
 
#define DL_FOREACH(head, el)   for(el=head;el;el=el->next)
 
#define DL_FOREACH_SAFE(head, el, tmp)   for((el)=(head);(el) && (tmp = (el)->next, 1); (el) = tmp)
 
#define DL_PREPEND(head, add)
 
#define DL_SEARCH   LL_SEARCH
 
#define DL_SEARCH_SCALAR   LL_SEARCH_SCALAR
 
#define UTLIST_VERSION   1.9.1
 

Macro Definition Documentation

#define DL_APPEND (   head,
  add 
)
Value:
do { \
if (head) { \
(add)->prev = (head)->prev; \
(head)->prev->next = (add); \
(head)->prev = (add); \
(add)->next = NULL; \
} else { \
(head)=(add); \
(head)->prev = (head); \
(head)->next = NULL; \
} \
} while (0);

Definition at line 44 of file utlist.h.

#define DL_DELETE (   head,
  del 
)
Value:
do { \
if ((del)->prev == (del)) { \
(head)=NULL; \
} else if ((del)==(head)) { \
(del)->next->prev = (del)->prev; \
(head) = (del)->next; \
} else { \
(del)->prev->next = (del)->next; \
if ((del)->next) { \
(del)->next->prev = (del)->prev; \
} else { \
(head)->prev = (del)->prev; \
} \
} \
} while (0);

Definition at line 58 of file utlist.h.

#define DL_FOREACH (   head,
  el 
)    for(el=head;el;el=el->next)

Definition at line 76 of file utlist.h.

#define DL_FOREACH_SAFE (   head,
  el,
  tmp 
)    for((el)=(head);(el) && (tmp = (el)->next, 1); (el) = tmp)

Definition at line 80 of file utlist.h.

#define DL_PREPEND (   head,
  add 
)
Value:
do { \
(add)->next = head; \
if (head) { \
(add)->prev = (head)->prev; \
(head)->prev = (add); \
} else { \
(add)->prev = (add); \
} \
(head) = (add); \
} while (0)

Definition at line 32 of file utlist.h.

#define DL_SEARCH   LL_SEARCH

Definition at line 85 of file utlist.h.

#define DL_SEARCH_SCALAR   LL_SEARCH_SCALAR

Definition at line 84 of file utlist.h.

#define UTLIST_VERSION   1.9.1

Definition at line 27 of file utlist.h.



librealsense
Author(s): Sergey Dorodnicov , Mark Horn , Reagan Lopez
autogenerated on Fri Mar 13 2020 03:16:18