Ignore:
Timestamp:
Feb 21, 2011, 1:40:19 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) code cleanup: moving bitset functions to their own .c file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bitfield.c

    r11709 r12003  
    211211    return ret;
    212212}
    213 
    214 /***
    215 ****
    216 ***/
    217 
    218 void
    219 tr_bitsetReserve( tr_bitset * b, size_t size )
    220 {
    221     if( b->bitfield.bitCount < size )
    222     {
    223         tr_bitfield * tmp = tr_bitfieldDup( &b->bitfield );
    224 
    225         tr_bitfieldDestruct( &b->bitfield );
    226         tr_bitfieldConstruct( &b->bitfield, size );
    227 
    228         if( ( tmp->bits != NULL ) && ( tmp->byteCount > 0 ) )
    229             memcpy( b->bitfield.bits, tmp->bits, tmp->byteCount );
    230 
    231         tr_bitfieldFree( tmp );
    232     }
    233 }
Note: See TracChangeset for help on using the changeset viewer.