Changes in kernel/generic/include/adt/list.h [feeac0d:07525cd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/adt/list.h
rfeeac0d r07525cd 68 68 69 69 #define list_foreach(list, member, itype, iterator) \ 70 for (itype *iterator = NULL; iterator == NULL; iterator = (itype *)1) \70 for (itype *iterator = NULL; iterator == NULL; iterator = (itype *) 1) \ 71 71 for (link_t *_link = (list).head.next; \ 72 72 iterator = list_get_instance(_link, itype, member), \ … … 186 186 * @return Head item of the list. 187 187 * @return NULL if the list is empty. 188 * 188 189 */ 189 190 static inline link_t *list_first(const list_t *list) … … 198 199 * @return Head item of the list. 199 200 * @return NULL if the list is empty. 201 * 200 202 */ 201 203 static inline link_t *list_last(list_t *list)
Note:
See TracChangeset
for help on using the changeset viewer.