Ignore:
Timestamp:
Jan 2, 2009, 7:56:06 PM (12 years ago)
Author:
charles
Message:

(trunk libT) avoid some unnecessary memory fragmentation... for composited objects that have a tr_bandwidth, contain the it directly rather than a pointer to one allocated elsewhere on the heap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.h

    r7578 r7580  
    14181418static inline tr_bool tr_isDirection( tr_direction d ) { return d==TR_UP || d==TR_DOWN; }
    14191419
     1420/** @brief Sanity checker to test that a bool is TRUE or FALSE */
     1421static inline tr_bool tr_isBool( tr_bool b ) { return b==1 || b==0; }
     1422
    14201423/** @} */
    14211424
Note: See TracChangeset for help on using the changeset viewer.