Changeset 8a9a41e in mainline for uspace/lib/c/include/adt/list.h
- Timestamp:
- 2021-10-24T08:28:43Z (3 years ago)
- Children:
- 6855743
- Parents:
- 2ce943a (diff), cd981f2a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Erik Kučák <35500848+Riko196@…> (2021-10-24 08:28:43)
- git-committer:
- GitHub <noreply@…> (2021-10-24 08:28:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/adt/list.h
r2ce943a r8a9a41e 89 89 90 90 #define list_foreach(list, member, itype, iterator) \ 91 for (itype *iterator = NULL; iterator == NULL; iterator = &((itype *) NULL)[1]) \91 for (itype *iterator = NULL; iterator == NULL; iterator = (itype *) sizeof(itype)) \ 92 92 for (link_t *_link = (list).head.next; \ 93 93 iterator = list_get_instance(_link, itype, member), \ … … 95 95 96 96 #define list_foreach_rev(list, member, itype, iterator) \ 97 for (itype *iterator = NULL; iterator == NULL; iterator = &((itype *) NULL)[1]) \97 for (itype *iterator = NULL; iterator == NULL; iterator = (itype *) sizeof(itype)) \ 98 98 for (link_t *_link = (list).head.prev; \ 99 99 iterator = list_get_instance(_link, itype, member), \
Note:
See TracChangeset
for help on using the changeset viewer.