Changeset 69511176 in mainline
- Timestamp:
- 2021-06-25T15:28:41Z (4 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bb14312
- Parents:
- f5819ca1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/adt/list.h
rf5819ca1 r69511176 95 95 96 96 #define list_foreach(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.next; \ 99 99 iterator = list_get_instance(_link, itype, member), \ … … 101 101 102 102 #define list_foreach_rev(list, member, itype, iterator) \ 103 for (itype *iterator = NULL; iterator == NULL; iterator = &((itype *) NULL)[1]) \103 for (itype *iterator = NULL; iterator == NULL; iterator = (itype *) sizeof(itype)) \ 104 104 for (link_t *_link = (list).head.prev; \ 105 105 iterator = list_get_instance(_link, itype, member), \ -
uspace/lib/c/include/adt/list.h
rf5819ca1 r69511176 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.