 |
My Project
debian-1:4.1.1-p2+ds-4
|
Go to the documentation of this file.
10 #define NULL ((void*) 0)
13 #define _VALUE(list, offset) *((void**) ((char *)list + offset))
14 #define VALUE(list, offset) (unsigned long) _VALUE(list, offset)
15 #define NEXT(list) _VALUE(list, next)
16 #define ITER(list) list = NEXT(list)
56 if (
i !=
l)
return l1;
71 if (addr == list)
return addr;
85 if (list == addr)
return nlist;
88 while (nlist !=
NULL && nlist != addr)
102 if (
VALUE(list, long_field) == what)
return list;
113 if (
VALUE(list, long_field) >= what)
115 if (
VALUE(list, long_field) == what)
return list;
127 unsigned long what =
VALUE(addr, long_field);
131 if (list == addr)
return nlist;
132 if (
VALUE(list, long_field) > what)
return list;
135 while (nlist !=
NULL && nlist != addr)
137 if (
VALUE(list, long_field) > what)
return olist;
148 unsigned long what =
VALUE(addr, long_field);
150 if (list ==
NULL || what <=
VALUE(list, long_field))
158 void* curr =
NEXT(list);
160 while (curr !=
NULL &&
VALUE(curr, long_field) < what)
225 if (prev !=
NULL &&
VALUE(prev, long_field) >
VALUE(list, long_field))
227 "%d > %d",
VALUE(prev, long_field),
VALUE(list, long_field));
241 if (prev !=
NULL &&
VALUE(prev, long_field) >
VALUE(l1, long_field))
243 "%d > %d",
VALUE(prev, long_field),
VALUE(l1, long_field));
void * _omInsertInSortedList(void *list, int next, int long_field, void *addr)
int _omListLength(void *list, int next)
void * _omFindInList(void *list, int next, int long_field, unsigned long what)
#define omCheckReturnError(cond, error)
void * _omRemoveFromList(void *list, int next, void *addr)
omError_t omReportError(omError_t error, omError_t report_error, OM_FLR_DECL, const char *fmt,...)
void * _omRemoveFromSortedList(void *list, int next, int long_field, void *addr)
#define omCheckReturn(cond)
omError_t omCheckPtr(const void *ptr, omError_t report, OM_FLR_DECL)
void * _omListHasCycle(void *list, int next)
void * _omListLast(void *list, int next)
void * _omIsOnList(void *list, int next, void *addr)
#define VALUE(list, offset)
void * _omFindInSortedList(void *list, int next, int long_field, unsigned long what)
omError_t _omCheckList(void *list, int next, int level, omError_t report, OM_FLR_DECL)
omError_t _omCheckSortedList(void *list, int next, int long_field, int level, omError_t report, OM_FLR_DECL)