Ignore:
Timestamp:
Mar 22, 2011, 3:19:54 PM (11 years ago)
Author:
jordan
Message:

(trunk) #4138 "use stdbool.h instead of tr_bool" -- done.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bitfield.h

    r12012 r12204  
    6161    need to call tr_bitfieldTestFast() first before you
    6262    start looping. */
    63 static inline tr_bool tr_bitfieldHasFast( const tr_bitfield * b, const size_t nth )
     63static inline bool tr_bitfieldHasFast( const tr_bitfield * b, const size_t nth )
    6464{
    6565    return ( b->bits[nth>>3u] << ( nth & 7u ) & 0x80 ) != 0;
     
    6767
    6868/** @param high the highest nth bit you're going to access */
    69 static inline tr_bool tr_bitfieldTestFast( const tr_bitfield * b, const size_t high )
     69static inline bool tr_bitfieldTestFast( const tr_bitfield * b, const size_t high )
    7070{
    7171    return ( b != NULL )
     
    7474}
    7575
    76 static inline tr_bool tr_bitfieldHas( const tr_bitfield * b, size_t nth )
     76static inline bool tr_bitfieldHas( const tr_bitfield * b, size_t nth )
    7777{
    7878    return tr_bitfieldTestFast( b, nth ) && tr_bitfieldHasFast( b, nth );
Note: See TracChangeset for help on using the changeset viewer.