Changeset df13836 in mainline for kernel/generic/include/adt/list.h


Ignore:
Timestamp:
2015-08-30T14:38:17Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
be12474
Parents:
616f5dd3
Message:

Use bool for boolean values, unsigned long for counting heap objects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/adt/list.h

    r616f5dd3 rdf13836  
    5353
    5454
    55 extern int list_member(const link_t *, const list_t *);
     55extern bool list_member(const link_t *, const list_t *);
    5656extern void list_splice(list_t *, link_t *);
    57 extern unsigned int list_count(const list_t *);
     57extern unsigned long list_count(const list_t *);
    5858
    5959
     
    220220 *
    221221 */
    222 NO_TRACE static inline int list_empty(const list_t *list)
     222NO_TRACE static inline bool list_empty(const list_t *list)
    223223{
    224224        return (list->head.next == &list->head);
     
    353353 *
    354354 */
    355 static inline link_t *list_nth(list_t *list, unsigned int n)
    356 {
    357         unsigned int cnt = 0;
     355static inline link_t *list_nth(list_t *list, unsigned long n)
     356{
     357        unsigned long cnt = 0;
    358358        link_t *link;
    359359       
Note: See TracChangeset for help on using the changeset viewer.