Ignore:
Timestamp:
Jan 2, 2009, 5:11:50 AM (13 years ago)
Author:
charles
Message:
  • add autoconf test AC_C_INLINE to do the Right Thing for "inline", "inline", and "inline".
  • make tr_isAddress(), tr_isDirection(), and a bunch of the tr_torrent() macro functions into true inline functions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.h

    r7574 r7575  
    8888void tr_suspectAddress( const tr_address * a, const char * source );
    8989
    90 #define tr_isAddress(a) ( ((a)!=NULL) && ( (a)->type==TR_AF_INET || (a)->type==TR_AF_INET6 ) )
     90static inline tr_bool tr_isAddress( const tr_address * a ) { return ( a != NULL ) && ( a->type==TR_AF_INET || a->type==TR_AF_INET6 ); }
    9191
    9292typedef struct tr_net_af_support
Note: See TracChangeset for help on using the changeset viewer.