Ignore:
Timestamp:
Mar 29, 2011, 1:17:18 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) more completion and bitfield cleanup: (1) fix regression in tr_cpSizeWhenDone() reported by Waldorf, (2) make simple one-liner functions inlined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bitfield.h

    r12248 r12251  
    3737
    3838/***
    39 ****  life cycle
    40 ***/
    41 
    42 extern const tr_bitfield TR_BITFIELD_INIT;
    43 
    44 void   tr_bitfieldConstruct( tr_bitfield*, size_t bit_count );
    45 
    46 void   tr_bitfieldDestruct( tr_bitfield* );
    47 
    48 /***
    4939****
    5040***/
     
    6151
    6252void   tr_bitfieldRemRange( tr_bitfield*, size_t begin, size_t end );
     53
     54/***
     55****  life cycle
     56***/
     57
     58extern const tr_bitfield TR_BITFIELD_INIT;
     59
     60void   tr_bitfieldConstruct( tr_bitfield*, size_t bit_count );
     61
     62static inline void
     63tr_bitfieldDestruct( tr_bitfield * b )
     64{
     65    tr_bitfieldSetHasNone( b );
     66}
    6367
    6468/***
Note: See TracChangeset for help on using the changeset viewer.