Go to the source code of this file.
|
#define | UTLIST_VERSION 1.8 |
|
#define | LL_SORT(list, cmp) |
|
#define | DL_SORT(list, cmp) |
|
#define | CDL_SORT(list, cmp) |
|
#define | LL_PREPEND(head, add) |
|
#define | LL_APPEND(head, add) |
|
#define | LL_DELETE(head, del) |
|
#define | LL_FOREACH(head, el) for(el=head;el;el=el->next) |
|
#define | DL_PREPEND(head, add) |
|
#define | DL_APPEND(head, add) |
|
#define | DL_DELETE(head, del) |
|
#define | DL_FOREACH(head, el) for(el=head;el;el=el->next) |
|
#define | CDL_PREPEND(head, add) |
|
#define | CDL_DELETE(head, del) |
|
#define | CDL_FOREACH(head, el) for(el=head;el;el= (el->next==head ? 0L : el->next)) |
|
#define CDL_DELETE |
( |
|
head, |
|
|
|
del |
|
) |
| |
Value:
if ( ((head)==(del)) && ((head)->
next == (head))) { \
(head) = 0L; \
} else { \
(del)->
next->prev = (del)->prev; \
if ((del) == (head)) (head)=(del)->next; \
} \
} while (0);
if(BaroAltitudeHandle()!=NULL)
Definition at line 333 of file utlist.h.
#define CDL_FOREACH |
( |
|
head, |
|
|
|
el |
|
) |
| for(el=head;el;el= (el->next==head ? 0L : el->next)) |
#define CDL_PREPEND |
( |
|
head, |
|
|
|
add |
|
) |
| |
Value:
(add)->prev = (head)->prev; \
(head)->prev = (add); \
(add)->prev->
next = (add); \
} else { \
(add)->prev = (add); \
} \
(head)=(add); \
} while (0)
if(BaroAltitudeHandle()!=NULL)
Definition at line 319 of file utlist.h.
#define CDL_SORT |
( |
|
list, |
|
|
|
cmp |
|
) |
| |
#define DL_APPEND |
( |
|
head, |
|
|
|
add |
|
) |
| |
Value:
(add)->prev = (head)->prev; \
(head)->prev->next = (add); \
(head)->prev = (add); \
} else { \
(head)=(add); \
(head)->prev = (head); \
} \
} while (0);
if(BaroAltitudeHandle()!=NULL)
Definition at line 281 of file utlist.h.
#define DL_DELETE |
( |
|
head, |
|
|
|
del |
|
) |
| |
Value:
if ((del)->prev == (del)) { \
(head)=NULL; \
} else if ((del)==(head)) { \
(del)->
next->prev = (del)->prev; \
} else { \
(del)->
next->prev = (del)->prev; \
} else { \
(head)->prev = (del)->prev; \
} \
} \
} while (0);
if(BaroAltitudeHandle()!=NULL)
Definition at line 295 of file utlist.h.
#define DL_FOREACH |
( |
|
head, |
|
|
|
el |
|
) |
| for(el=head;el;el=el->next) |
#define DL_PREPEND |
( |
|
head, |
|
|
|
add |
|
) |
| |
Value:do { \
(add)->prev = (head)->prev; \
(head)->prev = (add); \
} else { \
(add)->prev = (add); \
} \
(head) = (add); \
} while (0)
if(BaroAltitudeHandle()!=NULL)
Definition at line 269 of file utlist.h.
#define DL_SORT |
( |
|
list, |
|
|
|
cmp |
|
) |
| |
#define LL_APPEND |
( |
|
head, |
|
|
|
add |
|
) |
| |
Value:do { \
__typeof__(head) _tmp; \
_tmp = head; \
while (_tmp->next) { _tmp = _tmp->next; } \
_tmp->next=(add); \
} else { \
(head)=(add); \
} \
} while (0)
if(BaroAltitudeHandle()!=NULL)
Definition at line 234 of file utlist.h.
#define LL_DELETE |
( |
|
head, |
|
|
|
del |
|
) |
| |
Value:do { \
__typeof__(head) _tmp; \
(head)=(head)->next; \
} else { \
_tmp = head; \
while (_tmp->next && (_tmp->next != (del))) { \
_tmp = _tmp->next; \
_tmp->next = ((del)->
next); \
} \
} \
} while (0)
if(BaroAltitudeHandle()!=NULL)
Definition at line 247 of file utlist.h.
#define LL_FOREACH |
( |
|
head, |
|
|
|
el |
|
) |
| for(el=head;el;el=el->next) |
#define LL_PREPEND |
( |
|
head, |
|
|
|
add |
|
) |
| |
Value:do { \
head = add; \
} while (0)
Definition at line 228 of file utlist.h.
#define LL_SORT |
( |
|
list, |
|
|
|
cmp |
|
) |
| |
#define UTLIST_VERSION 1.8 |