Changeset ff381a7 in mainline for uspace/lib/c/include/adt/list.h
- Timestamp:
- 2015-11-02T20:54:19Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d8513177
- Parents:
- 3feeab2 (diff), 5265eea4 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/adt/list.h
r3feeab2 rff381a7 133 133 134 134 /** Returns true if the link is definitely part of a list. False if not sure. */ 135 static inline intlink_in_use(link_t *link)135 static inline bool link_in_use(link_t *link) 136 136 { 137 137 return link->prev != NULL && link->next != NULL; … … 237 237 * 238 238 */ 239 static inline intlist_empty(const list_t *list)239 static inline bool list_empty(const list_t *list) 240 240 { 241 241 return (list->head.next == &list->head); … … 357 357 * 358 358 */ 359 static inline link_t *list_nth(list_t *list, unsigned intn)360 { 361 unsigned intcnt = 0;359 static inline link_t *list_nth(list_t *list, unsigned long n) 360 { 361 unsigned long cnt = 0; 362 362 363 363 link_t *link = list_first(list); … … 396 396 } 397 397 398 extern intlist_member(const link_t *, const list_t *);398 extern bool list_member(const link_t *, const list_t *); 399 399 extern void list_concat(list_t *, list_t *); 400 extern unsigned intlist_count(const list_t *);400 extern unsigned long list_count(const list_t *); 401 401 402 402 #endif
Note:
See TracChangeset
for help on using the changeset viewer.