Changeset 07525cd in mainline for uspace/lib/c/include/adt/list.h


Ignore:
Timestamp:
2013-09-10T18:34:16Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
08bc23d
Parents:
85147f3
Message:

cstyle

File:
1 edited

Legend:

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

    r85147f3 r07525cd  
    6868
    6969#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) \
    7171            for (link_t *_link = (list).head.next; \
    7272            iterator = list_get_instance(_link, itype, member), \
     
    7474
    7575/** Unlike list_foreach(), allows removing items while traversing a list.
    76  * 
     76 *
    7777 * @code
    7878 * list_t mylist;
     
    249249 *
    250250 * @return Next item or NULL if @a link is the last item.
     251 *
    251252 */
    252253static inline link_t *list_next(link_t *link, const list_t *list)
     
    261262 *
    262263 * @return Previous item or NULL if @a link is the first item.
     264 *
    263265 */
    264266static inline link_t *list_prev(link_t *link, const list_t *list)
Note: See TracChangeset for help on using the changeset viewer.