EE445M RTOS
Taken at the University of Texas Spring 2015
utlist.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UTLIST_VERSION   1.9.9
 
#define LDECLTYPE(x)   __typeof(x)
 
#define _SV(elt, list)
 
#define _NEXT(elt, list, next)   ((elt)->next)
 
#define _NEXTASGN(elt, list, to, next)   ((elt)->next)=(to)
 
#define _PREVASGN(elt, list, to, prev)   ((elt)->prev)=(to)
 
#define _RS(list)
 
#define _CASTASGN(a, b)   (a)=(b)
 
#define LL_SORT(list, cmp)   LL_SORT2(list, cmp, next)
 
#define LL_SORT2(list, cmp, next)
 
#define DL_SORT(list, cmp)   DL_SORT2(list, cmp, prev, next)
 
#define DL_SORT2(list, cmp, prev, next)
 
#define CDL_SORT(list, cmp)   CDL_SORT2(list, cmp, prev, next)
 
#define CDL_SORT2(list, cmp, prev, next)
 
#define LL_PREPEND(head, add)   LL_PREPEND2(head,add,next)
 
#define LL_EDF_PREPEND(head, add)
 
#define LL_PREPEND2(head, add, next)
 
#define LL_CONCAT(head1, head2)   LL_CONCAT2(head1,head2,next)
 
#define LL_CONCAT2(head1, head2, next)
 
#define LL_APPEND(head, add)   LL_APPEND2(head,add,next)
 
#define LL_EDF_APPEND(head, add)   LL_APPEND2(head,add,pri_next)
 
#define LL_APPEND2(head, add, next)
 
#define LL_DELETE(head, del)   LL_DELETE2(head,del,next)
 
#define LL_EDF_DELETE(head, del)   LL_DELETE2(head,del,pri_next)
 
#define LL_DELETE2(head, del, next)
 
#define LL_APPEND_VS2008(head, add)   LL_APPEND2_VS2008(head,add,next)
 
#define LL_APPEND2_VS2008(head, add, next)
 
#define LL_DELETE_VS2008(head, del)   LL_DELETE2_VS2008(head,del,next)
 
#define LL_DELETE2_VS2008(head, del, next)
 
#define LL_COUNT(head, el, counter)   LL_COUNT2(head,el,counter,next) \
 
#define LL_COUNT2(head, el, counter, next)
 
#define LL_FOREACH(head, el)   LL_FOREACH2(head,el,next)
 
#define LL_FOREACH2(head, el, next)   for(el=head;el;el=(el)->next)
 
#define LL_FOREACH_SAFE(head, el, tmp)   LL_FOREACH_SAFE2(head,el,tmp,next)
 
#define LL_FOREACH_SAFE2(head, el, tmp, next)   for((el)=(head);(el) && (tmp = (el)->next, 1); (el) = tmp)
 
#define LL_SEARCH_SCALAR(head, out, field, val)   LL_SEARCH_SCALAR2(head,out,field,val,next)
 
#define LL_SEARCH_SCALAR2(head, out, field, val, next)
 
#define LL_SEARCH(head, out, elt, cmp)   LL_SEARCH2(head,out,elt,cmp,next)
 
#define LL_SEARCH2(head, out, elt, cmp, next)
 
#define LL_REPLACE_ELEM(head, el, add)
 
#define LL_PREPEND_ELEM(head, el, add)
 
#define DL_PREPEND(head, add)   DL_PREPEND2(head,add,prev,next)
 
#define DL_EDF_PREPEND(head, add)
 
#define DL_PREPEND2(head, add, prev, next)
 
#define DL_APPEND(head, add)   DL_APPEND2(head,add,prev,next)
 
#define DL_EDF_INSERT(head, add)
 
#define DL_APPEND2(head, add, prev, next)
 
#define DL_CONCAT(head1, head2)   DL_CONCAT2(head1,head2,prev,next)
 
#define DL_CONCAT2(head1, head2, prev, next)
 
#define DL_DELETE(head, del)   DL_DELETE2(head,del,prev,next)
 
#define DL_DELETE2(head, del, prev, next)
 
#define DL_COUNT(head, el, counter)   DL_COUNT2(head,el,counter,next) \
 
#define DL_COUNT2(head, el, counter, next)
 
#define DL_FOREACH(head, el)   DL_FOREACH2(head,el,next)
 
#define DL_FOREACH2(head, el, next)   for(el=head;el;el=(el)->next)
 
#define DL_FOREACH_SAFE(head, el, tmp)   DL_FOREACH_SAFE2(head,el,tmp,next)
 
#define DL_FOREACH_SAFE2(head, el, tmp, next)   for((el)=(head);(el) && (tmp = (el)->next, 1); (el) = tmp)
 
#define DL_SEARCH_SCALAR   LL_SEARCH_SCALAR
 
#define DL_SEARCH   LL_SEARCH
 
#define DL_SEARCH_SCALAR2   LL_SEARCH_SCALAR2
 
#define DL_SEARCH2   LL_SEARCH2
 
#define DL_REPLACE_ELEM(head, el, add)
 
#define DL_PREPEND_ELEM(head, el, add)
 
#define CDL_PREPEND(head, add)   CDL_PREPEND2(head,add,prev,next)
 
#define CDL_PREPEND2(head, add, prev, next)
 
#define CDL_APPEND(head, add)   CDL_APPEND2(head,add,prev,next)
 
#define CDL_APPEND2(head, add, prev, next)
 
#define CDL_DELETE(head, del)   CDL_DELETE2(head,del,prev,next)
 
#define CDL_DELETE2(head, del, prev, next)
 
#define CDL_COUNT(head, el, counter)   CDL_COUNT2(head,el,counter,next) \
 
#define CDL_COUNT2(head, el, counter, next)
 
#define CDL_FOREACH(head, el)   CDL_FOREACH2(head,el,next)
 
#define CDL_FOREACH2(head, el, next)   for(el=head;el;el=((el)->next==head ? 0L : (el)->next))
 
#define CDL_FOREACH_SAFE(head, el, tmp1, tmp2)   CDL_FOREACH_SAFE2(head,el,tmp1,tmp2,prev,next)
 
#define CDL_FOREACH_SAFE2(head, el, tmp1, tmp2, prev, next)
 
#define CDL_SEARCH_SCALAR(head, out, field, val)   CDL_SEARCH_SCALAR2(head,out,field,val,next)
 
#define CDL_SEARCH_SCALAR2(head, out, field, val, next)
 
#define CDL_SEARCH(head, out, elt, cmp)   CDL_SEARCH2(head,out,elt,cmp,next)
 
#define CDL_SEARCH2(head, out, elt, cmp, next)
 
#define CDL_REPLACE_ELEM(head, el, add)
 
#define CDL_PREPEND_ELEM(head, el, add)
 

Macro Definition Documentation

#define _CASTASGN (   a,
 
)    (a)=(b)

Definition at line 98 of file utlist.h.

#define _NEXT (   elt,
  list,
  next 
)    ((elt)->next)

Definition at line 93 of file utlist.h.

#define _NEXTASGN (   elt,
  list,
  to,
  next 
)    ((elt)->next)=(to)

Definition at line 94 of file utlist.h.

#define _PREVASGN (   elt,
  list,
  to,
  prev 
)    ((elt)->prev)=(to)

Definition at line 96 of file utlist.h.

#define _RS (   list)

Definition at line 97 of file utlist.h.

#define _SV (   elt,
  list 
)

Definition at line 92 of file utlist.h.

#define CDL_APPEND (   head,
  add 
)    CDL_APPEND2(head,add,prev,next)

Definition at line 688 of file utlist.h.

Referenced by os_remove_thread(), os_threading_init(), and schedule().

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

Definition at line 691 of file utlist.h.

#define CDL_COUNT (   head,
  el,
  counter 
)    CDL_COUNT2(head,el,counter,next) \

Definition at line 719 of file utlist.h.

#define CDL_COUNT2 (   head,
  el,
  counter,
  next 
)
Value:
{ \
counter = 0; \
CDL_FOREACH2(head,el,next){ ++counter; } \
}
#define CDL_FOREACH2(head, el, next)
Definition: utlist.h:731

Definition at line 722 of file utlist.h.

#define CDL_DELETE (   head,
  del 
)    CDL_DELETE2(head,del,prev,next)
#define CDL_DELETE2 (   head,
  del,
  prev,
  next 
)
Value:
do { \
if ( ((head)==(del)) && ((head)->next == (head))) { \
(head) = 0L; \
} else { \
(del)->next->prev = (del)->prev; \
(del)->prev->next = (del)->next; \
if ((del) == (head)) (head)=(del)->next; \
} \
} while (0)

Definition at line 708 of file utlist.h.

#define CDL_FOREACH (   head,
  el 
)    CDL_FOREACH2(head,el,next)

Definition at line 728 of file utlist.h.

#define CDL_FOREACH2 (   head,
  el,
  next 
)    for(el=head;el;el=((el)->next==head ? 0L : (el)->next))

Definition at line 731 of file utlist.h.

#define CDL_FOREACH_SAFE (   head,
  el,
  tmp1,
  tmp2 
)    CDL_FOREACH_SAFE2(head,el,tmp1,tmp2,prev,next)

Definition at line 734 of file utlist.h.

#define CDL_FOREACH_SAFE2 (   head,
  el,
  tmp1,
  tmp2,
  prev,
  next 
)
Value:
for((el)=(head), ((tmp1)=(head)?((head)->prev):NULL); \
(el) && ((tmp2)=(el)->next, 1); \
((el) = (((el)==(tmp1)) ? 0L : (tmp2))))
#define NULL
Definition: defines.h:32

Definition at line 737 of file utlist.h.

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

Definition at line 674 of file utlist.h.

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

Definition at line 779 of file utlist.h.

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

Definition at line 762 of file utlist.h.

#define CDL_SEARCH (   head,
  out,
  elt,
  cmp 
)    CDL_SEARCH2(head,out,elt,cmp,next)

Definition at line 752 of file utlist.h.

#define CDL_SEARCH2 (   head,
  out,
  elt,
  cmp,
  next 
)
Value:
do { \
CDL_FOREACH2(head,out,next) { \
if ((cmp(out,elt))==0) break; \
} \
} while(0)
#define CDL_FOREACH2(head, el, next)
Definition: utlist.h:731

Definition at line 755 of file utlist.h.

#define CDL_SEARCH_SCALAR (   head,
  out,
  field,
  val 
)    CDL_SEARCH_SCALAR2(head,out,field,val,next)

Definition at line 742 of file utlist.h.

#define CDL_SEARCH_SCALAR2 (   head,
  out,
  field,
  val,
  next 
)
Value:
do { \
CDL_FOREACH2(head,out,next) { \
if ((out)->field == (val)) break; \
} \
} while(0)
#define CDL_FOREACH2(head, el, next)
Definition: utlist.h:731

Definition at line 745 of file utlist.h.

#define CDL_SORT (   list,
  cmp 
)    CDL_SORT2(list, cmp, prev, next)

Definition at line 230 of file utlist.h.

#define CDL_SORT2 (   list,
  cmp,
  prev,
  next 
)

Definition at line 233 of file utlist.h.

#define DL_APPEND (   head,
  add 
)    DL_APPEND2(head,add,prev,next)

Definition at line 535 of file utlist.h.

#define DL_APPEND2 (   head,
  add,
  prev,
  next 
)
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)
#define NULL
Definition: defines.h:32

Definition at line 552 of file utlist.h.

#define DL_CONCAT (   head1,
  head2 
)    DL_CONCAT2(head1,head2,prev,next)

Definition at line 566 of file utlist.h.

#define DL_CONCAT2 (   head1,
  head2,
  prev,
  next 
)
Value:
do { \
LDECLTYPE(head1) _tmp; \
if (head2) { \
if (head1) { \
_tmp = (head2)->prev; \
(head2)->prev = (head1)->prev; \
(head1)->prev->next = (head2); \
(head1)->prev = _tmp; \
} else { \
(head1)=(head2); \
} \
} \
} while (0)
#define LDECLTYPE(x)
Definition: utlist.h:77

Definition at line 569 of file utlist.h.

#define DL_COUNT (   head,
  el,
  counter 
)    DL_COUNT2(head,el,counter,next) \

Definition at line 604 of file utlist.h.

#define DL_COUNT2 (   head,
  el,
  counter,
  next 
)
Value:
{ \
counter = 0; \
DL_FOREACH2(head,el,next){ ++counter; } \
}
#define DL_FOREACH2(head, el, next)
Definition: utlist.h:616

Definition at line 607 of file utlist.h.

#define DL_DELETE (   head,
  del 
)    DL_DELETE2(head,del,prev,next)

Definition at line 584 of file utlist.h.

#define DL_DELETE2 (   head,
  del,
  prev,
  next 
)
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)
#define NULL
Definition: defines.h:32

Definition at line 587 of file utlist.h.

#define DL_EDF_INSERT (   head,
  add 
)
Value:
do { \
if (head) { \
(add)->pri_next = (head)->pri_next; \
(head)->pri_next->pri_prev = (add); \
(head)->pri_next = (add); \
(add)->pri_prev = NULL; \
} else { \
(head)=(add); \
(head)->pri_prev = NULL; \
(head)->pri_next = NULL; \
} \
} while (0)
#define NULL
Definition: defines.h:32

Definition at line 538 of file utlist.h.

Referenced by edf_init(), and edf_insert().

#define DL_EDF_PREPEND (   head,
  add 
)
Value:
do { \
(add)->pri_next = head; \
if (head) { \
(add)->pri_prev = (head)->pri_prev; \
(head)->pri_prev = (add); \
} \
(head) = (add); \
} while (0)

Definition at line 513 of file utlist.h.

Referenced by edf_insert().

#define DL_FOREACH (   head,
  el 
)    DL_FOREACH2(head,el,next)

Definition at line 613 of file utlist.h.

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

Definition at line 616 of file utlist.h.

#define DL_FOREACH_SAFE (   head,
  el,
  tmp 
)    DL_FOREACH_SAFE2(head,el,tmp,next)

Definition at line 620 of file utlist.h.

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

Definition at line 623 of file utlist.h.

#define DL_PREPEND (   head,
  add 
)    DL_PREPEND2(head,add,prev,next)

Definition at line 510 of file utlist.h.

Referenced by schedule_init().

#define DL_PREPEND2 (   head,
  add,
  prev,
  next 
)
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 523 of file utlist.h.

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

Definition at line 655 of file utlist.h.

#define DL_REPLACE_ELEM (   head,
  el,
  add 
)
Value:
do { \
if ((head) == (el)) { \
(head) = (add); \
(add)->next = (el)->next; \
if ((el)->next == NULL) { \
(add)->prev = (add); \
} else { \
(add)->prev = (el)->prev; \
(add)->next->prev = (add); \
} \
} else { \
(add)->next = (el)->next; \
(add)->prev = (el)->prev; \
(add)->prev->next = (add); \
if ((el)->next == NULL) { \
(head)->prev = (add); \
} else { \
(add)->next->prev = (add); \
} \
} \
} while (0)
#define NULL
Definition: defines.h:32

Definition at line 632 of file utlist.h.

#define DL_SEARCH   LL_SEARCH

Definition at line 628 of file utlist.h.

#define DL_SEARCH2   LL_SEARCH2

Definition at line 630 of file utlist.h.

#define DL_SEARCH_SCALAR   LL_SEARCH_SCALAR

Definition at line 627 of file utlist.h.

#define DL_SEARCH_SCALAR2   LL_SEARCH_SCALAR2

Definition at line 629 of file utlist.h.

#define DL_SORT (   list,
  cmp 
)    DL_SORT2(list, cmp, prev, next)

Definition at line 168 of file utlist.h.

#define DL_SORT2 (   list,
  cmp,
  prev,
  next 
)

Definition at line 171 of file utlist.h.

#define LDECLTYPE (   x)    __typeof(x)

Definition at line 77 of file utlist.h.

#define LL_APPEND (   head,
  add 
)    LL_APPEND2(head,add,next)

Definition at line 339 of file utlist.h.

#define LL_APPEND2 (   head,
  add,
  next 
)
Value:
do { \
LDECLTYPE(head) _tmp; \
(add)->next=NULL; \
if (head) { \
_tmp = head; \
while (_tmp->next) { _tmp = _tmp->next; } \
_tmp->next=(add); \
} else { \
(head)=(add); \
} \
} while (0)
#define NULL
Definition: defines.h:32
#define LDECLTYPE(x)
Definition: utlist.h:77

Definition at line 345 of file utlist.h.

#define LL_APPEND2_VS2008 (   head,
  add,
  next 
)
Value:
do { \
if (head) { \
(add)->next = head; /* use add->next as a temp variable */ \
while ((add)->next->next) { (add)->next = (add)->next->next; } \
(add)->next->next=(add); \
} else { \
(head)=(add); \
} \
(add)->next=NULL; \
} while (0)
#define NULL
Definition: defines.h:32

Definition at line 384 of file utlist.h.

#define LL_APPEND_VS2008 (   head,
  add 
)    LL_APPEND2_VS2008(head,add,next)

Definition at line 381 of file utlist.h.

#define LL_CONCAT (   head1,
  head2 
)    LL_CONCAT2(head1,head2,next)

Definition at line 324 of file utlist.h.

#define LL_CONCAT2 (   head1,
  head2,
  next 
)
Value:
do { \
LDECLTYPE(head1) _tmp; \
if (head1) { \
_tmp = head1; \
while (_tmp->next) { _tmp = _tmp->next; } \
_tmp->next=(head2); \
} else { \
(head1)=(head2); \
} \
} while (0)
#define LDECLTYPE(x)
Definition: utlist.h:77

Definition at line 327 of file utlist.h.

#define LL_COUNT (   head,
  el,
  counter 
)    LL_COUNT2(head,el,counter,next) \

Definition at line 431 of file utlist.h.

#define LL_COUNT2 (   head,
  el,
  counter,
  next 
)
Value:
{ \
counter = 0; \
LL_FOREACH2(head,el,next){ ++counter; } \
}
#define LL_FOREACH2(head, el, next)
Definition: utlist.h:443

Definition at line 434 of file utlist.h.

#define LL_DELETE (   head,
  del 
)    LL_DELETE2(head,del,next)

Definition at line 358 of file utlist.h.

#define LL_DELETE2 (   head,
  del,
  next 
)
Value:
do { \
LDECLTYPE(head) _tmp; \
if ((head) == (del)) { \
(head)=(head)->next; \
} else { \
_tmp = head; \
while (_tmp->next && (_tmp->next != (del))) { \
_tmp = _tmp->next; \
} \
if (_tmp->next) { \
_tmp->next = ((del)->next); \
} \
} \
} while (0)
#define LDECLTYPE(x)
Definition: utlist.h:77

Definition at line 364 of file utlist.h.

#define LL_DELETE2_VS2008 (   head,
  del,
  next 
)
Value:
do { \
if ((head) == (del)) { \
(head)=(head)->next; \
} else { \
char *_tmp = (char*)(head); \
while ((head)->next && ((head)->next != (del))) { \
head = (head)->next; \
} \
if ((head)->next) { \
(head)->next = ((del)->next); \
} \
{ \
char **_head_alias = (char**)&(head); \
*_head_alias = _tmp; \
} \
} \
} while (0)

Definition at line 399 of file utlist.h.

#define LL_DELETE_VS2008 (   head,
  del 
)    LL_DELETE2_VS2008(head,del,next)

Definition at line 396 of file utlist.h.

#define LL_EDF_APPEND (   head,
  add 
)    LL_APPEND2(head,add,pri_next)

Definition at line 342 of file utlist.h.

#define LL_EDF_DELETE (   head,
  del 
)    LL_DELETE2(head,del,pri_next)

Definition at line 361 of file utlist.h.

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

Definition at line 312 of file utlist.h.

#define LL_FOREACH (   head,
  el 
)    LL_FOREACH2(head,el,next)

Definition at line 440 of file utlist.h.

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

Definition at line 443 of file utlist.h.

#define LL_FOREACH_SAFE (   head,
  el,
  tmp 
)    LL_FOREACH_SAFE2(head,el,tmp,next)

Definition at line 446 of file utlist.h.

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

Definition at line 449 of file utlist.h.

#define LL_PREPEND (   head,
  add 
)    LL_PREPEND2(head,add,next)

Definition at line 309 of file utlist.h.

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

Definition at line 318 of file utlist.h.

#define LL_PREPEND_ELEM (   head,
  el,
  add 
)
Value:
do { \
LDECLTYPE(head) _tmp; \
(add)->next = (el); \
if ((head) == (el)) { \
(head) = (add); \
} else { \
_tmp = head; \
while (_tmp->next && (_tmp->next != (el))) { \
_tmp = _tmp->next; \
} \
if (_tmp->next) { \
_tmp->next = (add); \
} \
} \
} while (0) \
#define LDECLTYPE(x)
Definition: utlist.h:77

Definition at line 489 of file utlist.h.

#define LL_REPLACE_ELEM (   head,
  el,
  add 
)
Value:
do { \
LDECLTYPE(head) _tmp; \
(add)->next = (el)->next; \
if ((head) == (el)) { \
(head) = (add); \
} else { \
_tmp = head; \
while (_tmp->next && (_tmp->next != (el))) { \
_tmp = _tmp->next; \
} \
if (_tmp->next) { \
_tmp->next = (add); \
} \
} \
} while (0)
#define LDECLTYPE(x)
Definition: utlist.h:77

Definition at line 472 of file utlist.h.

#define LL_SEARCH (   head,
  out,
  elt,
  cmp 
)    LL_SEARCH2(head,out,elt,cmp,next)

Definition at line 462 of file utlist.h.

#define LL_SEARCH2 (   head,
  out,
  elt,
  cmp,
  next 
)
Value:
do { \
LL_FOREACH2(head,out,next) { \
if ((cmp(out,elt))==0) break; \
} \
} while(0)
#define LL_FOREACH2(head, el, next)
Definition: utlist.h:443

Definition at line 465 of file utlist.h.

#define LL_SEARCH_SCALAR (   head,
  out,
  field,
  val 
)    LL_SEARCH_SCALAR2(head,out,field,val,next)

Definition at line 452 of file utlist.h.

#define LL_SEARCH_SCALAR2 (   head,
  out,
  field,
  val,
  next 
)
Value:
do { \
LL_FOREACH2(head,out,next) { \
if ((out)->field == (val)) break; \
} \
} while(0)
#define LL_FOREACH2(head, el, next)
Definition: utlist.h:443

Definition at line 455 of file utlist.h.

#define LL_SORT (   list,
  cmp 
)    LL_SORT2(list, cmp, next)

Definition at line 105 of file utlist.h.

#define LL_SORT2 (   list,
  cmp,
  next 
)

Definition at line 108 of file utlist.h.

#define UTLIST_VERSION   1.9.9

Definition at line 27 of file utlist.h.