Changeset 639db552 in mainline
- Timestamp:
- 2013-12-31T01:13:19Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ad5f149
- Parents:
- 952bc66
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/adt/list.h
r952bc66 r639db552 108 108 109 109 /** Returns true if the link is definitely part of a list. False if not sure. */ 110 static inline int link_in_use( link_t *link)110 static inline int link_in_use(const link_t *link) 111 111 { 112 112 return link->prev != NULL && link->next != NULL; … … 238 238 * 239 239 */ 240 static inline link_t *list_last( list_t *list)240 static inline link_t *list_last(const list_t *list) 241 241 { 242 242 return (list->head.prev == &list->head) ? NULL : list->head.prev; … … 251 251 * 252 252 */ 253 static inline link_t *list_next( link_t *link, const list_t *list)253 static inline link_t *list_next(const link_t *link, const list_t *list) 254 254 { 255 255 return (link->next == &list->head) ? NULL : link->next; … … 264 264 * 265 265 */ 266 static inline link_t *list_prev( link_t *link, const list_t *list)266 static inline link_t *list_prev(const link_t *link, const list_t *list) 267 267 { 268 268 return (link->prev == &list->head) ? NULL : link->prev; … … 332 332 * 333 333 */ 334 static inline link_t *list_nth( list_t *list, unsigned int n)334 static inline link_t *list_nth(const list_t *list, unsigned int n) 335 335 { 336 336 unsigned int cnt = 0;
Note:
See TracChangeset
for help on using the changeset viewer.