Changeset 07525cd in mainline for uspace/lib/c/include/adt/list.h
- Timestamp:
- 2013-09-10T18:34:16Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 08bc23d
- Parents:
- 85147f3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/adt/list.h
r85147f3 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), \ … … 74 74 75 75 /** Unlike list_foreach(), allows removing items while traversing a list. 76 * 76 * 77 77 * @code 78 78 * list_t mylist; … … 249 249 * 250 250 * @return Next item or NULL if @a link is the last item. 251 * 251 252 */ 252 253 static inline link_t *list_next(link_t *link, const list_t *list) … … 261 262 * 262 263 * @return Previous item or NULL if @a link is the first item. 264 * 263 265 */ 264 266 static inline link_t *list_prev(link_t *link, const list_t *list)
Note:
See TracChangeset
for help on using the changeset viewer.