Changeset df13836 in mainline
- Timestamp:
- 2015-08-30T14:38:17Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- be12474
- Parents:
- 616f5dd3
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified kernel/generic/include/adt/list.h ¶
r616f5dd3 rdf13836 53 53 54 54 55 extern intlist_member(const link_t *, const list_t *);55 extern bool list_member(const link_t *, const list_t *); 56 56 extern void list_splice(list_t *, link_t *); 57 extern unsigned intlist_count(const list_t *);57 extern unsigned long list_count(const list_t *); 58 58 59 59 … … 220 220 * 221 221 */ 222 NO_TRACE static inline intlist_empty(const list_t *list)222 NO_TRACE static inline bool list_empty(const list_t *list) 223 223 { 224 224 return (list->head.next == &list->head); … … 353 353 * 354 354 */ 355 static inline link_t *list_nth(list_t *list, unsigned intn)356 { 357 unsigned intcnt = 0;355 static inline link_t *list_nth(list_t *list, unsigned long n) 356 { 357 unsigned long cnt = 0; 358 358 link_t *link; 359 359 -
TabularUnified kernel/generic/src/adt/list.c ¶
r616f5dd3 rdf13836 52 52 * 53 53 */ 54 intlist_member(const link_t *link, const list_t *list)54 bool list_member(const link_t *link, const list_t *list) 55 55 { 56 56 bool found = false; … … 99 99 * @return Number of items in the list. 100 100 */ 101 unsigned intlist_count(const list_t *list)101 unsigned long list_count(const list_t *list) 102 102 { 103 unsigned intcount = 0;103 unsigned long count = 0; 104 104 105 105 link_t *link = list_first(list); -
TabularUnified uspace/lib/c/generic/adt/list.c ¶
r616f5dd3 rdf13836 53 53 * 54 54 */ 55 intlist_member(const link_t *link, const list_t *list)55 bool list_member(const link_t *link, const list_t *list) 56 56 { 57 57 bool found = false; … … 98 98 * @return Number of items in the list. 99 99 */ 100 unsigned intlist_count(const list_t *list)100 unsigned long list_count(const list_t *list) 101 101 { 102 unsigned intcount = 0;102 unsigned long count = 0; 103 103 104 104 link_t *link = list_first(list); -
TabularUnified uspace/lib/c/include/adt/list.h ¶
r616f5dd3 rdf13836 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 -
TabularUnified uspace/srv/audio/hound/hound_ctx.c ¶
r616f5dd3 rdf13836 403 403 return ENOMEM; 404 404 } 405 log_verbose("CTX: %p: Mixing % u streams", ctx,405 log_verbose("CTX: %p: Mixing %lu streams", ctx, 406 406 list_count(&ctx->streams)); 407 407 pcm_format_silence(buffer, size, &source->format); … … 413 413 log_warning("Not enough data in stream buffer"); 414 414 } 415 log_verbose("CTX: %p. Pushing audio to % u connections", ctx,415 log_verbose("CTX: %p. Pushing audio to %lu connections", ctx, 416 416 list_count(&source->connections)); 417 417 list_foreach(source->connections, source_link, connection_t, conn) {
Note:
See TracChangeset
for help on using the changeset viewer.