Changeset 8a9a41e in mainline for uspace/lib/c/include/adt/list.h


Ignore:
Timestamp:
2021-10-24T08:28:43Z (3 years ago)
Author:
GitHub <noreply@…>
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)
Message:

Merge branch 'HelenOS:master' into master

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/adt/list.h

    r2ce943a r8a9a41e  
    8989
    9090#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)) \
    9292                for (link_t *_link = (list).head.next; \
    9393                    iterator = list_get_instance(_link, itype, member), \
     
    9595
    9696#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)) \
    9898                for (link_t *_link = (list).head.prev; \
    9999                    iterator = list_get_instance(_link, itype, member), \
Note: See TracChangeset for help on using the changeset viewer.